Automation library · CRM

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.

MediumCalls a model: OpenAI

20 stepsMedium: a working afternoon
3Branches: places the flow splits
1Loop or waits
4Services it connects to

The flow

Starts it 1Model 3Logic 9Service 7

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

  1. 1Missed Call Detected2Twilio triggerStarts it
  2. 2OpenAI Chat Model8Lm Chat Open AiModel
  3. 3Analyze Call Context2CodeLogic
  4. 4Generate AI Response2Chain LlmModel
  5. 5Structured Output Parser8Output Parser StructuredModel
  6. 6Check Existing Contact2Http RequestService
  7. 7Prepare Messages2CodeLogic
  8. 8Merge Customer Data2CodeLogic
  9. 9Send SMS?2IfLogic
  10. 10Send Email?2IfLogic
  11. 11Send SMS2TwilioService
  12. 12Send Email2Email SendService
  13. 13Merge ResultsMergeLogic
  14. 14Track ResultsCodeLogic
  15. 15Log to CRM2AirtableService
  16. 16Notify Sales Team3SlackService
  17. 17Wait 24 Hours2WaitLogic
  18. 18Check if Booked2Http RequestService
  19. 19No Response?2IfLogic
  20. 20Send Follow-up SMS2TwilioService

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.