AI-powered student assistant for course information via Twilio SMS
Needs changesWhat this workflow does
This AI workflow has 11 nodes and runs on Twilio events (com.twilio.messaging.inbound message.received). Along the way it connects Twilio, Airtable and OpenAI Chat Model.
How it runs
Trigger: On Twilio events (com.twilio.messaging.inbound message.received).
- Get User Message (Edit Fields (Set)): sets 2 fields: message, sessionId
- Course Assistant Agent (AI Agent): runs an AI agent, with model: Model; 4 tools (Get List of Professors, Get List of Departments, Search Available Courses, Get Course Database Schema); memory: Memory
- Append to Call Log (Airtable): create
- Send SMS reply (Twilio): uses Twilio
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Course Assistant Agent (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Course Assistant Agent (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- Twilio Trigger
n8n-nodes-base.twilioTrigger - Airtable Tool
n8n-nodes-base.airtableTool - Edit Fields (Set)
n8n-nodes-base.set - Twilio
n8n-nodes-base.twilio - Airtable
n8n-nodes-base.airtable - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
From the author
This n8n template offers a simple yet capable chatbot assistant who can answer course enquiries over SMS. Given the right access to data, AI Agents are capable of planning and performing relatively complex research tasks to get their answers. In this example,…