> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autocalls.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Sheets Live Sync

> Learn how to sync leads from a live Google Sheet and trigger AI calls automatically

This tutorial shows how to set up an automation that monitors a Google Sheet for new leads and automatically triggers AI calls when new rows are added.

<iframe width="100%" height="400" src="https://www.youtube.com/embed/FoqCXx6ehII?si=9Ic3VHwV-QeL5YER" title="Tutorial: How to sync leads from a live Google Sheet" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

## What You'll Learn

* Creating an AI assistant optimized for Google Sheets integration
* Setting up Google Sheets trigger for new row additions
* Configuring proper data mapping from spreadsheet to assistant
* Testing and deploying your live sync automation
* Best practices for spreadsheet formatting

## Prerequisites

* Google account with Google Sheets access
* Phone number configured for outbound calls
* Basic understanding of spreadsheet structure

## Step 1: Create Your AI Assistant

We'll start by creating an AI assistant specifically configured for Google Sheets lead processing.

<Frame>
  <img src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/01-create-assistant.png?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=9fa05dede6a2b6fd81360f915d478e32" alt="Creating new AI assistant for Google Sheets" width="1764" height="333" data-path="resources/tutorials/google-sheets-sync/01-create-assistant.png" />
</Frame>

1. **Navigate to Assistants page** and click "Assistants" in the sidebar
2. **Click "New Assistant"** button
3. **Name your assistant** - we'll use "Test GoogleSheets"

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/02-assistant-configuration.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=f895fef6321fa0d76c5172e6cb26574a" data-path="resources/tutorials/google-sheets-sync/02-assistant-configuration.mp4" />

4. **Complete the basic settings:**
   * Select a phone number for outbound calls
   * Choose an appropriate voice
   * Set your timezone

## Step 2: Configure Call Variables for Spreadsheet Data

Call variables will map directly to columns in your Google Sheet, so plan your spreadsheet structure accordingly.

<Frame>
  <img src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/03-prompts-and-tools-tab.png?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=eac5c7551fd315ff659710919778c674" alt="Navigating to Prompts and Tools tab" width="816" height="753" data-path="resources/tutorials/google-sheets-sync/03-prompts-and-tools-tab.png" />
</Frame>

1. **Go to the "Prompts and Tools" tab** (second tab)
2. **Locate the "Call Variables" section**

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/04-add-email-variable.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=eb13e272c83f247909ba0624ad969b38" data-path="resources/tutorials/google-sheets-sync/04-add-email-variable.mp4" />

3. **Configure your call variables:**
   * You'll see `customer_name` with default value "John"
   * **Add `email` variable** with your email as default value for testing
   * Add any additional variables that match your spreadsheet columns

4. **Variables can be used in multiple ways:**
   * **In the system prompt**: "Hi `{customer_name}`"
   * **For mid-call tools**: Personalized API calls
   * **For file imports**: Bulk lead processing
   * **For automation platform**: Dynamic data mapping

## Step 3: Create Campaign for Sheet Leads

<Frame>
  <img src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/06-create-campaign.png?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=19fc23626cb2482d7c726ddc3cb29873" alt="Creating campaign for Google Sheets leads" width="1655" height="470" data-path="resources/tutorials/google-sheets-sync/06-create-campaign.png" />
</Frame>

1. **Navigate to Campaigns** page in the sidebar
2. **Click "New Campaign"** button

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/07-campaign-settings.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=63ca2774fb5b445434747ff01665a4b1" data-path="resources/tutorials/google-sheets-sync/07-campaign-settings.mp4" />

3. **Configure your campaign:**
   * **Give it a descriptive name**
   * **Select the assistant** you just created
   * **Keep default retry settings** (can be adjusted later)

4. **Click "Create"** to save the campaign

## Step 4: Set Up Google Sheets Automation

Now we'll create the automation that monitors your Google Sheet for new leads.

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/08-automation-platform.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=957c39f660c83685a77c41043b9652f2" data-path="resources/tutorials/google-sheets-sync/08-automation-platform.mp4" />

1. **Click "Automation Platform"** in the sidebar
2. **Create a new flow** from scratch

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/09-search-google-sheets.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=f84b06d582188c5d2e26e12be691df6e" data-path="resources/tutorials/google-sheets-sync/09-search-google-sheets.mp4" />

3. **Search for "Google Sheets"** in the trigger search
4. **Select "New Row Added"** trigger

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/10-create-connection.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=0322dd9bea96b822a67ff35059388163" data-path="resources/tutorials/google-sheets-sync/10-create-connection.mp4" />

5. **Create a new connection:**
   * Click "New Connection"
   * Authorize with your Google account
   * Click "Save" once connected

## Step 5: Create and Configure Your Test Spreadsheet and add sample data

For this tutorial, we'll create a properly formatted test spreadsheet.

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/11-create-new-sheet.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=1dc6b3333c6ea8d0b696b91d6ecfa93c" data-path="resources/tutorials/google-sheets-sync/11-create-new-sheet.mp4" />

1. **Go to Google Sheets** and create a new spreadsheet
2. **Name it "testnewleads"** (or any descriptive name)
3. **Add a test lead in the first row:**
   * **Phone number**: Use international format (+1234567890)
   * **Customer name**: Your name for testing
   * **Email**: Your email address

<Warning>
  **Phone Number Format**: Always use international format with + sign and no spaces or parentheses. Example: +1234567890, not (123) 456-7890
</Warning>

2. **Save the spreadsheet** - this data will be used for testing

## Step 7: Configure the Automation Trigger

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/14-select-spreadsheet.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=546dad209d4b7f0b9a367deeac4f4362" data-path="resources/tutorials/google-sheets-sync/14-select-spreadsheet.mp4" />

1. **Return to the automation platform**
2. **Select your spreadsheet** ("testnewleads")
3. **Select the specific sheet** (usually "Sheet1")

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/15-load-data.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=59552eb142ddc8c6daedd23fbeaf1466" data-path="resources/tutorials/google-sheets-sync/15-load-data.mp4" />

4. **Click "Load Data"** to fetch the sample lead
5. **Verify** that you can see the lead data you just created

## Step 8: Configure the Campaign Action

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/16-add-action.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=9eb65637f274fc5f0942df66d2dddda0" data-path="resources/tutorials/google-sheets-sync/16-add-action.mp4" />

1. **Click the "+" sign** to add an action
2. **Search for your calling platform**
3. **Select "Add Lead to Campaign"**

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/17-select-campaign.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=cfa6592ec8eb0af7d890fef018a98962" data-path="resources/tutorials/google-sheets-sync/17-select-campaign.mp4" />

4. **Select the campaign** you created for this automation

## Step 9: Map Spreadsheet Data to Assistant Variables

This step connects your spreadsheet columns to your assistant's call variables.

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/18-map-phone-number.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=815b1a0a790551c69c8c404e73c31dc5" data-path="resources/tutorials/google-sheets-sync/18-map-phone-number.mp4" />

1. **Click on the "Phone Number" input field**
2. **A sidebar will open** showing available data from the trigger
3. **Search for and select the phone number** from your spreadsheet
4. **Click "Insert"** to map the field

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/19-map-variables.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=bcf2b1f88c9e097c8926129ee92e507b" data-path="resources/tutorials/google-sheets-sync/19-map-variables.mp4" />

5. **Map your call variables:**
   * **customer\_name**: Select from spreadsheet data
   * **email**: Select from spreadsheet data
   * Map any additional variables you defined

<Tip>
  The variable names in your assistant must match the data you're mapping. If you have more columns in your spreadsheet, make sure to define corresponding variables in your assistant first. Learn more about [configuring call variables](/ai-assistants/settings/prompt-and-tools#call-variables).
</Tip>

## Step 10: Test the Integration

<video autoPlay muted loop playsinline src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/20-test-step.mp4?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=a5780571203f680d821bc2cd56b3a9e3" data-path="resources/tutorials/google-sheets-sync/20-test-step.mp4" />

1. **Click "Test Step"** to verify the lead creation
2. **Check for success confirmation**
3. **Navigate to your Leads page** to confirm:
   * The lead appears in your platform
   * All variables are correctly populated
   * Data matches your spreadsheet entry

## Step 11: Publish and Monitor

<Frame>
  <img src="https://mintcdn.com/autocalls/ehX36KEpVzCQtCBE/resources/tutorials/google-sheets-sync/22-publish-automation.png?fit=max&auto=format&n=ehX36KEpVzCQtCBE&q=85&s=08075f856f600fe830ade9008d99db6e" alt="Publishing the automation" width="1061" height="547" data-path="resources/tutorials/google-sheets-sync/22-publish-automation.png" />
</Frame>

1. **Click "Publish"** to activate your automation
2. **Your spreadsheet is now being monitored** for new rows
3. **Test the live sync:**
   * Add new leads to your spreadsheet
   * Check that they automatically appear in your platform
   * Monitor the automation runs for any issues
4. **Monitor automation performance:**
   * Click "Runs" button in your automation
   * Review each execution for success/failure
   * Check timing and data accuracy

## Best Practices

### Spreadsheet Management

* **Maintain consistent data format** across all entries
* **Keep phone numbers in international format** consistently
* **Avoid empty rows** between data entries

## Advanced Features

### Multiple Variable Support

If your business needs more lead data:

1. **Add columns** to your spreadsheet (company\_name, address, etc.)
2. **Define corresponding variables** in your assistant
3. **Map the new fields** in your automation
4. **Test with sample data** before adding real leads

## Troubleshooting

### Common Issues

**Leads not syncing:**

* Check Google Sheets connection authorization
* Verify spreadsheet permissions and sharing settings
* Ensure new rows contain data in all mapped columns

**Phone number format errors:**

* Use international format: +1234567890
* Remove spaces, parentheses, and dashes
* Verify country code is included

**Variable mapping issues:**

* Confirm variable names match between assistant and spreadsheet
* Check that columns contain data
* Verify mapping configuration in automation

**Automation not triggering:**

* Ensure automation is published and active
* Check that new rows are actually being added
* Verify Google Sheets trigger is properly configured

## Next Steps

Once your Google Sheets integration is working:

* **Scale up** with larger lead lists
* **Add more variables** for better personalization
* **Integrate with other tools** like CRM systems
* **Set up follow-up automations** for call results
* **Monitor and optimize** your conversion rates

Your Google Sheet is now a powerful lead management tool that automatically triggers AI calls for every new lead you add!
