Templates / Build an AI-powered SMS support system with Twilio, GPT-4 and PostgreSQL

Build an AI-powered SMS support system with Twilio, GPT-4 and PostgreSQL

Needs changes

by John · 261 views · created 2025-10-03 · Support Chatbot, AI Chatbot

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: OpenAI (legacy), Cron. 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 40 nodes and runs when an HTTP POST request hits its webhook URL (plus 3 other triggers). Along the way it connects Postgres, Gmail and AWS S3.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 3 other triggers).

  1. Generate Verification Code (Code): runs custom JavaScript code
  2. Extract Verification Data (Code): runs custom JavaScript code
  3. Extract SMS Data (Code): runs custom JavaScript code
  4. Find Inactive Sessions (Postgres): select
  5. Store Verification (Postgres): uses Postgres
  6. Check Verification (Postgres): select
  7. Find User Session (Postgres): select
  8. 🤖 AI Personalized Reminder (OpenAI): uses OpenAI
  9. Send Verification SMS (Twilio API) (HTTP Request): calls an HTTP API
  10. Validate Code (Switch): routes items into 2 branches

…plus 26 more steps. See the full node list below.

Services it uses

PostgresGmailAWS S3

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • OpenAI (legacy) in 🤖 AI Sentiment Analysis, 🤖 AI Intake Enrichment, 🤖 AI Response Generator…: replace with OpenAI node (AI section).
  • Cron in Follow-Up Cron (24h): replace with Schedule Trigger.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
OpenAI (legacy)
🤖 AI Sentiment Analysis, 🤖 AI Intake Enrichment, 🤖 AI Response Generator, 🤖 AI Personalized Closeout, 🤖 AI Personalized Reminder
OpenAI node (AI section)
Cron
Follow-Up Cron (24h)
Schedule Trigger

Nodes used (10)

From the author

How it works 1. User Signup & Verification: The workflow starts when a user signs up. It generates a verification code and sends it via SMS using Twilio. 2. Code Validation: The user replies with the code. The workflow checks the code and, if valid, creates a…

Excerpt from John's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.