# Look up and update a Google Sheet from the chat

Connect a Google Sheet so your team and your AI agent can find, add and update rows right from a conversation.

Source: https://support.rework.com/article/prospect-google-sheets

Connect a Google Sheet, such as your orders, product list or stock, and your team can look rows up, add rows and update them from the side of any conversation. Your AI agent can use the same sheet to answer customers. The data stays in your spreadsheet.

## Before you start

- Only admins can connect a sheet.
  
- Sign in with a Google account that can open the sheet. Prospect can only open the files you pick; nothing else in your Drive is read.
  
- Prepare the sheet: one row of column names at the top (in any of the first 5 rows), then one record per row, with no merged cells and no total or blank rows between records. Keep codes and phone numbers as text so a leading 0 stays.
  

## Connect a sheet

1. Go to **AI Agents** › **Connectors** and click **Add connector**.
   
2. Open the **Connectors** tab **(1)** and click **Connect** on **Google Sheets** **(2)**.
   

![Connect page with the Connectors tab (1) and the Connect button on the Google Sheets card (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/wOXQiioW99ESaiJi7W5aJw2Hs8nyTI8zcg2J3BfbmwZm62p43Htg0RmLZz7JI02O/img.V4RgCDw2qOJHKfsy7p45w7lVQX2mmxKnv8GZubAKQaudLbYNqufFsedvTJY0fFNg.png)

1. The **Add Google Sheets** dialog shows the four steps **(1)**, and **Prepare your sheet** **(3)** sums up how the sheet should look.
   
2. Click **Sign in with Google** **(2)** and sign in in the window that opens. If nothing opens, allow pop-ups for the site and try again.
   
3. Click **Choose the file** and pick the spreadsheet in Google's file picker.
   

![Add Google Sheets dialog with the four steps (1), the Sign in with Google button (2) and the Prepare your sheet panel (3) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/aynRVmqmID0w5fdTgxidcBzl8iTtA36fIJgOApovDd02ifuFFh7TTewH1FI0ZhVL/img.gB6wWoI4QploLxKwacILJw3vDeNKaj56yb9Bc9apcEExXal325wO4dQBtKePdcdR.png)

## Set up the tabs

Each tab you add becomes a table staff can use in a conversation.

1. On the **Tabs** step **(1)**, the tabs you've added appear as chips **(2)**. Click **\+ Add tab** to add another.
   
2. For each tab, choose the **Tab in the sheet**, the **Header row** and a **Name** **(3)**.
   
3. Check the **Preview** **(4)**. If the header row was guessed wrong, click the right row to make it the header.
   
4. In **When to use it** **(5)**, describe the tab, for example _Opening hours and address of each branch_. Staff see it next to the tab, and AI agents read it to know when to use the tab.
   

![Tabs step of the Google Sheets setup with the Tabs step (1), the tab chips and Add tab (2), Tab in the sheet, Header row and Name (3), the Preview (4) and When to use it (5) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/gaBdjV2MkUENWbq75h8vBnfDr070dhV0FGUfb3DsSym5adzByvRZF5jwYkXE2YBT/img.c0YywJC9MrfBvkF9C3BXte9EaW86VCqDesxQvIkurJFRttssoxOJFoc6ydMtXKvL.png)

1. Further down, each column of the tab is a field. Give it a **Field name** **(1)** and choose what happens **When writing** **(2)**: **Staff types it**, **Filled in** automatically on save, **Formula**, or **Don't write**.
   
2. Turn on **Search** **(3)** for the fields the search box should look in, such as an order code or a phone number.
   
3. Turn on **Customer sees** **(4)** for the fields AI agents may tell customers. Staff always see every field.
   

![Field list of a tab with the Field name (1), When writing (2), Search (3) and Customer sees (4) columns highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/4XUlF5j3urei3SYfrEn4N6BRsX0Tde1w40EmYzFhyK6CYXGU1QHlgwLUjN9f8vqn/img.fR9nCTAOgZ4ed1srHiuE8i6BSiERITHu2qLSXbIcdxhzbnSVBNCJqEk0AK7ycNFV.png)

## Choose who can use it

1. On the **Who can use it** step **(1)**, pick the inboxes under **Which inboxes can use it?** **(2)**. Leave it empty and every inbox can, new ones too.
   
2. Under **Staff can** **(3)**, tick **Look up**, **Add a row** and **Update a row** for each tab. An inbox with nothing ticked on a tab doesn't see that tab.
   
3. Fill in **What should staff see it called?** **(4)** and click **Save**.
   

![Who can use it step with the step tab (1), Which inboxes can use it? (2), the Staff can grid of Look up, Add a row and Update a row per tab (3) and What should staff see it called? (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/oFuBJxKnq6fptbqVQCSZTTHaAYCnRi9M3tS7cseA3whTtXM1umJ3yxMB5G7jw5yn/img.yDzT16mhLLIl8UoeuGhS2Ix1yJRyj2uIaV3VgdoF260tib3DApkEbxHmWK880o88.png)

To update a row, staff first find it and press Edit on it, so ticking **Update a row** also turns on look-up.

## Look up and update rows in a conversation

1. Open the conversation and click the Connectors icon **(1)** in the right-hand rail.
   
2. Pick the sheet **(2)** and the tab **(3)**.
   
3. Type at least 2 characters in the search box **(4)**. Typing a whole code or phone number finds its row first.
   
4. The matching rows appear below **(6)**. To add a new one, click **Add a row** **(5)**.
   

![Connectors panel of a conversation with the sheet icon in the rail (1), the sheet picker (2), the tabs (3), the search box (4), Add a row (5) and the matching rows (6) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/xRNn5re06kJkzuKmwmkgys603Ptd4MYiU13SqCk6o2lIU4UmNvO6K9wO63LOJ4OF/img.0NCLwWlpvUMdBLQCnkhLrROFAMCVYlB667ZDKRjDl4erNM9qtkXPzhmMCKyPgcQQ.png)

1. Click a row **(1)** to see all its fields.
   
2. Click **Edit this row** **(2)**, change the fields you're allowed to, and click **Save changes**. The row is updated in the spreadsheet straight away.
   

![A row opened in the sheet panel (1) with the Edit this row button (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/ngQra3sBIh8gGcbmX4Jj7ud0AJSkH4cDreYzFmEUDzmxBQAPuTXwTjfTkVxbWUot/img.no0o50QaiCA42rpMnHVWp77r7FztoslQ2BKfKK3eyTkg7MJTF21RDcfMirX581hl.png)

## Let your AI agent use the sheet

1. Go to **AI Agents**, open the agent and click **Tools** **(1)**.
   
2. Under **Connectors**, click **+** on **Google Sheets** **(2)**.
   
3. Pick the **Spreadsheet** and **Tab**, up to 3 **Key columns** the AI finds rows by, and the **Action**: **Find a row**, **Add a row**, **Update a row**, or **Update a row, or add it when there is none**.
   
4. Say **When should the AI use this tab?**, for example _The price list_. Add up to 3 tabs, then click **Save**.
   

![Tools section of an AI agent with the Tools menu item (1) and the Google Sheets connector tool (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/D8oDDegyMBmnnu5zKuPDdh2nYMlXKeDoD4HctAaLywmofctWfEk7WaLUodVvAXYy/img.ihgL1t9szGiw9AN9uBE8AYZcQ2Eiy9jb6bPB0aF28jA2VXvs8oBbnYuqR4MDIex0.png)

The AI only uses the tabs you pick, only the way you allow, and only tells customers fields marked **Customer sees**. It never mentions to the customer that it used a sheet.

## Good to know

- A connector can have up to 10 tabs, and a tab up to 30 fields.
  
- Search covers up to 10,000 rows per tab, fewer when cells hold long text. Split a bigger sheet into tabs.
  
- Rows are refreshed from Google every 10 minutes, so a change made directly in the sheet can take a few minutes to appear.
  
- If the Google sign-in ends, the connector shows **Reconnect**: sign in again and nothing else changes.
