With MSG91тАЩs Google Sheets plugin, you can seamlessly store user responses from your chat bot into a connected Google Sheet. Refer to the video attached or follow the steps below to get started:
тЬЕ Step 1: Set Up Your Chatbot Flow
Open your MSG91 Chatbot in Hello Ticketing and chat center.
Create a new flow or use an existing one.
Add a series of message cards (e.g., text questions) to collect user responses.
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
Open Google Sheets from your Google account.
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
Go back to your chatbot flow in MSG91.
From the right-side panel, click on Connections.
Drag and drop the "Plugin" card onto your chatbot flow (canvas area).
тЬЕ Step 4: Configure the Plugin
Click on the Plugin card тЖТ Add Flow тЖТ Select Google Sheets.
Connect your Google Account (use the same account where your spreadsheet was created).
From the dropdown:
Select your Google Sheet
Choose the correct worksheet (e.g., Sheet1)
The columns from your sheet will now auto-populate below.
Enable the тАЬFill with AIтАЭ checkbox.
Click Test:
Enter sample values for each column.
Save and confirm that these values appear in your sheet.
If successful, click Create.
тЬЕ Step 5: Map Variables with Sheet Columns
On the Plugin card, click the bullet point icon, then click the pen/edit icon.
You will now see a key-value mapping format like this:
{
"Name": "{{customer_name}}",
"Country": "{{country_selected}}",
"Car": "{{car_selected}}",
"Hobby": "{{user_hobby}}"
}Make sure the keys match your sheetтАЩs column headers, and the values match your variable names (surrounded by double curly brackets).
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 support@msg91.com