Create AI-powered WhatsApp quiz bot with GPT-4o-mini and Supabase storage
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model and Supabase.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Supabase: select
- User exist? (If): checks a condition and branches into true / false
- Quiz Topic Defined? (If): checks a condition and branches into true / false
- Ask For Name (HTTP Request): calls an HTTP API (POST)
- Merge: merges the data from its input branches
- Ask For Study Topic (WhatsApp Message) (HTTP Request): calls an HTTP API (POST)
- Supabase: update
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; memory: Simple Memory
- Supabase: update
- Send Message to User (WhatsApp Message) (HTTP Request): calls an HTTP API
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 AI Agent - Portuguese BR System Msg (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent - Portuguese BR System Msg (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Merge
n8n-nodes-base.merge - Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - Supabase
n8n-nodes-base.supabase - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quiz Assistant via WhatsApp with Supabase and OpenAI Create a quiz assistant that helps users study a topic of their choice through WhatsApp. Using Supabase and OpenAI, this workflow captures missing user data, stores it, and delivers dynamic quizzes tailored…