n8n Quiz Generator: Mistral + Supabase Webhooks Workflow
n8n Quiz Generator: Mistral + Supabase Webhooks Workflow
Regular price
£18.99
Regular price
£18.99
Sale price
Unit price
/
per
⬇
Instant Digital Download
∞
Unlimited Downloads
★
Lifetime Access in Your Account
Couldn't load pickup availability
🔥
128+ Sold
Popular with n8n builders
⚡
23 people viewing
High interest right now
✅
9 added today
Fast-moving digital product
n8n Quiz Generator: Mistral + Supabase Webhooks Workflow
Regular price
£18.99
Regular price
£18.99
Sale price
Unit price
/
per
Generate and Serve a 10-Question Quiz with n8n, Mistral, and Supabase Webhooks
This n8n workflow instantly generates a 10-question multiple-choice quiz using Mistral Cloud and saves it to Supabase. It also exposes a second webhook to fetch a saved quiz by ID—ready for your frontend to display.
What this workflow does
-
Creates quizzes via webhook: Sends a POST request to the
generate-quizwebhook with topic, difficulty, and number of questions. -
Calls Mistral for strict JSON output: Uses
mistral-large-latest(Mistral Cloud) to generate quiz questions as strict JSON based on the provided topic and difficulty. - Validates generated content: Parses the returned JSON into individual question items and stops with an error response if no questions are produced.
- Stores quiz metadata in Supabase: Normalizes difficulty into a stored label (Easy/Medium/Hard) and creates a quiz record in Supabase.
-
Persists full question details: Iterates over each generated question and inserts options, correct_answer, explanation, and the associated quiz ID into the Supabase
questionstable. - Returns the result: Responds with JSON confirming success and providing the created Supabase quiz ID.
-
Fetches saved quizzes via webhook: The
get-quizwebhook accepts a quiz ID, retrieves the quiz and its questions from Supabase, and returns a single JSON payload for your application.
Use cases
- SaaS operators building an “instant practice quiz” feature for any learning topic.
- Automation engineers wiring a quiz-generation backend with n8n webhooks and a Supabase-backed datastore.
- Frontends that need a simple “generate now” + “fetch by ID” API pattern.
Technical details
-
n8n webhook endpoints:
generate-quizandget-quiz -
Mistral integration: Mistral Cloud chat model
mistral-large-latest -
Supabase storage:
quizzesandquestionstables (with fields matching workflow inputs and question data) - Workflow nodes: if, set, code, merge, switch, webhook
Setup note: Add your Mistral Cloud and Supabase credentials, and ensure the required Supabase tables/fields exist before deploying.
