Templates / Generate quizzes and run multiplayer quiz contests with Mistral and Supabase

Generate quizzes and run multiplayer quiz contests with Mistral and Supabase

Ready for 3.0

by DIGITAL BIZ TECH ✓ · 6 views · created 2026-08-28 · Content Creation, AI Summarization

Ready 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)

AI AgentMistral Cloud Chat ModelSupabaseBasic LLM Chain

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.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.