# Route missed roofing calls to a Retell AI agent with Twilio: n8n workflow

> Started by another system calling it, and works across Google Calendar, Google Sheets and Twilio.

Source: https://millionrounds.com/workflow/route-missed-roofing-calls-to-a-retell-ai-agent-with-twilio (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Scheduling](https://millionrounds.com/workflows?category=Scheduling#library)

# Route missed roofing calls to a Retell AI agent with Twilio

Started by another system calling it, and works across Google Calendar, Google Sheets and Twilio. 31 steps, 4 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Froute-missed-roofing-calls-to-a-retell-ai-agent-with-twilio)

**31 steps** Large: read it before trusting it with anything live

**4** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 11 Logic 9 Service 11

The steps in the order they run, from what starts it.

- 1 **Webhook - Retell Tools** Webhook *Starts it*
- 2 **Webhook - Retell Call Ended** Webhook *Starts it*
- 3 **Webhook - Twilio Fallback** Webhook *Starts it*
- 4 **Switch - Route Tool Name** Switch *Logic*
- 5 **Google Sheets - Update Lead Row By CallId** Google Sheets *Service*
- 6 **Format Call Log Entry** Code *Logic*
- 7 **Google Sheets - Lookup Service Area** Google Sheets *Service*
- 8 **Google Calendar - Get Busy Events** Google Calendar *Service*
- 9 **Code - Parse Booking Args** Code *Logic*
- 10 **Google Sheets - Append Urgent Lead** Google Sheets *Service*
- 11 **If - Booking Completed** If *Logic*
- 12 **Google Sheets - Append Call Log** Google Sheets *Service*
- 13 **If - Call Was Answered** If *Logic*
- 14 **Code - Build Service Area Response** Code *Logic*
- 15 **Code - Compute Open Slots** Code *Logic*
- 16 **Google Sheets - Search Recent Duplicate** Google Sheets *Service*
- 17 **Twilio - SMS On-Call Estimator** Twilio *Service*
- 18 **Twilio - SMS Owner Call Summary** Twilio *Service*
- 19 **Twilio - SMS Office Manager (Needs Follow-up)** Twilio *Service*
- 20 **Respond to Webhook - Call Handled** Respond To Webhook *Starts it*
- 21 **Respond to Webhook - Route to AI** Respond To Webhook *Starts it*
- 22 **Respond to Webhook - Service Area Result** Respond To Webhook *Starts it*
- 23 **Respond to Webhook - Availability Result** Respond To Webhook *Starts it*
- 24 **Code - Check Duplicate Window** Code *Logic*
- 25 **Respond to Webhook - Escalated Result** Respond To Webhook *Starts it*
- 26 **Respond to Webhook - Ack** Respond To Webhook *Starts it*
- 27 **If - Is Duplicate Lead** If *Logic*
- 28 **Respond to Webhook - Duplicate Result** Respond To Webhook *Starts it*
- 29 **Google Calendar - Create Inspection Event** Google Calendar *Service*
- 30 **Google Sheets - Append Lead Row** Google Sheets *Service*
- 31 **Respond to Webhook - Booking Confirmed** Respond To Webhook *Starts it*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 31, with 4 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Calendar, Google Sheets, Twilio
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Google Calendar, Google Sheets and Twilio accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 31 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 31 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Froute-missed-roofing-calls-to-a-retell-ai-agent-with-twilio)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Calendar](https://millionrounds.com/workflows?service=Google+Calendar#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Twilio](https://millionrounds.com/workflows?service=Twilio#library)

## Workflows like it

Also scheduling, with the same services where possible, closest in size first.

- [**AI secretary for scheduling with WhatsApp and Telegram** 31 steps · calls a model · Google Calendar, Redis](https://millionrounds.com/workflow/ai-secretary-for-scheduling-with-whatsapp-and-telegram)
- [**Calendar Management & RAG Agent with OpenAI and OpenRouter** 31 steps · calls a model · Google Calendar, n8n data table](https://millionrounds.com/workflow/calendar-management-and-rag-agent-with-openai-and-openrouter)
- [**Ultimate AI assistant: Automate email, calendar, webSearch** 31 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/ultimate-ai-assistant-automate-email-calendar-websearch)
- [**Validate property compliance risk and orchestrate actions** 31 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/validate-property-compliance-risk-and-orchestrate-actions)
- [**WhatsApp appointment scheduling with Google Calendar** 32 steps · Google Calendar, Postgres](https://millionrounds.com/workflow/whatsapp-appointment-scheduling-with-google-calendar)
- [**Automate email & calendar management with Gmail** 32 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automate-email-and-calendar-management-with-gmail)
