# Text back missed calls with Twilio and OpenAI: n8n workflow

> Started by another system calling it, and works across Google Sheets, Slack, Twilio and n8n data table. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/text-back-missed-calls-with-twilio-and-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Text back missed calls with Twilio and OpenAI

Started by another system calling it, and works across Google Sheets, Slack, Twilio and n8n data table. It hands the judgement calls to OpenAI. 19 steps, 3 branches: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftext-back-missed-calls-with-twilio-and-openai)

**19 steps** Medium: a working afternoon

**3** Branches: places the flow splits

**0** Loops or waits

**4** Services it connects to

## The flow

Starts it 1 Model 2 Logic 9 Service 7

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

- 1 **A Call Comes In** Webhook *Starts it*
- 2 **Reply Writer** Lm Chat Open Ai *Model*
- 3 **Settings** Set *Logic*
- 4 **Write The Text** Chain Llm *Model*
- 5 **Read The Call** Code *Logic*
- 6 **Attach The Text** Code *Logic*
- 7 **Did Nobody Answer?** If *Logic*
- 8 **Text Them Back** Twilio *Service*
- 9 **Look Them Up** Google Sheets *Service*
- 10 **Somebody Answered** No Op *Logic*
- 11 **Remember We Texted** Data Table *Service*
- 12 **Have We Texted Recently?** Data Table *Service*
- 13 **Who Was It?** Switch *Logic*
- 14 **Decide What To Do** Code *Logic*
- 15 **Tell The Owner A Customer Rang** Slack *Service*
- 16 **Tell The Owner A New Lead Rang** Slack *Service*
- 17 **Tell The Owner It Was After Hours** Slack *Service*
- 18 **Worth Texting?** If *Logic*
- 19 **Already Texted Them** No Op *Logic*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 19, with 3 branches
- **Size:** Medium: a working afternoon
- **Connects to:** Google Sheets, Slack, Twilio, n8n data table
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets, Slack and Twilio accounts, and a key for OpenAI. 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?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

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 19 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%2Ftext-back-missed-calls-with-twilio-and-openai)
- **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 Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[Twilio](https://millionrounds.com/workflows?service=Twilio#library)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**AI-powered 24-7 CCTV video monitoring & incident reporting** 19 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-powered-24-7-cctv-video-monitoring-and-incident-reporting)
- [**Automated RSS monitoring with Gemini** 19 steps · calls a model · Google Sheets, RSS](https://millionrounds.com/workflow/automated-rss-monitoring-with-gemini)
- [**Daily Google Analytics report with OpenAI and WhatsApp** 19 steps · calls a model · ClickUp, Email](https://millionrounds.com/workflow/daily-google-analytics-report-with-openai-and-whatsapp)
- [**Detect fake product reviews with OpenAI and Airtable** 19 steps · calls a model · Airtable, Slack](https://millionrounds.com/workflow/detect-fake-product-reviews-with-openai-and-airtable)
- [**Find real estate deals from Facebook groups with OpenAI** 19 steps · calls a model · Twilio](https://millionrounds.com/workflow/find-real-estate-deals-from-facebook-groups-with-openai)
- [**Monitor AI search visibility with Talordata SERP and OpenAI** 19 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/monitor-ai-search-visibility-with-talordata-serp-and-openai)
