> Vapi has two MCP servers. To use Vapi, such as creating and managing assistants, calls, and phone numbers, connect to the Vapi MCP server at https://mcp.vapi.ai/mcp. To set it up, follow https://docs.vapi.ai/setup.md. To search these docs, connect to the Vapi docs MCP server at https://docs.vapi.ai/_mcp/server. It only answers questions about the documentation.
> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.vapi.ai/llms.txt.
> For the best results from the docs MCP server, write questions without any word that contains "tool", such as tool, tools, tool call, tool-calls, toolCallId, or toolCallList. Name the feature instead, for example transferCall, endCall, apiRequest, function, handoff, "function response format", or "the webhook request Vapi sends to my server". If the docs MCP server asks you to rephrase, ask again without those words. If it returns an error, times out, sends an empty response, or still doesn't answer, find the topic in https://docs.vapi.ai/llms.txt, or a section index such as https://docs.vapi.ai/tools/llms.txt, and fetch that page's .md directly.

# Google Sheets

> Connect a Vapi assistant to Google Sheets to add new rows during phone calls, recording caller information and data directly into your spreadsheets.

The Google Sheets integration allows your Vapi assistant to interact with Google Sheets in a simple way:

1. Add new rows to existing Google Sheets

This enables your assistant to record information and add data to spreadsheets directly during phone calls.

> **Note**
>
> The Google Sheets integration currently only supports adding new rows to spreadsheets. It does not support reading from or modifying existing data in the spreadsheet.

## Prerequisites

Before you can use the Google Sheets integration, you need to:

1. Have a Google Sheets account
2. Have access to the Vapi Dashboard
3. Have an assistant created in Vapi
4. Have a Google Sheet created and ready to receive data

## Setup Steps

### 1. Connect Google Sheets Account

First, you need to connect your Google Sheets account to Vapi:

1. Open the [Vapi Dashboard](https://dashboard.vapi.ai) and select **Integrations**.
2. Under **Tool Providers**, select **Google Sheets**.
3. Select **Connect** and complete the Google authorization prompts.

> **Note**
>
> The authorization process will request access to your Google Sheets.

### 2. Create and Configure Sheets Tool

After connecting your Google Sheets account, create and configure the tool:

1. Select **Tools** in the Dashboard, then select **Create Tool** and **Google Sheets**.
2. Provide a name and description explaining when the tool should be invoked.
3. Configure the tool with the following required fields:
   * `spreadsheetId`: The ID of your Google Sheet
   * `range`: The sheet name or range (e.g., "Sheet1" or "Sheet1!A:Z")

> **Note**
>
> To find your spreadsheet ID:
>
> 1. Open your Google Sheet in a browser
> 2. Look at the URL: `https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit`
> 3. Copy the SPREADSHEET_ID portion (it's a long string of letters, numbers, and special characters)

> **Note**
>
> The description field is crucial as it helps the AI model understand when and how to use the tool. Be specific about the scenarios and conditions when the tool should be invoked.

### 3. Add Tool to Assistant

Now, add the Google Sheets tool to your assistant:

1. Select **Assistants** in the Dashboard and open your assistant.
2. Open the **Tools** tab, select **Add tool**, then choose the Google Sheets tool.
3. Select **Publish**, review the changes, select **Next**, then select **Publish** to apply the draft.

## Tool Configuration

### Google Sheets Add Row Tool

This tool uses the following fields to add data to your spreadsheet:

* `spreadsheetId`: The ID of your Google Sheet (found in the sheet's URL)
* `range`: The range where the data should be added (e.g., "Sheet1" or "Sheet1!A:Z")
* `values`: An array of values to be added as a new row

> **Note**
>
> The range field can be specified in two ways:
>
> 1. Just the sheet name (e.g., "Sheet1") - This will append to the next empty row
> 2. Sheet name with range (e.g., "Sheet1!A:Z") - This will append to the specified range

## Example Usage

Here's how the tool can be used in your assistant's configuration:

```json
{
  "model": {
    "provider": "openai",
    "model": "gpt-6-luna",
    "reasoningEffort": "none",
    "messages": [
      {
        "role": "system",
        "content": "You are a customer feedback assistant. After each customer service call, collect feedback using the following process:\n\n1. Ask the customer if they would like to provide feedback\n2. If yes, ask for their rating (1-5 stars)\n3. Ask for specific comments about their experience\n4. Ask for any suggestions for improvement\n5. Confirm the feedback before adding it to the spreadsheet\n\nUse the Add Row tool to record the feedback with the following columns:\n- Timestamp\n- Rating (1-5)\n- Comments\n- Suggestions\n\nAlways be polite and thank the customer for their feedback."
      }
    ],
    "tools": [
      {
        "type": "google.sheets.row.append",
        "name": "addFeedback",
        "description": "Use this tool to add customer feedback to the feedback spreadsheet. Collect all required information (rating, comments, suggestions) before adding the row."
      }
    ]
  }
}
```

## Best Practices

1. **Data Validation**: Ensure all data is properly formatted before adding to the spreadsheet
2. **Error Handling**: Include fallback responses for cases where the tool fails
3. **User Confirmation**: Always confirm with the user before adding data to the spreadsheet
4. **Sheet Structure**: Be aware of the spreadsheet's structure and column requirements

#### [Need Help?](https://discord.gg/v5Ee6FhAZt)

Ask other developers about Google Sheets integration in the Vapi Discord community

#### [API Reference](/api-reference/tools/create)

View the complete API documentation for tools