Google Sheets - Chat Flow Trigger
This section explains how to use Google Sheets within Chatflow Builder to retrieve, create, update, and delete spreadsheet records during chatbot conversations.
What is Google Sheets Chat Flow Trigger?
Google Sheets Chat Flow Trigger allows your chatbot to interact with Google Sheets at specific points within a conversation.
Unlike Lead Alert Trigger, which automatically sends lead information to a spreadsheet, Chat Flow Trigger executes only when the Google Sheets component is reached in the chatbot flow.
Using Chat Flow Trigger, you can:
Retrieve information from Google Sheets
Add new records to a spreadsheet
Update existing records
Delete records when required
Build dynamic, data-driven chatbot workflows
When should you use this?
Use Chat Flow Trigger when you need to:
Verify customer information
Retrieve order details
Check appointment records
Save form submissions
Update customer data
Delete outdated records
Build spreadsheet-based workflows
Step-by-Step Instructions
Step 1: Open Google Sheets Integration
Open your desired WhatsApp Bot.
Navigate to Third Party Integrations.
Search Google Sheets and click Connect.

Step 2: Connect Your Google Account
Click Sign in with Google.
Select the Google account you want to connect.
Review the requested permissions.
Click Continue.
Your Google account will be connected once authorization is complete.

Step 3: Enter a Title
Enter a name for this configuration. Examples:
Lead Capture Sheet
Appointment Records
Customer Database
The title helps you identify this configuration when using Google Sheets inside Chatflows.

Step 4: Select a Trigger Type
Choose when the platform should send data to Google Sheets. In this article, we will be focusing on Chatflow Trigger. For Lead Alert Trigger refer to-
Chatflow Trigger
When a Google Sheets component is executed inside a Chatflow
Lead Alert Trigger
Automatically when a new lead is generated

Step 5: Map Questions
Select a chatbot question from the dropdown.

Enter the corresponding column name as the mapping value.

Repeat for all required questions.
Click Add Parameters to add more rows.

Step 6: Map Custom Attributes
Select a customer attribute from the dropdown.

Enter the corresponding column name as the mapping value.

Click Add Parameters to add more rows.
Click on Save.

Accessing the Google Sheets Component
Navigate to Chat Flows.
Open the flow you want to edit.
Search Google Sheets component and click on it to add it onto the canvas.

Click on configure on the Google Sheets component.

Understanding the Configuration Panel
Provide a name for the Google Sheets action. Examples:
Get Customer Details
Add Lead Record
Update Appointment
Delete Registration
This name is used for identification within the flow.

Select the Google Sheet connected through your Google Sheets Integration.

Select the worksheet (tab) that contains the data you want to access.

Select the action you want BotPenguin to perform. Available actions:
Get Details
Retrieve information from a Google Sheet by searching for a matching record and using the returned data within your chatbot flow.
Add Row
Create a new row in the selected Google Sheet using chatbot responses, customer attributes, or mapped values.
Update Row
Locate an existing record and update specific fields with the latest information collected during the conversation.
Delete Row
Find and permanently remove a matching record from the selected Google Sheet worksheet.

🔍 Get Details
Use Get Details when you want to retrieve information from a spreadsheet.
Common use cases:
Customer Lookup
Order Tracking
Appointment Verification
Membership Validation
Search Options: Search Options determine how BotPenguin locates records within the spreadsheet. Examples:
Email Address
Phone Number
Customer ID
Order Number

Search Range: Specify the range of columns that should be searched. Examples:
A:D
A:H
C:F

Search Index: Specify which column contains the searchable value. Examples: If Email Address is stored in column B, the Search Index should be set to 2.
A
1
B
2
C
3
D
4

Response Mapping: Map values returned from Google Sheets to customer attributes. Example:
Name
Name
Order Status
Order Status

Success Next Message: Select the chatbot message that should be displayed when a matching record is found.

Failure Next Message: Select the chatbot message that should be displayed when no matching record is found.

➕ Add Row
Use Add Row when you want to create a new record in Google Sheets. Common use cases:
Lead Capture
Registration Forms
Appointment Requests
Feedback Collection
Repeat Steps 1 - 6 specified in the Get Details Section

Add Row Flow Logic: Configure the chatbot message that should be displayed after the action is completed

✏️ Update Row
Use Update Row when you want to modify an existing spreadsheet record.
Common use cases:
Updating Customer Information
Editing Appointment Details
Updating Order Status
Managing Registrations
BotPenguin locates the existing record and updates the mapped fields.
Repeat Steps 1 - 6 specified in the Get Details Section
Update Row Flow Logic: Configure the chatbot message that should be displayed after the action is completed

🗑️ Delete Row
Use Delete Row when you want to remove an existing record from the spreadsheet.
Common use cases:
Appointment Cancellation
Record Cleanup
Removing Obsolete Data
BotPenguin searches for the matching record and removes it from the worksheet.
Repeat Steps 1 - 6 specified in the Get Details Section
Delete Row Flow Logic: Configure the chatbot message that should be displayed after the action is completed

Best Practices
💡 Use unique values such as Email Address, Phone Number, Customer ID, or Order Number when searching records.
💡 Always configure both Success and Failure paths.
💡 Use customer attributes to store retrieved values for later use.
💡 Test your workflow before publishing.
Troubleshooting
FAQs
Related Features
Google Sheets IntegrationManaging Custom AttributeManage Chatflow🎉 Completion
🎉 You now understand how to use Google Sheets Chat Flow Trigger to retrieve, create, update, and delete spreadsheet records directly from chatbot conversations.
Support
If everything is correct and you are still unable to move forward, write to us at support@botpenguin.com. We will respond back within 48 business hours.
Last updated