FM
FlowMarket
AI Agents Intermediate ⚡ 15 n8n Nodes

Create AI powered WhatsApp quiz bot with GPT 4o mini and Supabas

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 ...

🔌 Nodes & Integrations Used (5)

Memory Buffer Window Lm Chat Open Ai Agent Supabase HTTP Request

📖 Implementation & Setup Guide

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 to each topic.

---

Main Use Cases

* Guide users through personalized study sessions * Collect and store user preferences (name + topic) * Automate quiz creation with AI * Deliver interactive content via WhatsApp

---

How It Works

This workflow is composed of three main paths:

---

1. User Info Collection

* Triggered by an incoming WhatsApp message * Retrieves existing user data from Supabase * Checks if the **name** and **topic** are already defined * If not, sends WhatsApp prompts to collect missing info * Updates Supabase with new entries

---

2. AI Quiz Generation

* Once name and topic are confirmed, the **Merge node** consolidates all inputs * Data is sent to the **AI Agent** (OpenAI Chat + Memory) * The agent generates a quiz based on the selected topic

---

3. Response Delivery

* The quiz is sent back to the user via WhatsApp * Flow ends, ready to restart with the next interaction

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Create_AI_powered_WhatsApp_quiz_bot_with_GPT_4o_mini_and_Supabas.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related AI Agents Workflows

View All in AI Agents →