Google Sheets
Your assistant looks things up in your spreadsheets or adds new rows, before, during or after a call.
Once Google Sheets is connected, your assistant works with your spreadsheets just like your team does. It checks a price while the caller waits, recognizes regulars from your customer list, or writes every callback request into a new row.
Think of a colleague who always has the right spreadsheet open, and never forgets to add a line to it.
Connect Google Sheets
In your assistant, open Integrations, click Add integration and select Google Sheets. Then click Connect.
Give the connection a name, like "Office account". Then sign in with Google and allow access.

Your assistant may now open the spreadsheets you pick in fonio, read their rows and add new ones. Nothing else in your Google Drive.
You only connect each Google account once. After that, it's ready for every Google Sheets integration. To use a second account, click Connect another.
Choose what your assistant may do
You can change all of this at any time. Add Google Sheets more than once if your assistant should look things up in one spreadsheet and add rows to another.
Name
A short name, which you'll find again in your call history. The default is New Google Sheets integration, so pick something that says what it does, such as "Look up prices".
Mode
What your assistant does in the spreadsheet. Read looks up existing rows and changes nothing. Append adds a new row at the bottom. The default is Read.
Run
When it happens: Before the conversation, During the conversation or After the conversation. The default is Before the conversation. Read can't run after the conversation, as nobody is left to hear the answer.
Right next to it, you choose for which calls: At any time, During opening hours or Outside opening hours. The default is At any time, which fits most businesses.

When should the AI use this?
Only shown with During the conversation, and it needs to be filled in. Describe the moment as a clear if/then rule:
If the caller asks about the price of a product, look it up in the price list.
Spreadsheet and Sheet
Click Open picker and choose the spreadsheet from your Google Drive. Under Sheet, pick the tab inside it. The Preview below shows the first rows, so you can check the column names in row 1.



Filter
Only with Read. It decides which rows your assistant finds. Write the column name and the value it must have. Click Add Variable for details from the call, such as Conversation partner: Phone number. By default, it looks for the caller's number in a column called Caller:
{
"Caller": "{{personNumber}}"
}
Change Caller to the name of your own column. You can also combine several conditions. $ne means "not", $in means "one of" and $regex finds part of a text:
{
"Phone": "{{personNumber}}",
"Status": { "$ne": "Closed" }
}
Every column name must match row 1 exactly, including capital letters. Leave the filter empty to find all rows, up to Max rows.

Row values
Only with Append. Which value goes into which column of the new row. By default, that's your assistant's number and the caller's number:
{
"Agent": "{{agentNumber}}",
"Caller": "{{personNumber}}"
}
Capital letters don't matter here, but the spelling does. A column that isn't in row 1 is skipped. Columns you leave out stay empty.

Custom variables
Your own details, such as {{caller_name}} or {{reason}}. Your assistant fills them in from the conversation. You can use them in the Filter and in Row values during or after the conversation, but not before it.
They appear under Custom variables as soon as you type them. Give each one a type, String, Number or Boolean, and a short description of what your assistant should fill in. Without a description, you can't save.
{
"Name": "{{caller_name}}",
"Phone": "{{personNumber}}",
"Reason": "{{reason}}",
"Call": "{{conversationLink}}"
}

What to say while it runs
Under Advanced, only with During the conversation. A short sentence your assistant says while it's busy, like "One moment, let me check that." It's empty by default, so your assistant stays quiet.

Max rows
Under Advanced, only with Read. How many matching rows your assistant gets at most, from 1 to 1000. The default is 50. If you expect exactly one match, like a single customer, 1 keeps the call quick.

Use first row as headers
Under Advanced, only with Read. It's on by default, and best left that way. When it's off, your assistant gets the first rows as they are, without column names, and the Filter is ignored.
Before the call
With Read, we look the caller up in your spreadsheet as soon as the phone rings, usually by their number. Your assistant knows right away who's calling and what you've noted about them, just like a colleague who recognizes a regular's voice.
With Append, every call gets its own row as soon as the phone rings. That's a simple call log with the caller's number and, if you add Conversation: Start time, the time of the call.
At this point, nothing has been said yet. That's why your own details aren't available before the call.
Stays between you and your assistant
The caller never sees your spreadsheet. Your assistant simply uses what it found, so for the caller it feels like being remembered.
During the call
Your assistant listens for the moment you described.
With Read, it asks for what it needs, like a product name or an order number, looks it up and answers right away, for example with the price or the delivery date. If nothing matches, it tells the caller.
With Append, it gathers the details you asked for, like the caller's name and reason, and adds the row while the caller is still on the line.
Your assistant waits up to 15 seconds for Google Sheets.
After the call
With Append, your assistant goes over the conversation once the caller hangs up. It fills in your own details, like the caller's name or what they wanted, and adds a new row to your spreadsheet. That turns a simple spreadsheet into your call log or a small customer list.
Add Conversation: Link to your row values, and you can jump from the spreadsheet straight back to the call.
In your Call History, you see each run and whether it worked.
Good to know
- One tab per integration. Add Google Sheets again for every other tab, mode or moment. For example, one looks up prices during the call, and another adds the request to your call log afterwards.
- Only what you pick. fonio only sees the spreadsheets you choose with Open picker, never the rest of your Google Drive.
- Row 1 holds the column names. Your assistant reads everything below it and adds new rows at the bottom. In the Filter, names must match exactly, including capital letters. In Row values, capital letters don't matter.
- Your assistant reads cells as text, exactly as the spreadsheet shows them. That's why
$gtcompares text, not amounts, and "9" counts as more than "10". Exact values,$ne,$inand$regexwork reliably. - Phone numbers arrive in international format, like
+4930123456. Store them the same way, or your assistant won't find the caller. Google Sheets likes to turn them into plain numbers and drop the plus, so set the column to Format → Number → Plain text. If a caller withholds their number, it arrives empty. - Keep it small. Your assistant gets at most 96,000 characters per lookup. With many columns, that's reached after just a few rows, so pair a precise Filter with a low Max rows.
- Just want to know callers by name? Contacts does that without a spreadsheet.
- Privacy: your assistant sees every column of the rows it finds, so keep internal notes in a separate tab. Everything in Row values is stored in your Google Drive, under your account.
If something isn't working
| Message | What to check |
|---|---|
| Read mode cannot run after a call. | Under Run, pick Before the conversation or During the conversation. To save something after the call, use Append. |
| Please describe when the AI should use this. | With During the conversation, fill in When should the AI use this? |
| Max rows is required in read mode. | Under Advanced, enter a number from 1 to 1000 in Max rows. |
| Filter must be valid JSON after variables are filled in. | Check quotes, commas and curly braces. Every variable belongs in quotes, like "{{personNumber}}". |
| Filter must be a JSON object, not an array or primitive. | Wrap everything in one pair of curly braces { }. |
| Row values are required in append mode. | Fill in Row values, for example {"Phone": "{{personNumber}}"}. |
| At least one column is required. | Add at least one column to Row values. |
| Row values must be valid JSON after variables are filled in. | Check quotes, commas and curly braces. Every variable belongs in quotes, like "{{reason}}". |
| Row values must be a JSON object, not an array or primitive. | Wrap everything in one pair of curly braces { }. |
| A description is required. | Give every custom variable a short description. |
| No rows matched the filter. | Do the column names in the Filter match row 1 exactly, including capital letters? Are phone numbers stored in international format, like +4930123456? |
| Could not append the row. | Does at least one name in Row values match a column in row 1? Does the tab still exist under the same name? |
| The Google Sheets read failed. | Does the spreadsheet still exist, and is the tab still called the same? |
| … (reconnect required) under Connection | Click Connect another, sign in with Google again and pick the new connection. |
| Your assistant finds the wrong rows | Is the Filter empty or too broad? |
| Silence while your assistant looks something up | Add a sentence under What to say while it runs. |
| It doesn't run on every call | Is Run limited to During opening hours or Outside opening hours? |
Need help?
Just write us at support@fonio.ai, we're happy to help.
