Legacy Dev Forum Posts

 View Only

Sign Up

URL links in Guest Chat Api

  • 1.  URL links in Guest Chat Api

    Posted 06-05-2025 18:16

    masanchezmemo | 2019-12-25 13:30:15 UTC | #1

    Hello there,

    We have successfully integrated whatsapp with Guest Chat API but when we receive a URL link from whatsapp user it is being showed as text instead a hiper link to open a Web BRower window. Is it possible to get URL within Chat API?

    Regards,

    Mario


    crespino | 2019-12-27 18:48:12 UTC | #2

    Mario,

    If your integration component can identify a URL in a text string (maybe using REGEX) then I believe you can format that URL in Markdown format:

    [Click Here to Go To PureCloud][https://login.mypurecloud.com)

    When the message is received by PureCloud, then it should display as a link.


    Falcon | 2020-01-06 16:59:38 UTC | #3

    Hello,

    I need to open the url in a new window, with the markdown format only can open in the same window. its posibble open the url in new window?


    crespino | 2020-01-06 18:56:46 UTC | #4

    You can add the target attribute to the link via markdown by using this format:

    [link](url){:target="_blank"}

    Using a target of _blank will always open in a different tab, so you may end up with lots of tabs after a while. If you use a named target such as target="MyTab" then the link will open in a separate tab and will open any subsequent links in that same tab.


    Falcon | 2020-01-07 16:15:28 UTC | #5

    I tried to do it that way but I get the problem

    I can't open in a new window


    crespino | 2020-01-07 18:11:11 UTC | #6

    I'm sorry to say that the version of Markdown implemented in PureCloud for chat doesn't support the entire Markdown schema and the {:target=""} format is not supported.

    Unfortunately all I can suggest is for you to train your users to right click on links in the chat and choose "Open In New Tab" or "Open In New Window".


    Falcon | 2020-01-07 18:42:31 UTC | #7

    Ok thanks for the help.


    system | 2020-02-07 18:42:32 UTC | #8

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 6801