# GPT-4o: Twilio integration with OpenAI and Airtable: n8n workflow

> Started by an event in a connected app, and works across Airtable, Email, Slack and Twilio. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/gpt-4o-twilio-integration-with-openai-and-airtable (Millionrounds; every figure on the page links to its filing or article)

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

# GPT-4o: Twilio integration with OpenAI and Airtable

Started by an event in a connected app, and works across Airtable, Email, Slack and Twilio. It hands the judgement calls to OpenAI. 20 steps, 3 branches, 1 loop or waits: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgpt-4o-twilio-integration-with-openai-and-airtable)

**20 steps** Medium: a working afternoon

**3** Branches: places the flow splits

**1** Loop or waits

**4** Services it connects to

## The flow

Starts it 1 Model 3 Logic 9 Service 7

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

- 1 **Missed Call Detected2** Twilio trigger *Starts it*
- 2 **OpenAI Chat Model8** Lm Chat Open Ai *Model*
- 3 **Analyze Call Context2** Code *Logic*
- 4 **Generate AI Response2** Chain Llm *Model*
- 5 **Structured Output Parser8** Output Parser Structured *Model*
- 6 **Check Existing Contact2** Http Request *Service*
- 7 **Prepare Messages2** Code *Logic*
- 8 **Merge Customer Data2** Code *Logic*
- 9 **Send SMS?2** If *Logic*
- 10 **Send Email?2** If *Logic*
- 11 **Send SMS2** Twilio *Service*
- 12 **Send Email2** Email Send *Service*
- 13 **Merge Results** Merge *Logic*
- 14 **Track Results** Code *Logic*
- 15 **Log to CRM2** Airtable *Service*
- 16 **Notify Sales Team3** Slack *Service*
- 17 **Wait 24 Hours2** Wait *Logic*
- 18 **Check if Booked2** Http Request *Service*
- 19 **No Response?2** If *Logic*
- 20 **Send Follow-up SMS2** Twilio *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 20, with 3 branches, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Airtable, Email, Slack, Twilio
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Airtable, Email, 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 an event in a connected app.

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. 20 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 20 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%2Fgpt-4o-twilio-integration-with-openai-and-airtable)
- **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.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)[Email](https://millionrounds.com/workflows?service=Email#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[Twilio](https://millionrounds.com/workflows?service=Twilio#library)

## Workflows like it

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

- [**Reach out to companies that recently secured funding** 20 steps · HubSpot, Slack](https://millionrounds.com/workflow/reach-out-to-companies-that-recently-secured-funding)
- [**Send monthly rent and sales market updates to Slack** 20 steps · Slack, Supabase](https://millionrounds.com/workflow/send-monthly-rent-and-sales-market-updates-to-slack)
- [**AI-powered document workflow automation with OpenAI** 21 steps · calls a model · Email, Google Drive](https://millionrounds.com/workflow/ai-powered-document-workflow-automation-with-openai)
- [**Automated 4-stage email follow-up system with Groq and NocoDB** 21 steps · calls a model · Email, NocoDB](https://millionrounds.com/workflow/automated-4-stage-email-follow-up-system-with-groq-and-nocod)
- [**Explain pasted code and follow-up questions with OpenAI** 19 steps · calls a model · Discord, Slack](https://millionrounds.com/workflow/explain-pasted-code-and-follow-up-questions-with-openai)
- [**Sync weekly Odoo sales KPIs with Google Sheets and Slack** 19 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/sync-weekly-odoo-sales-kpis-with-google-sheets-and-slack)
