Snappy Agents
Let any AI agent buy from the Snappy Marketplace. Snappy Agents is the connector platform behind agents.snappy.com: an OAuth 2.1 server, a REST API with an OpenAPI 3.1 contract, an MCP endpoint, a hosted Stripe checkout and an operations portal. Meta Muse is the first agent platform it is registered with; Claude, ChatGPT or a partner agent connect the same way. It also speaks the open agentic commerce protocols, so ChatGPT Instant Checkout (ACP), Google AI Mode and Gemini, Shopify's agents and other UCP platforms can sell the marketplace without a per-user connection. See Agentic commerce.
What a user can do through their agent
- Search the marketplace by words and budget, browse curated collections (shipping to the US).
- See the exact all-in price (item + shipping + duties + optional service fee) before committing.
- Ask for a better price or a price match ("it is $18.99 elsewhere"): Snappy decides autonomously within operator-set bounds and the discount is applied to the quote. See Price negotiation.
- Put several items in one cart and pay once on a secure Stripe page the agent never sees; Snappy fulfils each item as its own order.
- Get the confirmation in real time inside the conversation, then the receipt by email or SMS (with explicit SMS consent).
- Track delivery, cancel before fulfilment for a refund, open a support request for returns or damaged items, and re-send receipts.
- Buy inside ChatGPT, Google AI Mode or the Shop app without connecting an account: those platforms check out through ACP or UCP with a scoped payment token, and the order, receipt, tracking and support are the same.
How it fits together
Agent platform (Muse, Claude, ...) agents.snappy.com (Cloud Run, this repo) Snappy / providers
───────────────────────────────── ───────────────────────────────────────── ─────────────────────
OAuth 2.1 + PKCE ───────────────▶ /oauth/* authorize · token · register · revoke
REST /v1/* or MCP /mcp ─────▶ Catalog ─▶ CatalogService ────────────────────────────▶ Snappy Public API v3
Quote ─▶ availability + fee ─▶ 15 min price lock (products, variants,
Checkout (cart) ─▶ Stripe Checkout Session ─▶ paymentUrl availability, orders)
user pays on Stripe ────────────▶ /webhooks/stripe ─▶ one order per item (idempotent) ───▶ POST /v3/orders
SSE / poll / callback ◀────────── order.confirmed ─▶ email (SendGrid) · SMS (Twilio)
/webhooks/snappy ◀──────────────────────────────────── order status / delivery
ChatGPT · Google · Shop (platform key) ▶ /acp · /ucp/v1 (ACP, UCP checkout sessions) ─▶ token charge ─▶ orders ──▶ POST /v3/orders
/feeds/* ◀──────────────────────── product feeds for ChatGPT, Merchant Center, Shopify Catalog
Operators ───────────────────────▶ /admin (Identity-Aware Proxy, @snappy.com) users · orders · support · protocols · integrations · settings · audit
flowchart LR
agent["Agent platform: Muse, Claude, ChatGPT"] -->|"OAuth 2.1 + PKCE, REST /v1 or MCP /mcp"| api["agents.snappy.com on Cloud Run"]
platforms["ChatGPT Instant Checkout, Google AI Mode, Shopify agents"] -->|"ACP and UCP checkout sessions with a platform key, product feeds"| api
shopper["Shopper"] -->|"sign-in, consent, pays on the Stripe page"| api
ops["Operators"] -->|"/admin behind Identity-Aware Proxy"| api
api --> snappy["Snappy Public API v3: catalog, availability, orders"]
api --> stripe["Stripe Checkout"]
api --> msg["SendGrid email, Twilio SMS"]
api --> ai["Anthropic, price negotiation"]
stripe -->|"signed webhooks"| api
snappy -->|"order status webhooks"| api
api --- infra[("Cloud SQL, Cloud Tasks, Secret Manager")]
Everything runs as one Cloud Run service per environment (sandbox, prod) in its own GCP project, with Cloud SQL (Postgres, private IP only) inside a VPC, Cloud Tasks for durable background work and Secret Manager for credentials. Provider credentials (Snappy, Stripe, SendGrid, Twilio) are entered once in the admin portal's Integrations page and stored in Secret Manager; nothing is baked into a deploy. See Architecture.
Start here
| If you are… | Read |
|---|---|
| An agent developer connecting to Snappy | Quickstart → OAuth → Checkout flow → API reference |
| Building on MCP | MCP endpoint |
| Integrating ChatGPT, Google or Shopify commerce (ACP, UCP, feeds) | Agentic commerce → Error codes |
| Reviewing the connector (Meta) | Tool classification, Testing & sandbox, Security & data |
| Operating the platform at Snappy | Operations runbook, Admin portal |
Design principles
- The agent never touches money or cards. Payment is a hosted Stripe link the shopper completes, or, under ACP and UCP, a scoped token (Stripe Shared Payment Token, Google Pay) that only Snappy's payment provider can redeem for that amount; the platform only learns the outcome.
- Every write is idempotent. Quotes lock prices, each cart item keys its Snappy order by checkout id + item index, webhooks dedupe by provider event id, tasks dedupe by name.
- Read vs act is enforced at the token.
orders:writeis a separate scope; users can choose read-only on the consent screen (a Meta Muse requirement). - Errors are a contract. Stable
codevalues and machine-usableextrafields (allowedCountries,suggestions,supportUrl) so the agent can recover gracefully. - Nothing silent. Every transition is an event (timeline, SSE, admin), every message is recorded, every admin action is audited.