Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Go to Haptik Website
  • Contact Us
  • Home

What are Bot Variables? How to Use Bot Variables

Written by Soham Amburle

Updated on December 21st, 2022

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Build Deploy Analyse Manage Account Bot Deactivation
  • Bot Building
    Essentials Smart Skills Steps User Messages Bot Responses Entities Connections Customisations User feedback collection Testing Whatsapp Bots NLU Bot Maintenance
  • Smart Agent Chat
    Set up Admin Settings MyChats Section (Agent Inbox) Live Traffic Section Teams Section Archives Section Analytics Plans on Smart Agent Chat
  • Conversation Design
    Design Basics Design Guides Designing for Platforms Designing WhatsApp Bots
  • Developer Guides
    Code Step Integration Static Step Integration Shopify Integration SETU Integration Exotel Integration CIBIL integration Freshdesk KMS Integration PayU Integration Zendesk Guide Integration Twilio Integration Razorpay Integration LeadSquared Integration USU(Unymira) Integration Helo(VivaConnect) Integration Salesforce KMS Integration Stripe Integration PayPal Integration CleverTap Integration Fynd Integration HubSpot Integration Magento Integration WooCommerce Integration Microsoft Dynamics 365 Integration
  • Deployment
    Web SDK WhatsApp Facebook Instagram Sunshine Conversation LINE Google Business Messages Telegram MS Teams Bot as an API iOS SDK Android SDK
  • External Agent Tool Setup
    Zendesk Chat Salesforce Service Cloud Freshchat Zoho NICE CXOne Gorgias
  • Analytics & Reporting
    Intelligent Analytics
  • Notifications
    SMS Notifications Success Measurement
  • Commerce Plus
    Catalog Integration Bot Building Guide Channel Deployments Unified ML Pipeline Documentation
  • Troubleshooting Guides
    Error Messages FAQs
  • Release Notes
+ More

Table of Contents

What are Bot Variables? Creating Bot Variables Using Bot Variables

What are Bot Variables?

Bot Variables are Key-Value pairs used for making configurable Bot Responses in the bot. 

Assume, that you have a bot and your users have used it for a good period of time. Now, there is some change that has taken place in your business, say for example, the business name, and you want to update this on all the Bot Responses in your bot. To update all Bot Responses, you need to go to each and every Step of your bot and update the Bot Responses one by one. This is a very tedious and time-consuming task. This is where Bot Variables come handy. 

With Bot Variables, you will be able to make a bot-wide change at once, as opposed to visiting each and every Step and making a change one by one. This will reduce your overall time of bot-building, making it one of the most time-saving and efficient features on the Haptik platform. 

You can simply create a list of Bot Variables before building the bot by defining key-value pairs of texts which you want to make configurable in your bot, and then proceed with the regular bot-building activity. Now, you just need to add the Bot Variables KEYS in the Bot Responses to make it configurable.

Creating Bot Variables

In order to create Bot Variables, open your bot and navigate to the vertical ellipsis, as shown. 

To create a new or edit an existing Bot Variable, click on Edit Bot Variables, and select Add a Bot Variable as shown.

Next, you will see this pop-up, where you need to add the Key and Value pair, as shown. The Key is the unique name and cannot be changed after creation, and the Value can be changed as and when required.


Make sure that every Key has one Value per language if you are using this feature on a Multi-lingual bot. Also, while adding a new Variable, you can add at the most 50 Keys, where the maximum length of each Key is at the most 50 characters and that of each Value is 256 characters. All Value characters are allowed to include spaces, numbers, and special characters, whereas for a Key, you can only use lowercase alphabets, underscore, and numbers. The Value cannot be empty across any language. The Key names should be unique at a bot level and are not editable across any language.

Delete

If you have a Multi-lingual bot, you will be able to add Bot Variables in your preferred language.

Once you are done adding a Bot Variable, click on the Save button to save it.

Using Bot Variables

Once you have created Bot Variables, you can use them across all Static Steps in your bot. You can simply add or edit a Bot Response and you will see an Add Variable button, as shown.

After clicking on the Add Bot Variable, you will see a list of your added variables. Simply, select the Bot Variable that you want to add or search it by entering its name. 

When you click on the Bot Variable, it will be added to the Bot Responses, as shown.

Apart from this, you can add a Bot Variable in a Static, Output, and FAQ Step, in the following places:

  • Bot Responses
  • Follow-up Messages
  • Entity Bot Responses
  • Final Responses

What's more, you can add a Bot Variable in the following types of Bot Responses:

  • Text & Quick Replies
  • Buttons
  • Carousel
  • Image
  • Raw Text/JSON

Still need help? Reach out to your Haptik SPOC right away :) 

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • How to copy a Skill?
  • What is Bot Versioning? How does it work?
  • How does NPS feedback flow work?
  • What are FAQs? How to configure FAQ section?
  • What is NICE CXone Integration? How to Set Up Haptik and NICE CXone Integration

Platform

  • Conversation Studio
  • Smart Skills
  • Advanced NLU
  • Intelligent Analytics
  • Omnichannel
  • Smart Agent Chat
  • Enterprise Security
  • Integrations

Solutions

  • Conversational Commerce
  • Lead Generation
  • Customer Care
  • WhatsApp
  • Conversational IVR
  • Google Business Messages

Industries

  • Retail/ E-Commerce
  • Financial Services
  • Travel & Hospitality
  • Telecom

Knowledge

  • ROI Calculator
  • Reports & Research
  • Case Studies
  • Webinars
  • ISAT
  • Tech Blog
  • Business Blog
  • Resources
  • Haptik v/s Yellow
  • Haptik v/s Liveperson
  • Haptik v/s IBM Watson
  • Haptik v/s Verloop
  • Conversations on AI

Company

  • Why Haptik
  • About Us
  • Careers
  • News & Media
  • Awards & Recognition
  • Contact Us
  • Partnerships
  • Investor Relations

Subscribe

Sign up to recieve the latest updates

Find us on

  • Twitter-footer
  • Linkedin-footer
  • YT-footer
  • Insta-footer
  • G2-footer
  • Facebook-footer

Knowledge Base Software powered by Helpjuice

Copyright © jio Haptik Technology Limited 2021 | Data Security & Privacy Policy | GDPR

North America | Asia Pacific | Africa | enterprise@haptik.ai

Definition by Author

0
0