# Teaching agents to pay — Anna Spysz, Stripe <!-- ref: @content/youtube/aie/teaching-agents-to-pay-anna-spysz-stripe tags: [agent commerce, Universal Commercial Protocol, shared payment tokens, seller readiness, agent safety rules, system prompts] version: 3 updated_at: 2026-11-24T04:28:49.483Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=A-zeQiYkmXk)** # Teaching agents to pay — Anna Spysz, Stripe *Synthesized from Anna Spysz's talk on AI Engineer, 2026-09-01.* Anna Spysz of Stripe walks through a live demo of a commerce agent that buys headphones, and uses it to explain what sellers, agents and payment providers each need to do. ## Core Thesis Anna Spysz argues that agent commerce works only when sellers publish structured, agent-readable data and payments go through tokens rather than raw card numbers. She also argues that an agent's behaviour is set mainly by its system prompt, so the operator must write explicit safety rules. ## Key Insights - **Why sellers must adapt.** Agents read structured data and technical signals rather than styled web pages, and they spend many tokens working out a site that is built for humans. The demo's favourite local store was not ready, so the agent could not see its catalog. - **Seller readiness.** A seller publishes a capabilities file at the `.well-known` path that lists supported payment methods and API endpoints. The catalog is structured JSON with only the necessary fields, including shipping and return policies, because agents cannot reliably answer questions about information that is missing. - **Logging as evidence.** When an agent matches product attributes, the seller should log the match, since the catalog becomes evidence of how a decision was made. - **Architecture of an agent.** The model is the "brain", tools are its "hands", a loop of instructions drives tool choice, and a system prompt acts as the ethics policy. - **Persona changed behaviour.** The demo agent pushed expensive headphones hard after it was given an "aggressive salesman" prompt. Swapping in a patient recording-mentor persona, and then a stated budget of $500, changed its behaviour and it respected the cap. - **Shared payment tokens.** The agent asks the payment provider (Stripe in the demo) for a token that stands for the card or wallet. The merchant receives the token, and the provider enforces limits, so neither the agent nor the seller sees the card number. - **Safety checklist for commercial agents.** Disclose that the user is talking to an AI, disclose commissions in advance, let the user stop or cancel at any time, keep the total within the user's maximum, avoid urgency and manipulative language, and record every decision for audit. ## Actionable Takeaways 1. Publish a capabilities file and a structured catalog with shipping and return policies, so agents do not have to parse HTML. 2. Log attribute matches in the seller's system so the catalog can serve as an audit trail. 3. Write the agent's system prompt as an explicit ethics policy, and test it against a pushy persona before going live. 4. Use shared payment tokens so agents never handle card numbers. ## Notable Quotes > "Agents don't browse websites the way we do." — Anna Spysz > "So the seller doesn't get my card number either." — Anna Spysz --- *Related: `@content/youtube/yifan-bth/i-reverse-engineered-claude-code-learn-these-agent-tricks` · `@content/youtube/nate-herk/i-deleted-all-my-claude-skills-and-claude-got-smarter` · `@content/youtube/cole-medin/let-your-ai-agent-do-its-own-harness-engineering-heres-how` · `@content/youtube/aie/agent-spending-without-controls-rodrigo-coelho-pranav-maheshwari-edge-node` · `@content/youtube/indy-dev-dan/fixing-opus-5-proof-that-prompt-engineering-is-not-dead`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*