Researched: Sourced and summarized, not yet run end-to-end by us Lead generation

Voice agent that qualifies leads and books calls (n8n, Retell AI, Twilio)

Last checked: · Sourced and summarized; not yet run end-to-end by us. What this means

At a glance

Setup estimate
2–4 h (ESTIMATE)
Tools
Industries
E-commerce, Local retail & hospitality, General (any small business)
View source template on n8n.io (opens in new tab)

Problem

Outbound and inbound lead calls eat staff time, and call notes go undocumented

Who it's for

Local service businesses and small sales teams (the template's example is a roofing company) that collect leads into a Google Sheet and want an AI voice agent to phone each new lead, plus answer inbound calls from known leads. The trigger: leads go cold because nobody calls them quickly, and call outcomes never get written down.

Skip it if you can't get clear consent to call leads with an AI voice, or if you need the call to book a slot in a calendar: inbound callers' availability is emailed to you, not booked.

Tools and what each does

Google Sheets (trigger, lookup, update)
The trigger watches for new lead rows (polling every hour). A lookup matches inbound callers by Phone Number; an update writes the Qualification result back by UUID.
Twilio node
Contacts the lead with the template's roofing message before the AI call. Note that it's configured as a Call (text-to-speech phone call), not an SMS.
Wait node
Pauses before the AI call. It's named '5 minutes' but set to 1 minute.
RetellAI (HTTP Request + two webhooks)
POST /v2/create-phone-call starts the outbound AI call with a uuid variable. One webhook answers Retell's inbound-call request with the caller's name; another receives post-call events.
OpenAI (gpt-4.1 in the template)
For inbound calls, analyzes the transcript to judge how the call went and suggest improvements to the voice prompt.
Gmail (two nodes)
Email a call summary (outbound) or a 'New roofing appointment' note with the caller's availabilities (inbound) to an internal address.

Browse by tool: n8n, RetellAI, OpenAI, Google Sheets, Twilio, Gmail

Steps

  1. A new lead row appears in the sheet; the hourly poll picks it up.
  2. Twilio places a short text-to-speech call to the lead's number, then the flow waits.
  3. n8n asks Retell to call the lead from your Retell number, passing the row's UUID.
  4. For inbound calls, Retell calls your webhook first; n8n looks the number up in the sheet and returns the caller's name for the agent's greeting.
  5. After any call, Retell posts events to the post-call webhook; only 'call_analyzed' events continue.
  6. Outbound: the Qualification value from Retell's analysis is written to the lead's row, and a summary (name, number, qualification, call summary) is emailed to you.
  7. Inbound: OpenAI reviews the transcript, and an email with name, number, availabilities and the review goes to you.

Known problems in the source template

Found by reading the template's JSON, not by running it. Likely fails as shipped.

  • Problem: The 'reminder' goes to the lead, not your rep, as a voice call with hard-coded roofing text from a placeholder number (+1234567890). Retell's from_number is a French placeholder. The Gmail nodes send to [email protected]. Replace all of them.

    Fix: Send the reminder to your rep (or remove it), use your own Twilio and Retell numbers, and set real Gmail recipients.

Before you start

  • A RetellAI account with an agent, an API key, and the two n8n webhook URLs set on the agent.
  • A phone number in Retell. Retell's API docs say from_number must be bought from or imported to Retell, in E.164 format; the template author links a Twilio number.
  • Post-call analysis fields defined on the Retell agent: qualification, first_name, phone_number, call_summary, availabilities. The emails read these.
  • A Twilio account and number for the pre-call message, a Google Sheet with Name, Phone Number (E.164) and UUID columns, a Gmail account and an OpenAI key.
  • Setup estimate: 2–4 h (ESTIMATE). Paid Retell and Twilio usage; costs UNKNOWN.

What can go wrong

Needs paid RetellAI and Twilio accounts (costs UNKNOWN) plus an OpenAI API key. Consent and call-recording laws for AI voice calls vary by state and country; get legal advice before calling leads.

  • LegalAI voice calls and recordings fall under consent and call-recording laws that vary by state and country. Get legal advice before calling leads.
  • Silent failureIf the Retell agent doesn't define the analysis fields the emails read, the emails and sheet update come through blank without any error.
  • ReliabilityHourly polling means a lead can wait up to an hour before anything happens, which undercuts speed-to-lead. Use a webhook from your form instead.
  • Data privacyRetell's API docs say agents store everything (transcripts, recordings, logs) by default and keep it with no automatic deletion unless you set a retention period. Transcripts also go to OpenAI. Set data_storage_setting and data_storage_retention_days on the agent.
  • LegalRetell has do-not-call options (honor_internal_dnc on calls, enable_dnc_detection on agents) that are off by default. Turn them on.
  • Modelgpt-4.1 (gpt-4.1-2025-04-14) is due for removal from OpenAI's API on Jan 14, 2027; OpenAI recommends gpt-6-luna.

How to adapt it

  • Point the Twilio node at your rep (SMS resource) if you want the reminder the description promises, or delete it.
  • Trigger from your form's webhook instead of the hourly sheet poll.
  • Add a Google Calendar step after inbound calls to create the appointment from 'availabilities', with a confirmation to the caller.
  • Swap the OpenAI step to summarize the lead for your team instead of critiquing the voice prompt, or rely on Retell's own call_summary.
  • Change the qualification questions in your Retell agent and add matching analysis fields and sheet columns.

Sources we checked

Status
Researched: Sourced and summarized, not yet run end-to-end by us
Last checked
Details checked

Setup estimates are rough guesses for someone comfortable with the tools who already has the accounts and API keys. Real time is unknown until tested.

Practical AI workflows for small businesses, every Tuesday

A few workflows each issue for lead follow-up, CRM, proposals, onboarding and support, each labeled Researched or Tested.

We'll email you a link to confirm. Unsubscribe in one click. Privacy policy.

Why trust it: every entry links its source and caveats, and nothing is called Tested until we publish the logs. Our method.

More lead generation workflows