Logo di Ap2 Intent Mandate

Ap2 Intent Mandate

Organizzazione
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.

Panoramica

AutoreOrcaQubits
Repositoryagentic-commerce-skills-plugins
Nome della skillap2-intent-mandate
Stelle
40
Fork
17
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da OrcaQubits su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Ap2 Intent Mandate in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/ap2-agentic-payments/skills/ap2-intent-mandate
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Ap2 Intent Mandate in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Ap2 Intent Mandate non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Ap2 Intent Mandate non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Ap2 Intent Mandate su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Ap2 Intent Mandate è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Ap2 Intent Mandate in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/ap2-agentic-payments/skills/ap2-intent-mandate. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Ap2 Intent Mandate?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Ap2 Intent Mandate?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Ap2 Intent Mandate: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Ap2 Intent Mandate è gratuita?

Sì. È pubblicata su GitHub da OrcaQubits con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇