Formatting Live Chat Bot Replies
VS

Varun Sharma

Published:

07/02/25 7:30 AM

5 views

1

5

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

10 hours

 

Comments

  • SS

    SHIVAM SHARMA

    10 hours

    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

    1 year

     ago

    441 views

    Cristopher Cravioto Garcia responded 

    1 month

     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

    441

    0

    K

    Karla Prado

    2 years

     ago

    265 views

    Prabhakar Kumar responded 

    1 year

     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

    8

    265

    0

    H

    Hernan Rodriguez

    1 year

     ago

    239 views

    Fernando Perez Lago responded 

    1 year

     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

    6

    239

    0

    P

    paulo.henrique

    2 years

     ago

    113 views

    Jay Elango responded 

    2 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

    113

    0

    S

    samantha_nardi

    2 years

     ago

    124 views

    Jay Elango responded 

    2 years

     ago

    How can I adjust the widget dimensions in order to have a single one in one ppt slide? If I download my report dashboard as it is today, it looks weird. Collapsed columns, overlapping rows and I see only 5 lines out of 14 in total. Suggestions?  

    Sprinklr Marketing
    Analyze

    6

    124

    0