See llms.txt for all machine-readable content.

Back to Templates

Reply to missed calls and triage SMS responses with Twilio, OpenAI and Sheets

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

  1. Receives a POST webhook from Twilio when a call status changes for your phone number.
  2. 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.
  3. Sends the text-back to the caller via Twilio and appends the missed call details to a Google Sheets tab named “Missed calls.”
  4. Receives a second POST webhook from Twilio when an inbound SMS reply arrives.
  5. Uses OpenAI to classify the SMS text into Urgent, Booking, Question, or Spam.
  6. 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

  1. Add credentials for Twilio, OpenAI, and Google Sheets.
  2. 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.
  3. Update the workflow’s settings values (business name, Twilio number, owner mobile, booking link, time zone, and open/close hours) in both settings steps.
  4. 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