AI Agents
Intelligent SMS Automation with Twilio and AI
18 nodes
285
144
Automatic trigger
Workflow Description
An advanced automation system that receives text messages via Twilio and processes them using an AI agent powered by OpenAI, maintaining conversation history in Redis for seamless context retention across interactions.
How it works
- 1.Receive incoming messages through Twilio trigger
- 2.Process messages with an OpenAI-powered AI agent
- 3.Store conversation context in Redis and memory buffer
- 4.Send intelligent replies back via Twilio
Use cases
- Automated customer support responding to common inquiries via SMS
- Smart reservation system handling booking requests from customers
Requirements
- OpenAI API key with sufficient credits
- Active Twilio account with verified phone number
- Redis server for conversation storage
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
OpenAI
Redis
Memory
Twilio
AI Agent
Details
Trigger
Automatic trigger
Nodes
18
Apps
5
Views
285
Downloads
144
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (18)
/
OpenAI Chat Model
OpenAI
No Operation, do nothing
No Op
Add to Messages Stack
Redis
Should Continue?
If
Window Buffer Memory
Memory Buffer Window
Twilio Trigger
Set
Get Latest Message Stack
Redis
Sticky Note
Sticky Note
Send Reply
Set
Wait 5 seconds
Wait
Get Chat History
Memory Manager
Window Buffer Memory1
Memory Buffer Window
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Get Messages Buffer
Set
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
AI Agent
Agent