Send ButtonResponse to Genesys Widget using JS SDK

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)

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.

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