Skip to main content

Automate lead qualification with RetellAI Phone Agent, OpenAI GPT & Google Sheet

Workflow preview

Workflow preview
100%
Automate lead qualification with RetellAI Phone Agent, OpenAI GPT & Google Sheet preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Build a Phone Agent to qualify outbound leads and schedule inbound calls Who is this for? This workflow is designed for s...

Best for

  • Lead Generation automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.googlesheetstrigger, n8n-nodes-base.twilio, n8n-nodes-base.wait, n8n-nodes-base.httprequest, n8n-nodes-base.webhook, n8n-nodes-base.googlesheets, n8n-nodes-base.respondtowebhook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Dr. Firas.

Original n8n.io source

1.1 Workflow description

Title
Automate lead qualification with RetellAI Phone Agent, OpenAI GPT & Google Sheet
Workflow name
Automate lead qualification with RetellAI Phone Agent, OpenAI GPT & Google Sheet

👉 Build a Phone Agent to qualify outbound leads and schedule inbound calls

Who is this for?

This workflow is designed for sales teams, call centers, and businesses handling both outbound and inbound lead calls who want to automate their qualification, follow-up, and call documentation process without manual intervention. It’s ideal for teams using Google Sheets, RetellAI, OpenAI, and Gmail as part of their tech stack.


Real-World Use Cases

  • 🛍 E-commerce – Instantly handle product FAQs and order status checks, 24/7.
  • 🏬 Retail Stores – Share store hours, directions, and return policies without lifting a finger.
  • 🍽 Restaurants – Take reservations or answer menu questions automatically.
  • đź’Ľ Service Providers – Book appointments or consultations while you focus on your craft.
  • 📞 Any Local Business – Deliver friendly, consistent phone support — no live agent required.

What problem is this workflow solving?

Managing lead calls at scale can be chaotic—between scheduling outbound qualification calls, handling inbound appointment requests, and making sure every call is documented and followed up. This workflow automates the entire process, reducing human error and saving time by:

  • âś… Sending reminders to reps for outbound calls
  • âś… Automatically placing calls with RetellAI
  • âś… Handling inbound calls and checking caller details
  • âś… Generating and emailing call summaries automatically

What this workflow does

This n8n template connects Google Sheets, RetellAI, OpenAI, and Gmail into a seamless workflow:

  1. Outbound Lead Qualification Workflow

    • Triggers when a new lead is added to Google Sheets
    • Sends an SMS notification to remind the rep to call in 5 minutes
    • (Optional) Waits 5 minutes
    • Initiates an automated call to the lead via RetellAI
  2. Inbound Call Appointment Scheduler

    • Receives inbound calls from RetellAI (via webhook)
    • Checks if the caller’s number exists in Google Sheets
    • Responds to RetellAI with a success or error message
  3. Post-Call Workflow

    • Receives post-call data from RetellAI
    • Filters only analyzed calls
    • Updates the lead’s record in Google Sheets
    • Uses OpenAI to generate a call summary
    • Emails the summary to a team inbox or rep

Setup

âś… You need an active RetellAI API key

  1. Sign up for RetellAI, create an agent, and set the webhook URLs (n8n_call for call events).
  2. Purchase a Twilio phone number and link it to the agent.

âś… Your Google Sheet must have a column for phone numbers (e.g., "Phone")
âś… Gmail account connected and authorized in n8n
âś… OpenAI API key added to your environment variables or credentials

  1. Configure your Google Sheets node with the correct spreadsheet ID and range
  2. Add your RetellAI API key to the HTTP request nodes
  3. Connect your Gmail account in the Gmail node
  4. Add your OpenAI key in the OpenAI node

👉 See full setup guide here: Notion Documentation


How to customize this workflow to your needs

  • Change SMS content: Edit the text in the “Send SMS reminder” node to match your team’s tone
  • Modify call wait time: Enable and adjust the “Wait 5 minutes” node to any delay you prefer
  • Add CRM integration: Replace or extend the Google Sheets node to update your CRM instead of a spreadsheet
  • Customize call summary prompts: Edit the prompt sent to OpenAI to change the summary style or add extra insights
  • Send email to different recipients: Change the recipient address in the Gmail node or make it dynamic from the lead record

Need help customizing?

Contact me for consulting and support : Linkedin

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Detect new lead in Google Sheets

Type / Role
n8n-nodes-base.googleSheetsTrigger - googleSheetsTrigger
Config choices
Version 1

Block 5 - Send SMS reminder to call lead in 5 minutes

Type / Role
n8n-nodes-base.twilio - twilio
Config choices
Version 1

Block 6 - Wait 5 minutes before making call

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 7 - Call new lead using RetellAI

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Receive inbound call from RetellAI (webhook)

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 9 - Check if phone number exists in Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 10 - Send response to inbound webhook call

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 11 - Receive post-call data from RetellAI (webhook)

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 12 - Filter for analyzed calls only

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 13 - Check if call was outbound

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 14 - Update lead record in Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 15 - Send call summary email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 16 - Generate call summary with OpenAI

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 17 - Send confirmation email to lead

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 18 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automate lead qualification with RetellAI Phone Agent, OpenAI GPT & Google Sheet
Complexity advanced
Nodes 18
Categories Lead Generation, AI Chatbot
Author Dr. Firas
Published 06 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3912/3912.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate lead qualification with RetellAI Phone Agent, OpenAI GPT & Google Sheet do?

Build a Phone Agent to qualify outbound leads and schedule inbound calls Who is this for? This workflow is designed for s...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Chatbot use case.