merchantGuidance is for what the agent cannot learn from the page in front of it: things you know about this merchant from running checkouts there before. A control that is hidden until the page settles, a modal that leads nowhere, a required step that looks optional, or the one of two similar paths that actually works. It is free text that the agent reads as operational advice about the site.
Prerequisites
- A working checkout integration. Follow the quickstart first. Guidance refines a merchant that mostly works; it does not replace the task or the buyer profile.
- Evidence of a repeatable problem. Read the
result.summaryandblockedcode of past runs at the merchant, or watch the live browser session, and identify the step the agent gets wrong.
What Guidance Can and Cannot Do
Guidance is scoped and subordinate by design:- It applies to the merchant of
request.startUrl, for this run only. It does not follow the agent to another merchant. - It sits below the task, the buyer’s answers, and the spending cap. It cannot authorize a substitution, a higher quantity, another seller, any consent, or spending above
maxCost. - It is advice, not a script. If the page contradicts it, the agent follows the page. Guidance written for an old layout degrades gracefully instead of breaking the run.
- If you omit it, the checkout uses any guidance Crossmint already maintains for that merchant. Supplying it replaces that guidance in full for the run.
When to Use It
Write guidance when the agent repeatedly stumbles on the same merchant-specific detail:
Each line names a concrete control, where it is, and what to do about it.
When Not to Use It
- Standard checkouts. If the merchant follows the common patterns, omit
merchantGuidance. An empty string is rejected, and extra text costs tokens and adds nothing. - What to buy. Product, variant, quantity, and preferences belong in
request.task, not in guidance. - Who is buying. Name, contact, and shipping belong in the buyer profile.
- Anything that widens the order. Guidance cannot raise the cap, approve an alternative item, or accept terms on the buyer’s behalf. Those statements are ignored.
How to Use It
PassmerchantGuidance at the top level of the create request, next to request and constraints.
Verify
Run the same purchase again with the guidance attached and compare:- The run no longer stops at the step you identified. Check
result.summaryand theblockedcode, if any. - The live browser session shows the agent taking the path you described.
- The final total and items are unchanged. Guidance should change the route, never the order.
Next Steps
Provide Purchase Context
Put the buyer’s identity, shipping, and intent where they belong
Buy from Authenticated Stores
Reuse a merchant login when the purchase needs an account
API Reference
The full create request schema

