Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Send ButtonResponse to Genesys Widget using JS SDK

    Posted 08-02-2024 03:32

    Hello,

    Below is the code I am using to send URL as plain text, can I format the body to send it as button response which will open the URL in another tab? If yes, then how?

    let body = {
    "textBody": "https://google.com"
    };
    let opts = {
    "useNormalizedMessage": false
    };
    // Send message
    ConversationsApi.postConversationsMessageCommunicationMessages(conversationId, communicationId, body, opts)

    Send ButtonResponse to Genesys Widget using JS SDK - Platform API / JavaScript SDK - Genesys Cloud Developer Forum


    #API/Integrations

    ------------------------------
    Regards
    Maloy Karmakar
    British Telecommunications PLC
    ------------------------------


  • 2.  RE: Send ButtonResponse to Genesys Widget using JS SDK

    GENESYS
    Posted 08-05-2024 11:28

    Hello Maloy, 

    This is a question that I think could better be suited for the developer forums, as I see you have already done. But let me do some testing and digging to see what I can find out. 

    I am curious myself to see if this can be done. 

    Cheers, 



    ------------------------------
    Cameron Tomlin
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: Send ButtonResponse to Genesys Widget using JS SDK
    Best Answer

    GENESYS
    Posted 08-05-2024 12:36

    Most "text" areas in Genesys Cloud support Markdone formatting, including Web Messaging: https://help.mypurecloud.com/articles/markdown-syntax-for-rich-text-in-messenger/.  You might look at that article and format your textBody as a Markdown hyperlink and see what happens.



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources