# Google Sheets during a call (/docs/agent/knowledge-and-tools/google-sheets-lookup)

> Let your agent look up rows in a Google Sheet while it talks to a caller, such as an order status or a price.

Your agent can read a Google Sheet in the middle of a call. Think of a
receptionist with the price list open on their desk: a caller asks about
order 1042, and the agent finds that row and reads out the status.

This is a different card from [Google Sheets after the call](/docs/integrations/google-sheets),
which adds one row per finished call. On the Integrations page, this one
has the **During Call** badge.

## Connect the sheet [#connect-the-sheet]

### Open the Google Sheets card [#open-the-google-sheets-card]

Open **Integrations** in the dashboard sidebar. On the **All Integrations**
tab, select the **Google Sheets** card with the **During Call** badge.

### Paste the sheet link [#paste-the-sheet-link]

Paste the sheet's URL into **Sheet link (optional)**. The agent then uses
that sheet on every call. If you leave it empty, the agent has to search for
the sheet by name, and it may not find it, so paste the link.

### Sign in to Google [#sign-in-to-google]

Connect with Google and allow access to your sheets in the Google window.
If Google asks which data to share, tick the Sheets box.

### Attach it to an agent [#attach-it-to-an-agent]

Open the agent and go to its **Integrations** tab. Attach the Google Sheets
connection there.

## What the agent can do with the sheet [#what-the-agent-can-do-with-the-sheet]

| The agent can | Example |
| --- | --- |
| List the sheet's tabs and read the column headers | Learns that the **Orders** tab has an **Order ID** column |
| Find rows where a column contains a value | **Order ID** contains `1042` |
| Leave out rows that contain a value | Skip rows where **Status** contains `Cancelled` |
| Sort the rows and read a few at a time | The 10 newest orders, then the next 10 |
| Count matching rows | How many orders are still open |

The agent only reads. It doesn't add or change rows during a call. To write
each call into a sheet, use [Google Sheets after the call](/docs/integrations/google-sheets).

## Tell the agent when to look [#tell-the-agent-when-to-look]

Add a line to the agent's prompt that names the tab, the column, and when
to look. For example: "When the caller gives an order number, look it up in
the Orders tab by Order ID and read out the Status."

A lookup ignores case and finds the value anywhere in the cell, so `1042`
also matches `#1042` and `10420`. Look up by a value that only one row has,
such as a full order ID.

## Next steps [#next-steps]

- Book meetings during a call with [Google Calendar](/docs/agent/knowledge-and-tools/google-calendar).
- Call any other API during a call with [Custom API](/docs/agent/knowledge-and-tools/custom-api).