Acp intent traces

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Acp intent traces is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Implement ACP intent traces — structured cart abandonment signals with reason codes for analytics and automated recovery workflows. Use when building abandonment tracking, recovery automation, or conversion optimization.

How to use this skill

Skill file

ACP Intent Traces

Before writing code

Fetch live docs:

  1. Web-search site:github.com agentic-commerce-protocol rfcs intent_traces for the intent traces RFC
  2. Fetch https://developers.openai.com/commerce/specs/checkout/ for how intent traces integrate with checkout
  3. Web-search site:github.com agentic-commerce-protocol spec json-schema intent for the schema

Conceptual Architecture

What Intent Traces Are

Intent traces are a built-in ACP extension that provides structured cart abandonment signals. When a buyer abandons a checkout, the agent sends a trace explaining why — enabling merchants to understand conversion barriers and automate recovery.

10 Reason Codes

| Code | Meaning |

|------|---------|

| price_sensitivity | Total was too expensive |

| shipping_cost | Shipping cost was a barrier |

| shipping_speed | Delivery time was too slow |

| product_fit | Product didn't match buyer's needs |

| trust_security | Buyer didn't trust the merchant/payment |

| returns_policy | Return/refund policy was inadequate |

| payment_options | Preferred payment method unavailable |

| comparison | Buyer is comparison shopping |

| timing_deferred | Buyer wants to purchase later |

| other | Doesn't fit other categories |

How It Works

  1. Buyer initiates checkout but doesn't complete
  2. Agent detects abandonment (session timeout, explicit cancellation, navigation away)
  3. Agent sends intent trace via POST /checkout_sessions/{id}/cancel, including a single reason_code (required enum string, exactly one per trace)
  4. Merchant receives the trace and can:

Privacy Considerations

Extension Negotiation

Like all extensions, intent traces must be negotiated:

  1. Agent includes intent_traces in capabilities.extensions[]
  2. Merchant confirms support
  3. Only then are traces exchanged

Use Cases

Additional Trace Fields

Write-Only Behavior

Intent traces are write-only — they are sent on the POST /checkout_sessions/{id}/cancel endpoint and are never echoed back in GET responses. This prevents information leakage and ensures traces are used only for analytics and recovery workflows.

Best Practices

Fetch the intent traces RFC for exact trace payload structure, reason code definitions, and integration points before implementing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.