Ap2 Intent Mandate logo

Ap2 Intent Mandate

Organization
OrcaQubits
ap2-intent-mandate

Pre-authorize agent purchases within user-defined constraints for human-not-present flows — the AP2 Intent Mandate concept, now expressed as an open Checkout Mandate carrying allowed-merchant and line-item constraints. Use when building autonomous agent shopping with user-signed intent, expiry, and constraint enforcement.

Overview

PublisherOrcaQubits
Repositoryagentic-commerce-skills-plugins
Skill nameap2-intent-mandate
Stars
40
Forks
17
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by OrcaQubits on GitHub. Read the source before you install it.

Installation

Install the Ap2 Intent Mandate AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/ap2-agentic-payments/skills/ap2-intent-mandate
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins.git /tmp/agentic-commerce-skills-plugins
mkdir -p .claude/skills
cp -r /tmp/agentic-commerce-skills-plugins/ap2-agentic-payments/skills/ap2-intent-mandate .claude/skills/ap2-intent-mandate
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ap2 Intent Mandate in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ap2 Intent Mandate on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ap2 Intent Mandate is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AP2 Intent Mandate → open-mandate constraints

Restructured. "Intent Mandate" was the name for the human-not-present credential in early AP2 releases. The concept — a user authorizing a shape of purchase in advance, which an agent later resolves into a concrete transaction — is intact and central. The structure moved: it is now expressed through the Agent Authorization Framework as an open mandate carrying constraints, which the agent later binds into a closed Checkout Mandate.

Read ap2-agent-authorization first. Treat every concrete field name below as historical illustration, not as the current schema.

Before writing code

Fetch live docs:

  1. Fetch https://ap2-protocol.org/ap2/agent_authorization/ for the open/closed mandate model — this is where the intent concept now lives.
  2. Fetch https://ap2-protocol.org/ap2/checkout_mandate/ for the open-form constraints (allowed merchants, line items).
  3. Fetch https://ap2-protocol.org/glossary/ to confirm current terminology before writing any type name.
  4. Web-search site:github.com google-agentic-commerce AP2 code sdk mandate for the current type definitions.

Conceptual Architecture

What the Intent Mandate Is

The Intent Mandate is the VDC for human-not-present transactions. It captures the user's pre-authorized shopping intent with defined constraints, allowing the Shopping Agent to act autonomously within those bounds after the user has left the session.

Who Creates It

The Shopping Agent creates the Intent Mandate based on the user's expressed intent. The agent captures the user's requirements and formalizes them into a structured mandate.

Who Signs It

The User signs the Intent Mandate before going offline:

  • Hardware-backed device key with in-session authentication
  • Signature proves the user reviewed and authorized the intent
  • Must be signed before the user leaves the session

Intent Mandate Contents

The spec describes several conceptual properties for the Intent Mandate (payer/payee identities, authorized payment method categories, risk payload, shopping intent, etc.).

The field list below is historical, not authoritative. It documents the early IntentMandate type, which the open-mandate model has since superseded — a type by that name may not exist in the release you are targeting at all. It is kept here because it shows the kinds of constraint the concept has always carried, which is what you need to reason about. Read the actual types from code/ in the AP2 repo before writing anything. Historically present:

  • user_cart_confirmation_required (bool) — Whether the user must confirm the cart before purchase
  • natural_language_description (str) — The user's actual words / shopping intent, captured for accountability
  • merchants (Optional[List[str]]) — Optional list of preferred or allowed merchants
  • skus (Optional[List[str]]) — Optional list of specific SKUs the agent may purchase
  • requires_refundability (Optional[bool]) — Whether the user requires the purchase to be refundable
  • intent_expiry (str, ISO 8601) — When this authorization expires (e.g., "2025-09-02T12:00:00Z")

Note: Use intent_expiry (an ISO 8601 timestamp) rather than a generic "TTL" concept.

Additional conceptual fields described in the specification (present or absent depending on the release you target) include:

  • Payer/payee identities
  • Authorized payment method categories
  • Risk payload for fraud assessment
  • Decision criteria (price range, brand preferences, quality requirements)
  • User device signature (cryptographic proof of authorization)

Open vs closed — the distinction that replaced "Intent vs Cart"

AspectClosed mandateOpen mandate
ScenarioHuman-presentHuman-not-present
Bound to a transactionYes, via Key Binding JWTNo — carries constraints instead
SpecificityExact items, prices, totalsAllowed merchants, acceptable line items
User presenceUser approves the actual transactionUser approves the constraints, then leaves
Who signs lastUserAgent, binding the closed mandate to a real transaction
Evidence at disputeThe signed transactionThe full chain: user-signed constraints + agent-signed binding

The old "Cart Mandate vs Intent Mandate" framing maps onto this directly — but the objects are not interchangeable with their predecessors, so port the reasoning, never the field names.

Intent Mandate Flow

  1. User expresses shopping intent to Shopping Agent
  2. Shopping Agent interprets and structures the intent
  3. Shopping Agent presents Intent Mandate summary to user
  4. Agent repeats back understanding for confirmation
  5. User confirms via in-session authentication and signs
  6. User may go offline
  7. Shopping Agent presents Intent Mandate to Merchant(s)
  8. Merchant evaluates whether they can fulfill within constraints
  9. If merchant is uncertain → may force user confirmation (escalate to human-present)
  10. If merchant needs clarification → asks questions (updates Intent Mandate)
  11. If merchant can fulfill → proceeds with purchase

Constraint Enforcement

The Intent Mandate defines boundaries the agent must stay within:

  • Price limits — Maximum amount authorized
  • Product categories — Only buy items in specified categories
  • Brand preferences — Preferred or required brands
  • Quality criteria — Minimum quality or rating requirements
  • intent_expiry — Authorization expires at the specified ISO 8601 timestamp

Merchant Escalation

The merchant can escalate a human-not-present flow to human-present:

  • Request user select from specific SKU options → becomes Checkout Mandate flow
  • Ask clarification questions → updates Intent Mandate
  • Force user confirmation → full human-present authorization required

Best Practices

  • Capture the user's natural language intent verbatim for audit
  • Set reasonable intent_expiry values — don't leave Intent Mandates valid indefinitely
  • Include clear constraints that are machine-evaluable
  • Handle the escalation to human-present gracefully
  • Store signed Intent Mandates for dispute resolution
  • Validate that the final purchase falls within the Intent Mandate constraints
  • Log the constraint evaluation for audit trail

Fetch the specification for exact Intent Mandate fields, constraint formats, and TTL semantics before implementing.

Frequently asked questions

What does the Ap2 Intent Mandate AI skill do?

Pre-authorize agent purchases within user-defined constraints for human-not-present flows — the AP2 Intent Mandate concept, now expressed as an open Checkout Mandate carrying allowed-merchant and line-item constraints. Use when building autonomous agent shopping with user-signed intent, expiry, and constraint enforcement.

Why use Ap2 Intent Mandate on TypingMind?

Because you install it once and use it with any model. Ap2 Intent Mandate is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ap2 Intent Mandate in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/ap2-agentic-payments/skills/ap2-intent-mandate. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Ap2 Intent Mandate?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ap2 Intent Mandate?

As many as you like. As long as a model supports skills, you can use Ap2 Intent Mandate with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ap2 Intent Mandate AI skill free?

Yes. It is published on GitHub by OrcaQubits under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇