Generate quizzes and run multiplayer quiz contests with Mistral and Supabase
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (11)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook - AI Agent
@n8n/n8n-nodes-langchain.agent - Mistral Cloud Chat Model
@n8n/n8n-nodes-langchain.lmChatMistralCloud - Supabase
n8n-nodes-base.supabase - Switch
n8n-nodes-base.switch - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Limit
n8n-nodes-base.limit
What it does
Quick overview This workflow powers MindArena’s quiz features by generating and retrieving quizzes in Supabase, managing multiplayer contest rooms via a single webhook, and producing personalized quiz-performance feedback using Mistral Cloud. How it works 1. Receives a POST request to /webhook/generate-quiz, sends the topic, difficulty, and question count to Mistral Cloud to generate multiple-choice questions, and stores the quiz and questions in Supabase before returning the quizid. 2. Receives a request to /webhook/get-quiz, fetches the quiz and its questions from Supabase by quizid, and returns a combined JSON payload to the client. 3. Receives a POST request to /webhook/ai-feedback, sends the submitted quiz performance data to Mistral Cloud via an AI Agent to generate structured tutoring feedback. 4. Parses the AI output into overallperformance, strengths, areastoimprove, and practicalsuggestion, falling back to default feedback when the AI returns invalid JSON. 5. Receives a POST request to /webhook/arena-management, routes by action, and uses Supabase to create rooms (including generating quiz questions), join rooms, start contests, fetch contest questions, submit scored results, and return a ranked leaderboard. Setup 1. Add a Supabase API credential and ensure your Supabase project has the required tables (at minimum: quizzes, questions, rooms, roomplayers, and contestresults). 2. Add a Mistral Cloud API credential for the Mistral chat model used for quiz generation and performance feedback. 3. Deploy the workflow and configure your frontend to call the webhook endpoints (/webhook/generate-quiz, /webhook/get-quiz, /webhook/ai-feedback, and /webhook/arena-management) with the expected JSON fields such as quizid, action, and room/answer payloads. 4. For the arena flow, generate a quiz first (or pass a valid quizid) before calling startContest, and ensure createRoom includes valid maxplayers (2–10) and numberofquestions. Additional info Need Help or Customization? Digital Biz Tech can help tailor this workflow to your business. We offer free setup support, including credential configuration and deployment. Contact: [email protected](mailto:[email protected]) Website: https://www.digitalbiz.tech LinkedIn: https://www.linkedin.com/company/digital-biz-tech/ Developer:JESWIN MADONA M LinkedIn: https://www.linkedin.com/in/jeswinmadona/ You can also DM us on LinkedIn for any help or customization.