Reply to missed calls and triage SMS responses with Twilio, OpenAI and Sheets
Quick overview
Description
Quick overview This workflow uses Twilio webhooks to detect missed calls and send an immediate text-back, logs each missed call to Google Sheets, and then uses OpenAI (via the n8n LangChain Text Classifier) to categorize incoming SMS replies and route them to the right follow-up action. How it works Receives a POST webhook from Twilio when a call status changes for your phone number. Filters for missed-call outcomes (no-answer, busy, or failed), determines whether it is currently within your defined business hours, and generates an appropriate SMS message. Sends the text-back to the caller via Twilio and appends the missed call details to a Google Sheets tab named “Missed calls.” Receives a second POST webhook from Twilio when an inbound SMS reply arrives. Uses OpenAI to classify the SMS text into Urgent, Booking, Question, or Spam. Sends an SMS alert to the owner for Urgent messages, texts the booking link back for Booking messages, appends Questions to a Google Sheets tab named “Call-back list,” and ignores Spam. Setup Add credentials for Twilio, OpenAI, and Google Sheets. Create a Google Sheets spreadsheet with two tabs named “Missed calls” and “Call-back list,” then select the same document in both Google Sheets nodes. Update the workflow’s settings values (business name, Twilio number, owner mobile, booking link, time zone, and open/close hours) in both settings steps. In Twilio, configure your phone number’s webhook for call status changes to point to the workflow’s “missed-call” webhook URL (POST) and the messaging webhook to point to the “sms-reply” webhook URL (POST). Requirements Twilio SMS number (US: A2P 10DLC), OpenAI API key, Google Sheets Customization Edit AI categories, swap SMS alert for Slack/email, change hours Additional info Only text people who contacted you and keep the "Reply STOP to opt out" line. Free step-by-step guide and an optional done-for-you setup by Make It Flow: https://makeitflow.si/blog/missed-call-text-back-automation. An n8n automation workflow template by MakeitFlow.
Community Metrics
Author
MakeitFlow
Platform
web
Pricing model
free
Categories
- Automation
- AI
Tags
- n8n
- workflow
- google-sheets
- twilio
- code
- openai-chat-model
- text-classifier
Capabilities
- 5 nodes