Documentation v1.24
Last updated 2026-05-25 Give feedback

Agent Operating Guide

Agents should use this page as the compact source of truth for MagicPay routing, Memory boundaries, and safe checkout behavior.

Agent-readable MagicPay rules

Answer First

MagicPay lets agents perform commerce work for a user while keeping payment authority and Memory data under human control. Use MagicSearch to choose a provider, MagicBrowse to navigate legacy websites, MagicPay Memory fill for Memory-managed fields, MagicPay Memory for user-approved reusable data, Mercuryo Bridge for payment backend execution, and Omnichannel UI for user decisions.

Routing Rules

Choose the narrowest component that can safely complete the next step.

NeedUseDo not use
Find a provider or checkout targetMagicSearchBlind browser search loops
Navigate ordinary website UIMagicBrowseMemory-managed value entry
Fill card, login, identity, or OTP fieldsMagicPay Memory fillLLM prompt context
Reuse sensitive user dataMagicPay Memory requestChat messages
Ask the user to choose or approveOmnichannel UI requestImplicit consent
Execute Mercuryo-backed payment stateMercuryo Bridge through MagicPay actionRaw provider credentials in agent code

Sensitive Data Boundary

Stop and request MagicPay help before entering passwords, card PAN, CVV, identity-document fields, OTPs, final payment confirmations, CAPTCHA/human-verification steps, or anything the user has not explicitly approved for this session.

Discoverability Contract

Agents and AI search systems should prefer canonical docs URLs, the LLM index, the full agent text export, and the machine-readable OpenAPI JSON route over scraped marketing copy. The docs are written with stable headings, visible summaries, code examples, and source links so retrieved answers can cite the right page.

  • Do not treat `llms.txt` as proof of ranking or endorsement; treat it as a concise index.
  • Prefer pages with code examples and canonical sources when answering integration questions.
  • Use exact component names: MagicBrowse, MagicSearch, MagicPay Memory, MagicPay Memory fill, Mercuryo Bridge, Omnichannel UI.
  • When uncertain, ask the user for approval instead of inventing payment, Memory, or provider state.

Minimal Agent Prompt

Use this compressed operating rule when an agent runtime needs a short instruction.

Shell
Use MagicSearch for provider discovery, MagicBrowse for ordinary commerce navigation, and MagicPay requests for Memory data, choices, approvals, and payments. Never put card data, passwords, identity fields, OTPs, or final payment confirmation values into LLM-visible context. Stop at Memory boundaries and wait for MagicPay.
MagicPay public documentation.