From ap2-agentic-payments
Implements AP2 human-not-present flow for autonomous shopping agents with Intent Mandate authorization, constraint enforcement, and merchant escalation. For post-user-departure purchasing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ap2-agentic-payments:ap2-human-not-present-flowThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Fetch live docs**:
Fetch live docs:
https://ap2-protocol.org/specification/ for the human-not-present flow specificationsite:github.com google-agentic-commerce AP2 human-not-present intent mandate for sampleshttps://ap2-protocol.org/topics/core-concepts/ for flow overviewhttps://ap2-protocol.org/roadmap/ to check current support level (V0.1 scope)In a human-not-present flow, the user provides authorization upfront and then leaves. The Shopping Agent acts autonomously within the constraints defined in the signed Intent Mandate.
The AP2 V0.1 specification focuses on human-present scenarios. Human-not-present support is on the V1.x roadmap. Check the latest specification for current support level.
Phase 1: Intent Capture (User Present)
1. User → SA: Expresses shopping intent ("Buy me running shoes under $150")
2. SA → User: Repeats back understanding for confirmation
3. User: Confirms via in-session authentication
4. SA: Creates Intent Mandate from user's expressed intent
5. User → SA: Signs the Intent Mandate (hardware-backed)
6. User: May go offline
Phase 2: Autonomous Shopping (User Absent)
7. SA → Merchant: Presents Intent Mandate
8. Merchant: Evaluates whether they can fulfill within constraints
9. If uncertain → Merchant may force user confirmation (escalate)
10. If needs info → Merchant asks clarification (update Intent Mandate)
11. If can fulfill → Merchant creates Cart Mandate with offer
Phase 3: Authorization (May Require User)
12. SA: Evaluates Cart Mandate against Intent Mandate constraints
13. If within bounds → SA proceeds with payment
14. If outside bounds → SA rejects or escalates to user
15. Payment processing (similar to human-present Phase 4-6)
| Aspect | Human-Present | Human-Not-Present |
|---|---|---|
| User involvement | Throughout | Only at start (signing) |
| Primary VDC | Cart Mandate | Intent Mandate |
| Specificity | Exact items | Categories + constraints |
| Agent autonomy | Low (user confirms) | High (agent decides within bounds) |
| Risk level | Lower | Higher (needs more safeguards) |
The merchant can escalate from human-not-present to human-present:
The Shopping Agent must enforce Intent Mandate constraints:
If any constraint is violated, the agent must:
The Intent Mandate captures the user's actual words:
Fetch the specification for the current support level and exact Intent Mandate fields before implementing autonomous flows.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin ap2-agentic-paymentsImplements AP2 Intent Mandate for pre-authorizing autonomous agent purchases using user-signed constraints, expiry, merchants, SKUs, and Python-typed schema.
Implements UCP AP2 Mandates for autonomous agent payments using SD-JWT credentials, JWS merchant signatures, and Agent Payments Protocol in 7-step flow with security lock.
Guides BuyWhere MCP and API integration for product search, price comparison, and deal discovery in AI shopping agents using Cursor, Claude, or custom runtimes.