Build an AI-Powered SMS Support System with Twilio, GPT-4 and PostgreSQL
How it works
User Signup & Verification:
The workflow starts when a user signs up. It generates a verification code and sends it via SMS using Twilio.
Code Validation:
The user replies with the code. The workflow checks the code and, if valid, creates a session for the user.
Conversational AI:
Incoming SMS messages are analyzed by Chat GPT AI for sentiment, intent, and urgency. The workflow stores the conversation context and generates smart, AI-powered replies.
Escalation Handling:
If the AI detects urgency or frustration, the workflow escalates the session—alerting your team and sending a supportive SMS to the user.
Set up steps
Estimated setup time:** 10–20 minutes for most users.
What you’ll need:**
A free n8n account (self-hosted or cloud)
Free Twilio account (for SMS)
OpenAI API key (for AI)
A PostgreSQL database (Supabase, Neon, or local)
Setup process:**
Import this workflow into n8n.
Add your Twilio and OpenAI credentials as environment variables or n8n credentials.
Update webhook URLs in your Twilio console (for incoming SMS).
(Optional) Adjust sticky notes in the workflow for detailed, step-by-step guidance.
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
🤖 Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments