Formatting Live Chat Bot Replies
VS

Varun Sharma

Published:

07/02/25 7:30 AM

17 views

1

17

Hi team,

How can we format the bot replies which are sent in Live Chat?

For example:
In the above screenshot, we are just sending a normal bot replies having some variables defined in the flow above the bot reply. Now, how can we do the below customisations?

 

— Bold/italics.

— Font Colour and Font Size for different static and dynamic texts.

 

Question

Updated

2 months

 

Comments

  • SS

    SHIVAM SHARMA

    8 months

    ago

    03/07/2025

    one way I know is via RICH_TEXT asset created using groovy script with flag markDownText: true

     

    image


    Sample Groovy Code Snippet:

    //--------STATIC PART------ 
    
    def card = [:]; 
    
    card['_id'] = "67777e6af9a34861c129c0f8"; 
    
    card['assetStatus'] = 'APPROVED'; 
    
    card['availableAfterTime'] = 1735883963371; 
    
    card['visibleFromTime'] = 1735883963371; 
    
    card['visibleTillTime'] = 2208988800000; 
    
    card['expiryTime'] = 2208988800000; 
    
    card['neverExpire'] = true; 
    
    card['deletePostsOnExpiry'] = false; 
    
    card['hasExtensionRequests'] = false; 
    
    card['autoImported'] = false; 
    
    card['locked'] = false; 
    
    card['featured'] = false; 
    
    card['publicAsset'] = false; 
    
    card['restricted'] = false; 
    
    card['createdByAd'] = false; 
    
    card['hidden'] = false; 
    
    card['contentEditingProhibitedInPublisher'] = false; 
    
    card['channelTypes'] = []; 
    
    card.channelTypes.add("SPRINKLR_LIVE_CHAT"); 
    
    card['expiryModifiedTime'] = 1735884394357; 
    
    // Approval block 
    
    def approval = [:]; 
    
    approval['approvalOption'] = 'NONE'; 
    
    card['approval'] = approval; 
    
    card['processInitiated'] = false; 
    
    card['name'] = 'rich text'; 
    
    card['assetType'] = 'TEMPLATE_ASSET'; 
    
    card['assetSubType'] = ''; 
    
    // Social Asset block 
    
    def socialAsset = [:]; 
    
    card['socialAsset'] = socialAsset; 
    
    socialAsset['channelType'] = 'SPRINKLR_LIVE_CHAT'; 
    
    socialAsset['templateType'] = 'RICH_TEXT'; 
    
    socialAsset['omniChannelTemplate'] = true; 
    
    socialAsset['_templateType'] = 'PRODUCT_BANNER'; 
    
    socialAsset['_socialAssetType'] = 'TEMPLATE_ASSET'; 
    
    // Content block 
    
    def content = [:]; 
    
    socialAsset['content'] = content; 
    
    content['text'] = '**GREAT**';
    
    content['disableManualResponse'] = true; 
    
    content['samId'] = '67777e6af9a34861c129c0f8'; 
    
    content['markdownText'] = true;
    
    content['type'] = 'RICH_TEXT'; 
    
    def otherConfigs = [:]; 
    
    otherConfigs['__hiddenFields__'] = [:]; 
    
    content['otherConfigs'] = otherConfigs; 
    
    content['hideAttachment'] = false; 
    
    content['voiceCommands'] = ''; 
    
    content['_class'] = 'com.spr.sam.dataobject.templates.RichTextContent'; 
    
    socialAsset['enabled'] = true; 
    
    socialAsset['_class'] = 'com.spr.sam.dataobject.templates.TemplateAsset'; 
    
    card['assetSource'] = 'SPRINKLR'; 
    
    card['additionalDetails'] = [:]; 
    
    card['isPrivate'] = false; 
    
    card['deleted'] = false; 
    
    card['permissionTypes'] = []; 
    
    card['_class'] = 'com.spr.sam.dataobject.SocialMediaAsset'; 
    
    JSON_UTILS.toJson(card);
    
    return card;
     
    Related Conversations
    JS

    Jaimie Selwa

    2 years

     ago

    525 views

    Cristopher Cravioto Garcia responded 

    10 months

     ago

    Hello, 👋 My name is Jaimie and I'm one of the Customer Advocacy Managers. Along with @Rupali Verma, we manage the Sprinklr Champions program. Welcome to the Community and our group! We'll use this space to share updates, executive opportunities, and gather feedback from you, our valued custome

    Sprinklr Champions

    3

    525

    0

    K

    Karla Prado

    3 years

     ago

    449 views

    Carlos Lara responded 

    6 months

     ago

    Hello everyone,I'm interested in integrating Sprinklr with Power BI to personalize my information. However, I haven't been able to find any documentation on the API itself. The only resources I came across were third-party platforms that require a fee for this integration. Has anyone successfully in

    Sprinklr Platform
    Integrations

    9

    449

    0

    H

    Hernan Rodriguez

    2 years

     ago

    437 views

    rodriguez responded 

    5 months

     ago

    Good morning, I am wondering if it is possible to add music or audio to an Instagram post. When I upload/schedule, I use the Quick Publish widget and I don't see it there. If it is currently not possible, I think it would be a really neat tool!

    Sprinklr Social
    Publishing
    Instagram
    support

    8

    437

    0

    JG

    Jordana Gustafson Wright

    1 year

     ago

    180 views

    marsh responded 

    5 months

     ago

    Hi Everyone! I wanted to share a success story we published a few weeks back with Deutsche Telekom. They're rolling out Sprinklr Service in their contact centers across Europe — they have a couple hundred agents already onboarded and expect to have 40k+ once the project is fully implemented. I loved

    Sprinklr Service

    9

    180

    0

    P

    paulo.henrique

    3 years

     ago

    198 views

    Jay Elango responded 

    3 years

     ago

    Estou criando uma apresentação e não entendo como ela está classificando por Classificar por. Seria possível ordenar alfabeticamente, ou criar alguma regra para esta ordenação?

    Sprinklr Platform
    Presentations

    8

    198

    0