Legacy Dev Forum Posts

 View Only

Sign Up

Send ButtonResponse to Genesys Widget using JS SDK

  • 1.  Send ButtonResponse to Genesys Widget using JS SDK

    Posted 06-05-2025 18:04

    Maloy.Karmakar | 2024-07-30 11:31:38 UTC | #1

    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)


    crespino | 2024-08-05 16:36:41 UTC | #2

    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.


    system | 2024-09-05 16:37:04 UTC | #3

    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: 27473