Markdown and text formatter in web messaging

Hi Team,

i'm using web messaging headless mode SDK, i'm trying to add the text formatter feature on Customer chat window so when a customer send the bold text the agent on the other end can receive it as bold text. I'd like to know if there is any way we can achieve this?

Do we have any commands and plugins for making the text to a markdown / text formatter compatible. Kindly let me know.

Hi Kamesh,

You can enable the 'Rich text formatting' option on Apps tab in the Messenger Configuration.
it make the markdown formatting available for the deployment.

Let me know if this is what you are looking for.

Regards,
David

for regular admin panel approach this is fine, can we do this in headless mode SDK from the user side? if the user sends a bold message how do we enable it? let me know if you are able to understand my request.

If you are using the Genesys Admin console with the Agent UI and the web messaging JS SDK in headless mode with custom UI, the markdown configuration works for the client as well:
If the markdown is enabled , the end-user can send bold messages.

Let me know if I'm missing something from your config

How does the client send the bold text? we have to write our own logic or is there any commands and plugins which I can use to wrap the text and send it?

Hi @kameysh, you will use the Messenger.sendMessage command which will include the markdown syntax when sending the message.

Example for bold: Genesys("command", "MessagingService.sendMessage", { message: "*hi there!*" });

For the other list of markdown formats we support, see here.

Hi @Ranjith_Manikante_Sa @David1

I have a doubt, why genesys is using their own syntax for formatting? this is very confusing with the global markdown syntax because for bold genesys uses text wrapped by 1 asterisk in front and 1 asterisk at the end but in global markdown it is wrapped with 2 in front and 2 at the end. will that syntax also work? or only this will work for headless mode SDK? Markdown syntax for rich text in Messenger - Genesys Cloud Resource Center

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