Library / Chatbots & Messaging Bots
Chatbots & Messaging Bots
WhatsApp Study Quiz Bot with OpenAI and Supabase
When a WhatsApp message arrives, an OpenAI agent looks up the student in Supabase, asks for missing name or topic, and runs a Portuguese study quiz.
What it does
## Flow Overview Trigger: Incoming WhatsApp msg Fetch user data (Supabase) Check if name & topic exist Ask missing info via WhatsApp Update Supabase with answers Merge inputs AI Agent generates quiz Send response to user
The steps
- Simple Memory
- OpenAI Chat Model
- Merge
- Whatsapp Trigger
- User exist?
- AI Agent - Portuguese BR System Msg
- Supabase: Fetch User Data
- Ask For Name
- Supabase: Update User Name
- Quiz Topic Defined?
- Ask For Study Topic (WhatsApp Message)
- Supabase: Update Study Topic
- Send Message to User (WhatsApp Message)
Similar automations