Insert a message into virtual agent chat while waiting in the queue

Anil Karthik N
Tera Contributor

Hi Community,

 

I’m trying to make text bold in a Flow Designer custom action by sending a message using the sn_connect API. Here’s the code snippet I’m using:

 

javascript

Copy code

var conversation = sn_connect.Conversation.get("2064fa3919010300964f5270e9840fbb");  

conversation.sendMessage({  

    body: "<b>Helloworld</b>",  

    system: true  

});

However, instead of rendering the text as Helloworld, the output is displaying as the raw

<b>Helloworld</b>

Anyone help me what I'm missing here

 

Thanks in advance

0 REPLIES 0