{"product_id":"n8n-workflow-validate-exam-mcqs-with-ai-council-gemini","title":"n8n Workflow: Validate Exam MCQs with AI Council (Gemini)","description":"\u003ch3\u003eGenerate and validate civil-services-style exam MCQs with Google Gemini—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow manually generates a multiple-choice question and then validates it using \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e. If the “Examiner” rejects the result, the workflow loops (up to \u003cstrong\u003ethree\u003c\/strong\u003e attempts) with reviewer feedback until you receive an \u003cstrong\u003eapproved JSON decision\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eManual trigger:\u003c\/strong\u003e Start by manually executing the workflow in n8n.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInitialize run state:\u003c\/strong\u003e The \u003cem\u003eInitialize State\u003c\/em\u003e step sets the topic, an iteration counter (starting at 1), and optional feedback used to steer prompts.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerate → refine → evaluate:\u003c\/strong\u003e Google Gemini produces a draft MCQ, refines it, and then evaluates it as an “Examiner.”\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParse Examiner JSON:\u003c\/strong\u003e The workflow extracts and parses the Examiner’s output, expecting a valid JSON object with at least a \u003cem\u003edecision\u003c\/em\u003e field (e.g., APPROVED\/REJECTED).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIterate with feedback:\u003c\/strong\u003e If rejected and the iteration is under three, the workflow feeds the Examiner feedback into the next generation pass.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturn final result:\u003c\/strong\u003e The workflow outputs the final approved content (or stops after the maximum attempts).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eCreate \u003cstrong\u003ecivil-services-style exam MCQs\u003c\/strong\u003e for practice sets while enforcing structured, reviewable output via JSON decisions.\u003c\/li\u003e\n  \u003cli\u003eValidate question quality in an \u003cstrong\u003eautomation workflow\u003c\/strong\u003e for training content teams—reducing manual review cycles.\u003c\/li\u003e\n  \u003cli\u003eBuild an \u003cstrong\u003eAI Council\u003c\/strong\u003e-style generation pipeline where an “Examiner” role tests outputs before accepting them.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegration:\u003c\/strong\u003e Google Gemini (via \u003ccode\u003en8nn8n-nodes-langchaingoogle gemini\u003c\/code\u003e), used across Generator, Solver, and Examiner nodes.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWorkflow components:\u003c\/strong\u003e \u003ccode\u003emanual trigger\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, plus \u003ccode\u003esticky note\u003c\/code\u003e for clarity.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup requirements:\u003c\/strong\u003e Add Google Gemini (PaLM) API credentials and choose your preferred Gemini model in each node.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInput configuration:\u003c\/strong\u003e Provide at minimum a topic in the Initialize State node (with an iteration counter starting at 1, plus optional feedback).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46058948591795,"sku":"N8N-19695","price":32.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/BYNGpLCA77_OU-PqeoZYj_hl8ZO24x.png?v=1789722391","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-validate-exam-mcqs-with-ai-council-gemini","provider":"N8N Commerce","version":"1.0","type":"link"}