Chaining Three Prompts to Route a Purchase Request Through Finance, Legal, and a Manager

A pen resting on a signed legal document, representing a purchase approval step

Image: Blogtrepreneur, CC BY 2.0, via Wikimedia Commons.

A single prompt struggles to route a purchase request correctly because finance, legal, and a manager each apply a different kind of judgment to the same request, and a model asked to do all three at once has no structured way to show which rule actually fired. Chaining three narrower prompts — one per reviewer role, each passing structured output to the next — mirrors how a real approval chain works and makes every stage auditable on its own. Below is that chain built around one concrete example: a recurring software purchase request, with the exact prompt used at each stage and why each part of it exists.

Why One Prompt Can’t Run a Three-Stage Approval

A prompt that asks a model to decide in one pass whether a purchase needs finance review, legal review, and manager sign-off is really asking three separate questions with three separate vocabularies and thresholds. The model has to silently juggle a dollar-amount rule, a contract-language rule, and a business-justification judgment, and when the answer is wrong there is no way to tell which of the three reasoning threads broke. Anthropic’s own guidance on chaining prompts recommends splitting a task into subtasks specifically when each subtask has a distinct goal and its own success criteria — which a multi-department approval clearly does.

The Three-Stage Chain, at a Glance

StageReviewerWhat it checksTypical trigger
1. Finance GateFinanceSpend amount against the budget line, whether it is already budgeted, whether it needs a purchase orderAny amount at or above a set floor, or any new recurring charge
2. Legal GateLegalAuto-renewal terms, liability caps, personal-data processing by the vendorNew vendor, a contract term over 12 months, or vendor access to employee or customer data
3. Manager sign-offRequester’s managerBusiness justification, timing, whether an existing tool already covers thisAlways runs last, after stages 1 and 2 have produced their findings

Step 1 — The Finance-Gate Prompt

This stage’s only job is to turn the raw request into structured facts and apply one numeric rule, so the stages after it never have to re-read the original prose.

You are the finance intake reviewer for {{company}}. You will receive one purchase request. Your only job is to extract facts and apply the finance rule below — you do not approve or reject the purchase itself.

Purchase request:
{{request_text}}

Finance rule: any request at or above $500, or any request that is a new recurring subscription regardless of amount, requires a Finance Gate review before it can proceed.

Return only this JSON object, with no other text:
{
  "vendor": string,
  "amount_usd": number,
  "is_recurring": boolean,
  "already_budgeted": boolean or null if unknown,
  "finance_gate_required": boolean,
  "reason": short string citing the specific number or fact that triggered your decision
}

If a fact is not stated in the request, use null rather than guessing.

Three choices in this prompt matter more than the others. First, telling the model it is only extracting facts and explicitly does not approve or reject anything keeps it from quietly rendering a verdict that belongs to a later stage — role framing plus a stated negative scope is what makes a three-stage chain more reliable than one broad prompt. Second, writing the dollar threshold directly into the prompt, instead of asking the model to judge what counts as “expensive,” makes the rule auditable and editable without touching the model at all. Third, the closing instruction to use null rather than guess is the single most load-bearing line here: without it, a model asked to fill in a boolean like already_budgeted will often produce a plausible-sounding guess rather than admit the request did not say. Anthropic’s guide to reducing hallucinations recommends exactly this: giving the model explicit permission to say it does not know.

Step 2 — The Legal-Gate Prompt

This stage receives the original request text alongside stage 1’s JSON, not a rewritten summary of it, so it can still quote the contract language directly.

You are the legal intake reviewer. You receive the original purchase request and the finance reviewer’s JSON output below. Do not re-decide any finance question — assume the finance fields are correct.

Finance output:
{{finance_json}}

Purchase request:
{{request_text}}

Check the request text only for these three legal triggers, and quote the exact phrase that supports each one you find:
1. Auto-renewal or auto-escalation clause
2. Liability cap below $1,000,000, or no liability cap stated
3. Vendor will process personal data of employees or customers

Return only this JSON:
{
  "auto_renewal_found": boolean,
  "liability_cap_issue": boolean,
  "data_processing_involved": boolean,
  "quotes": [array of the exact phrases you quoted, or empty array],
  "legal_gate_required": boolean,
  "escalate_to_outside_counsel": boolean
}

The instruction not to re-decide any finance question is the connective tissue of the whole chain. Leave it out, and a model will sometimes “helpfully” re-derive the earlier stage’s answer from the raw text on its own, which can quietly diverge from what finance actually decided and breaks the audit trail you are building the chain to produce. Requiring a quoted phrase for every trigger found is the second safeguard: it forces the model to point at literal contract text instead of asserting an auto-renewal clause exists from a general impression of the document, and if there is no phrase to quote, there is no finding.

Step 3 — The Manager Sign-off Prompt

The last stage is not a third independent reviewer; it is a translator writing for someone who cannot adjudicate a finance or legal dispute anyway.

You are drafting a one-paragraph summary for {{manager_name}} to approve or reject. You have the finance and legal findings below. Do not question or restate their findings — summarize them for a non-specialist, and ask one plain-language question only if something both reviewers needed is still missing.

Finance finding: {{finance_json}}
Legal finding: {{legal_json}}
Original request: {{request_text}}

Write:
1. A two-sentence summary of what is being purchased and why the requester says they need it, using their own words where possible.
2. One status line for finance and one for legal, each ending in "cleared" or naming exactly what is outstanding.
3. One recommendation: Approve, Approve with condition, or Hold for information — and if not Approve, name the specific condition or missing fact.

Telling the model not to question or restate the upstream findings keeps the manager-facing summary from quietly contradicting finance or legal — something that becomes a real problem once a chain like this is also being checked with a technique like chain-of-verification prompting for high-value requests. Forcing the recommendation into exactly one of three labeled options, with the missing fact named whenever it is not a plain approval, turns a vague opinion into something a manager can act on and something you can log for an audit later.

What Breaks This Chain in Practice

Four failure modes show up repeatedly once a chain like this runs on real requests instead of test cases.

  1. Passing a prose summary between stages instead of the raw JSON. A later stage can round off ambiguous language and lose the original finding. Always pass the JSON object itself, never a human-friendly rephrasing of it.
  2. Not giving stage 2 or 3 the original request text, only the upstream JSON. Without it, a model cannot quote anything new for a legal trigger and either refuses to answer or invents a quote — which is why both prompts above carry the original text forward.
  3. Loose or prose-based decision fields. A field like legal_gate_required defined as free text instead of a strict boolean on a fixed schema will drift across near-identical inputs; the JSON-schema-in-the-prompt approach narrows that drift.
  4. No regression set. Teams often ship a chain like this after skimming a handful of outputs and calling it done. What actually catches drift is a held-out set of past real requests with known correct routing, re-run every time any of the three prompts changes.

Testing the Chain Before You Trust It With Real Spend

Before connecting this chain to anything that actually blocks a purchase, build a small regression set out of 15 to 20 past requests whose correct routing you already know — including a few edge cases on purpose: a $499 one-time purchase that should clear finance automatically, a $50-a-month subscription that should still trigger finance because it is recurring, a contract with an auto-renewal clause buried in a late paragraph. Run the full three-stage chain against that set and diff the output against the known-correct routing every time you touch any of the three prompts, not just the one you think you changed. The same discipline matters for the tool-calling layer around the chain: if any stage is wired to an actual tool call rather than returning JSON for a human or another prompt to read, treat that connection with the same caution OWASP’s Top 10 for LLM Applications gives to excessive agency: a model that can both decide a purchase is approved and execute the purchase order is a different risk than one that only drafts a recommendation for a person to click.

The pattern underneath all three prompts — a narrow extraction step, a narrow decision step, and a narrow communication step, each trusting the last one’s structured output instead of re-deriving it — is not specific to purchasing. The same shape routes an access request through a security reviewer and a resource owner, or an expense report through a policy check and a manager. What changes between those cases is the schema and the rule in step one; the division of labor stays the same.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top