This feature allows you to fetch data from Google Sheets and respond to users dynamically in a bot flow. Steps:
- Go to Chatbot and click on Create Bot Flow
- Enter a Bot Flow name
- Add a Trigger (e.g., Keyword) and select channel
- Add an Ask Question block to collect input (e.g., Complaint Number)
- (Optional) Save response in a Custom/Super Field
- Add a Branch and select Automation App → Google Sheets
- Choose Lookup Spreadsheet Rows action
- Connect your Google account (Authentication)
- Select Spreadsheet and Sheet
- Enter Column (e.g., D for Complaint Number)
- Set condition (e.g., Equal to Number) and map value as Last Text Input
- Test and verify data using Run History
- Save response data into Bot Fields (e.g., Status, Row Count)
- Add a Router:
- If no record → send “No record found” and re-ask input
- If record found → display fetched data
- Save and Enable Bot Flow
This setup helps automate data lookup and gives instant responses to users using Google Sheets.