Overview
Google Sheets powers everything from pricing tables and inventory trackers to scheduling rosters and customer lists. But most people outside the team that owns the sheet don't know which sheet to open, which tab to check, or which row has their answer.
The Google Sheets integration lets your AI agent read sheet data, inspect metadata like sheet names and row counts, and query specific ranges. Your chatbot turns a spreadsheet into a conversational lookup tool.
When to Enable This
- Your team maintains pricing, inventory, or scheduling data in Google Sheets and gets frequent lookup requests
- Customer-facing agents need to check a live spreadsheet (e.g., availability, pricing) during conversations
- You want the AI to answer “What's the current price for X?” using real-time sheet data
Available Actions
| Action | Description |
|---|
| Read Sheet | Retrieve all rows and columns from a specific sheet tab |
| Get Metadata | List sheet names, row counts, and column headers for a spreadsheet |
| Query Range | Read a specific cell range (e.g., A1:D50) from a sheet |
The AI reads column headers automatically, so users can ask questions like “What's the price for Widget Pro?” without knowing which column or row the data is in.
Prerequisites
Before connecting Google Sheets, make sure you have:
- A Google Workspace or personal Google account
- OAuth consent configured for the Google Sheets API
- The spreadsheets you want to query shared with the authorized account
Setup Instructions
Step 1: Authorize Google Sheets
- In ChatSpark, go to AI Actions
- Find Google Sheets in the Library and click Enable
- Click Connect Google Account
- Sign in with the Google account that has access to the spreadsheets
- Grant ChatSpark read-only access to Google Sheets
ChatSpark only requests read-only permissions. Your AI agent can read sheet data but cannot edit cells or modify any spreadsheets.
Step 2: Configure in ChatSpark
- After authorizing, select the chatbot(s) that should have access
- Add the spreadsheet IDs or URLs you want the AI to query
- Click Save
Configuration Fields
| Field | Description | Example |
|---|
| OAuth | Google account authorization via OAuth 2.0 | Connected via sign-in flow |
Testing Your Integration
After setup, open your chatbot widget and try these realistic queries:
- Ask: “What's the current price for the Enterprise plan?”
- The AI should read your pricing sheet and return the matching row
More test phrases:
- “How many units of the Blue Widget are in stock?”
- “Who's scheduled for the morning shift on Friday?”
- “Show me the column headers in the inventory tracker”
Troubleshooting
Spreadsheet not accessible
The connected Google account must have at least “Viewer” access to the spreadsheet. Share the sheet with the authorized account if needed.
Wrong sheet tab
If data comes from the wrong tab, specify the tab name in your query (e.g., “Check the Inventory tab for Widget Pro”). The AI uses Get Metadata to discover available tabs.
OAuth token expired
Google OAuth tokens refresh automatically. If the connection breaks, go to AI Actions in ChatSpark and click Reconnect.
If you're having trouble with the Google Sheets integration, contact our support team and we'll help you troubleshoot.