Google Sheets Integration
Let your agents read from and write to Google Sheets. This turns any spreadsheet into a live data source or a place to log information — leads, orders, survey responses, and more.Connecting Google Sheets
Step 1: Start the OAuth Flow
- Navigate to Agents and select your agent.
- Go to the Tools section and click Add Tool.
- Select Google Sheets.
- Click Connect Google Account.
Step 2: Authorize Access
- Sign in with the Google account that has access to your spreadsheets.
- Review and approve the permissions:
- View your Google Sheets — read spreadsheet data
- Edit your Google Sheets — write and update data
- Click Allow.
Step 3: Configure the Tool
| Setting | Description |
|---|---|
| Spreadsheet URL or ID | The Google Sheets URL or spreadsheet ID to connect |
| Sheet Name | Specific sheet/tab within the spreadsheet (optional — defaults to the first sheet) |
| Allowed Actions | Read, write, or both |
Available Actions
| Action | Description |
|---|---|
| Read Data | Retrieve rows, columns, or ranges from the spreadsheet |
| Write Data | Add new rows or update existing cells |
| Search | Find rows matching specific criteria |
| Get Metadata | Retrieve sheet names, column headers, and row counts |
Reading Spreadsheet Data
The agent can read data from your spreadsheet and use it to answer questions:Writing to Spreadsheets
The agent can also write data back to your sheets:Using Sheets as a Data Source
Google Sheets is a powerful way to give your agent structured knowledge without building a database:Common Use Cases
| Use Case | Sheet Structure |
|---|---|
| Product catalog | Product Name, SKU, Price, Description, Stock |
| FAQ database | Question, Answer, Category |
| Pricing table | Plan, Monthly Price, Annual Price, Features |
| Employee directory | Name, Department, Email, Phone, Location |
| Lead tracking | Name, Email, Source, Status, Date, Notes |
Setting Up a Data Sheet
- Create a Google Sheet with clear column headers in the first row.
- Fill in your data starting from row 2.
- Connect the sheet to your agent using the steps above.
- In your agent instructions, describe the data:
Example: Lead Tracking Agent
Build an agent that captures and manages leads in a Google Sheet.Sheet Setup
Create a Google Sheet called “Leads” with these columns:| Name | Phone | Source | Interest | Status | Date | Notes |
|---|
Agent Instructions
Sample Conversation
Tips
- Column headers matter — Use clear, descriptive headers. The agent reads them to understand the data structure.
- Keep data clean — Consistent formatting helps the agent parse data accurately.
- Use named ranges — If your sheet is complex, named ranges make it easier for the agent to find the right data.
- Multiple sheets — You can connect multiple sheets to the same agent, each serving a different purpose (e.g., one for products, one for leads).
- Formulas are respected — The agent reads computed values from formulas, not the formula text itself.
Troubleshooting
| Issue | Solution |
|---|---|
| ”Spreadsheet not found” | Verify the spreadsheet URL/ID is correct and the connected Google account has access. |
| Can’t write data | Ensure “Write” is enabled in Allowed Actions and the Google account has edit permission on the sheet. |
| Wrong sheet tab | Specify the exact sheet/tab name in the tool configuration. |
| Stale data | The agent reads live data on each request — if data looks stale, check if someone else modified the sheet. |
Next Steps
- Gmail — Send follow-up emails after capturing leads.
- Google Calendar — Book appointments from sheet data.
- Custom Tools — Push sheet data to your CRM via API.

