Validate civil service exam questions with an AI council using Google Gemini
Quick overview This workflow runs manually to generate and validate a civil-services-style multiple-choice question using Google Gemini, looping up to three times with reviewer feedback until the Examiner returns an approved JSON decision.
How it works Starts when you manually execute the workflow. Initializes the run state (topic, iteration counter, and optional feedback) used to drive the prompt. Uses Google Gemini to generate a draft question, then has Google Gemini refine it and finally evaluate it as an Examiner. Extracts and parses the Examiner’s JSON decision from the model output and appends iteration and topic metadata. If the decision is rejected and the iteration is under three, feeds the feedback back into the next generation pass. Outputs the final approved content (or stops after the maximum attempts) as the workflow result.
Setup Add Google Gemini (PaLM) API credentials and select your preferred Gemini model in the Generator, Solver, and Examiner nodes. Set the input values in the Initialize State node (at minimum the topic, plus optional feedback and an iteration counter starting at 1). Ensure the Examiner prompt returns a valid JSON object containing at least a decision field (for example, APPROVED/REJECTED) so the parser can extract and evaluate it.
Related Templates
Convert JSON Objects to Base64 Strings with File Processing
Encode JSON to Base64 String in n8n This example workflow demonstrates how to convert a JSON object into a base64-encod...
Automate Daily YouTrack Task Summaries to Discord by Assignee
Daily YouTrack In-Progress Tasks Summary to Discord by Assignee Keep your team in sync with a daily summary of tasks cu...
Automate Free IP Analysis: NixGuard AI Summaries & Wazuh Integration
Supercharge Your Security Operations for Free Stop wasting time manually investigating suspicious IP addresses. This wo...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments