Quick overview
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. An n8n automation workflow template by Pawan.
Pawan
web
free
Others in the same category, ranked by how often they are opened.