Msg91 Help Doc
Hello Contact Center
ChatBots in Hello
MSG91 Bot

MSG91 Bot


The MSG91 Chat bot is an in-house built Chat bot technology that helps users create their own Chat bot by using drag and drop functionality. The chat bot can be integrated to communication channels such as a chat widget, WhatsApp business account and Instagram as well.

One can design their own flow on the canvas provided using the message, utility and actions features.

Lets understand the terminology used in the chat bot

  1. Flows : One can create multiple flows with more than one intents. The chat bot picks the flow on the basis of the intents provided

  2. There can be two types of flows: message and fallback

  3. A fallback flow is custom flow that can be created to handle fallback situations

  4. A message flow guides the chat bot the flow to be picked when respective intent is received.

  5. Canvas : A dotted sheet provided for the user to drag and drop the cards and design the flow

  6. Card : A white rectangular box drag and dropped on the canvas is a card.

  7. Node : A blue dot created on the card that helps the user connect it to multiple cards is a node

  8. Connectors : A blue dash line connecting node of one card with the other is a connector

  9. Intents : Intents are the keywords that are required for the bot to pickup the flow created parallel to it. One can add as many intents as they want. Also the intents can be case matched and regex matched.

Refer below help documents to know more about the MSG91 Bot


  1. Open Hello, navigate to "Manage," and select "Bots."

Kb172735193605847172


  1. Click on the Create Bot button and select type as MSG91[Beta]. 

Kb172735195960451717


  1. Name the bot and Save it

    Kb172735126047528217
  2. Click the "Create Flow" button (top-right corner) to begin creating your bot flow. Name the flow and select the appropriate flow type based on your needs—either Message-based or Fallback.

    Kb172735126126967417

  1. Defining Intents and Matching
    Add intent keywords (words users may input when interacting with the bot) and enable Case Match and Regex Match based on your requirements:

  • Case Match: Enables case-sensitive keyword recognition. For example, if “Hi” is case-matched, only the exact match “Hi” is accepted, while “hi,” “HI,” or “hI” will be rejected.

  • Regex Match: Use regular expressions (regex) to define text patterns, making it possible to validate, search, or manipulate user input. For example, the regex \d{3}-\d{2}-\d{4} matches a U.S. Social Security number (e.g., 123-45-6789). For more details, click "Learn more" or use tools like ChatGPT to help create regex codes.

  1. If a user doesn’t respond after a set time, enable Nudge Contact to send reminders. Customize the message, number of attempts, and delay time. Save once configured




    Kb172735198366543417

  2. Now you can add the following nodes in your flow:

  • Send a message or text

  • Ask Questions

  • Utility 

  • Action

    Screenshot 2024-11-30 at 2.09.28 PM.png-fr89h6

  1. The Send Message node allows sending text, media, WhatsApp templates, CTA button. You can also add a variable in the message node. 

    Screenshot 2024-11-30 at 2.07.01 PM.png-q3bfhr

  2. The Send Media option allows user to send/attach media of the following type

  • Audio

  • Image

  • Video

  • Document

    Click on the supported file types button to know more about the files supported by the bot along with their size. 

    Screenshot 2024-11-30 at 2.18.21 PM.png-qjy2mi

  1. The Send WhatsApp Template node allows you to send Meta-approved WhatsApp templates through the bot

Screenshot 2024-11-30 at 2.23.00 PM.png-6gl40c

  1. The Send CTA Button node allows you to send text, image, video, or document with clickable phone, link, and email options, enabling users to contact you directly.

    Screenshot 2024-11-30 at 2.29.24 PM.png-xm4frq

  2. The Ask Questions node provides user with two options: Ask text and Ask button

    Kb172735201093690117
  3. The Ask Text lets user ask questions and store them in either pre-defined variables such as customer_name, customer_mobile and customer_email or custom variables. 

    Kb172735202328162317
  4. Create the variables by writing the variable name under the store response section.

  5. Validation Settings: This feature helps a bot validate the responses received from the user. Enter the no. of attempts along with the message to be shown when user input is invalid.

  6. Post the completion of no. of attempts, the bot can either do the following tasks

  • Drop from the bot

  • Skip the question

  • Proceed to fallback: Upon selecting this option, a fallback option is created allowing you to perform an action of your choice.


    Kb172735204533124617

    1. To validate the response add the max and min no. of character required along with the regex expression if required. 

    2. The Ask Button lets you add up to three buttons with a header along with header storing following types of data

  • None

  • Text

  • Image

  • Video

  • Document

Add footer and variables if required.

Screenshot 2024-11-30 at 2.41.02 PM.png-07txll

  1. Use Utilities to add custom logic or scripts using JavaScript. You can execute APIs and display responses based on your logic.

  2. To create additional nodes in the utility script, you need to include return statements with string variables. For example writing return “true”; will generate a node named “true”.

  3. The fallback node is a default node created to handle the flow when the utility script fails to run at any situation.

  4. Multiple nodes can be created as per the requirement.

  5. In order to store and display the response of the API in further flow, one can use the _flow_variables.variable_name.

  6.  To display this variable in any other card one can write the variable as {{variable_name}} and present it to the end user.

  7. Also kindly use fetch function to call APIs and perform crud operations

  8. You can test the script and do the needful changes by clicking on the test script button before saving it. 

    Kb172735208308307817

  9. The Delay node allows you to set a specific wait time before the bot responds, simulating a more natural conversation flow by adding a delay

Screenshot 2024-11-30 at 2.57.01 PM.png-yzzyld

  1. The Action node allows you to assign a conversation to an agent, unassign it, or close the conversation at any point.

    Screenshot 2024-11-30 at 2.47.31 PM.png-5xcnts

  2. The Assign Conversation node allows you to assign a conversation to your team or an agent for quick and efficient resolution

    Screenshot 2024-11-30 at 3.14.01 PM.png-hu88hy

  3. The Unassign Conversation and Resolve/Close Conversation nodes allow you to unassign a conversation from an agent or close the conversation once it's resolved.

  4. Click on the Settings to configure the bot level settings

    Kb172735209733131172
  5. Configuring Settings

  • Enable Inbox: Select which inboxes to integrate with the bot.

  • Fallback Flow: Choose a custom fallback action in case of no response.

  • Non-response Action: Define the bot’s behavior when the user doesn’t respond.

    Kb172735211025687317

    

  1. Save all settings, and your MSG91 bot is ready to go!



How to create MSG91 Bot
Jan 7, 2025

With MSG91’s Google Sheets plugin, you can seamlessly store user responses from your chatbot into a connected Google Sheet. Follow the steps below to get started:


✅ Step 1: Set Up Your Chatbot Flow

  1. Open your MSG91 Chatbot in Hello Ticketing and chat center.

  2. Create a new flow or use an existing one.

  3. Add a series of

    message cards

    (e.g., text questions) to collect user responses.

  4. For each question, save the responses in variables. Refer this

    doc

    to understand how to create custom variables to store user response.

Example:
Create message cards for the following questions and save responses as:

Question

Variable Name

What is your name?

customer_name

Which country do you live in?

country_selected

Which is your favourite car?

car_selected

What is your hobby?

user_hobby


✅ Step 2: Prepare Your Google Sheet

  1. Open Google Sheets from your Google account.

  2. Create a new spreadsheet and add column headers that match the information you want to collect.

Example column headers:

  • Name

  • Country

  • Car

  • Hobby

(Make sure they correspond to the variables above.)


✅ Step 3: Connect Google Sheets Plugin in MSG91

  1. Go back to your chatbot flow in MSG91.

  2. From the right-side panel, click on Connections.

  3. Drag and drop the "Plugin" card onto your chatbot flow (canvas area).


✅ Step 4: Configure the Plugin

  1. Click on the Plugin card → Add Flow → Select Google Sheets.

  2. Connect your Google Account (use the same account where your spreadsheet was created).

  3. From the dropdown:

    • Select your Google Sheet

    • Choose the correct worksheet (e.g., Sheet1)

  4. The columns from your sheet will now auto-populate below.

  5. Enable the “Fill with AI” checkbox.

  6. Click Test:

    • Enter sample values for each column.

    • Save and confirm that these values appear in your sheet.

  7. If successful, click Create.


✅ Step 5: Map Variables with Sheet Columns

  1. On the Plugin card, click the bullet point icon, then click the pen/edit icon.

  2. You will now see a key-value mapping format like this:

{
 "Name": "{{customer_name}}",
"Country": "{{country_selected}}",
"Car": "{{car_selected}}", 
"Hobby": "{{user_hobby}}"
}
  1. Make sure the keys match your sheet’s column headers, and the values match your variable names (surrounded by double curly brackets).

  2. Save the configuration.


🎉 You’re Done!

Now, whenever a user interacts with your chatbot and fills out the flow, their responses will be automatically logged into your Google Sheet in real time.


🛠 Need Help?

If you face any issues:

  • Double-check your variable names and column headers

  • Ensure the Google Sheet is accessible via the connected account

  • Schedule a Meeting

    or drop an email at [email protected]


How to Save Chatbot User Inputs in Google Sheets via MSG91
Google Sheets pluginMSG91chatbot integrationstore user responsescustom variables for chatbot
Aug 5, 2025