New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
One prompt is asked to plan, draft, and check itself, and it quietly skips one of those jobs.
What you'll have at the end
A three-step pipeline: draft, gate check, and one automatic rewrite when the check fails
You need
One live prompt that already asks a model to decide an action, write a customer-facing reply, and confirm the reply follows a policy rule, all inside a single call, plus a working setup for sending a request to your LLM API and getting a structured JSON reply back.
Not covered
This does not cover a policy rule that can't be reduced to comparing two fields, or a gate that needs to branch into several different recovery paths: those need a second LLM call judging prose, or a routing pattern, neither of which this fixed three-call chain does.
Leans on
Your agent never checks its own answer before handing it back
for a checker that reads prose against real tool data with a second LLM call, when the policy rule can't be reduced to a single field comparison the way this recipe's gate is.
Run three independent LLM checks in parallel instead of one after another
when the checks you need don't actually depend on each other in order, since running them at once beats paying for three sequential calls only one of which usually needs to run.
Checked 18 Aug 2026
Part of the AI Agents cookbook