GPT-4o: Twilio integration with auto follow-up features
Ready for 3.0What this workflow does
This AI workflow has 20 nodes and runs on Twilio events (com.twilio.voice.insights.call summary.complete). Along the way it connects Twilio, OpenAI Chat Model, Airtable and Slack.
How it runs
Trigger: On Twilio events (com.twilio.voice.insights.call summary.complete).
- Analyze Call Context (Code): runs custom JavaScript code
- Check Existing Contact (HTTP Request): calls an HTTP API
- Merge Customer Data (Code): runs custom JavaScript code
- Generate AI Response (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Prepare Messages (Code): runs custom JavaScript code
- Send SMS? (If): checks a condition and branches into true / false
- Send Email? (If): checks a condition and branches into true / false
- Send SMS (Twilio): uses Twilio
- Send Email: sends an email over SMTP
- Merge: merges the data from its input branches
…plus 7 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (13)
- Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Twilio Trigger
n8n-nodes-base.twilioTrigger - HTTP Request
n8n-nodes-base.httpRequest - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Twilio
n8n-nodes-base.twilio - Send Email
n8n-nodes-base.emailSend - Airtable
n8n-nodes-base.airtable - Slack
n8n-nodes-base.slack - Wait
n8n-nodes-base.wait
From the author
How it works • Twilio webhook detects missed/unanswered calls automatically • Analyzes call context (time of day, business hours, weekend/weekday) • Checks CRM for existing customer data and purchase history (optional) • AI Chain (GPT-4o) generates…