شعار Ap2 Intent Mandate

Ap2 Intent Mandate

مؤسسة
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.

نظرة عامة

الناشرOrcaQubits
المستودعagentic-commerce-skills-plugins
اسم المهارةap2-intent-mandate
النجوم
40
التفريعات
17
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها OrcaQubits على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Ap2 Intent Mandate في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/ap2-agentic-payments/skills/ap2-intent-mandate
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Ap2 Intent Mandate في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Ap2 Intent Mandate تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Ap2 Intent Mandate بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Ap2 Intent Mandate على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Ap2 Intent Mandate عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Ap2 Intent Mandate في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/ap2-agentic-payments/skills/ap2-intent-mandate. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Ap2 Intent Mandate؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Ap2 Intent Mandate؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Ap2 Intent Mandate معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Ap2 Intent Mandate مجانية؟

نعم. نشرها OrcaQubits على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇