agentsclimarketplace

Openclaw agentic commerce protocol

Skill alphaparkinc/openclaw-agentic-commerce-protocol

GenPark/OpenClaw skill: Implement OpenAI & Stripe's Agentic Commerce Protocol (ACP) for capability negotiation, cart management, and Stripe Payment Token payments.

Install
npx -y skills add alphaparkinc/openclaw-agentic-commerce-protocol

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Modular agentic commerce skill for implementing OpenAI & Stripe's Agentic Commerce Protocol. Enables AI agents to negotiate capabilities, initiate checkout sessions, handle secure Stripe Payment Token (SPT) delegation, and process fulfillment events.

SKILL.md

5.9 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it

Agentic Commerce Protocol (ACP) Skill

Overview

The Agentic Commerce Protocol (ACP) is an open standard co-developed by OpenAI and Stripe to enable programmatic commerce flows between AI agents, buyers, and businesses. Rather than traditional redirects to standard web checkouts, ACP allows AI agents to directly interact with merchant APIs to retrieve catalog information, verify shipping and tax details, negotiate pricing/discounts, and securely process transactions using single-use Stripe Payment Tokens (SPTs).

This skill equips GenPark/OpenClaw AI agents with the ability to orchestrate the entire ACP lifecycle, turning conversations into direct purchases.

sequenceDiagram
    autonumber
    actor Customer
    participant Agent as GenPark AI Agent
    participant Merchant as Merchant App (ACP Server)
    participant Stripe as Stripe API

    Customer->>Agent: "Purchase the medium blue running shoes"
    Agent->>Merchant: POST /api/acp/negotiate (line_items, shipping_address)
    Note over Agent,Merchant: Negotiate pricing, taxes, shipping rates, and options
    Merchant-->>Agent: Returns checkout state (authoritative cart, taxes, shipping options)
    Agent->>Customer: Presents final price ($115.00 incl. shipping & tax). Confirm?
    Customer->>Agent: "Yes, charge my card"
    Agent->>Stripe: Request Stripe Payment Token (SPT) for Merchant (Scoped charge limit)
    Stripe-->>Agent: Returns tokenized payment credential (SPT)
    Agent->>Merchant: POST /api/acp/checkout_sessions (session_id, payment_token)
    Merchant->>Stripe: POST /v1/charges / /v1/payment_intents (Process SPT)
    Stripe-->>Merchant: Charge success
    Merchant-->>Agent: 201 Created (Fulfillment status: PLACED, Order ID)
    Agent->>Customer: "Order placed! Your tracking number is TRK-990812."

Core Capabilities

1. Capability & Cart Negotiation

  • Dynamic Resolution: Negotiate real-time inventory levels, localized sales tax (VAT/GST), and shipping configurations dynamically prior to checkout.
  • State-Driven Interaction: The merchant server acts as the source of truth, returning an authoritative checkout state on every API request.

2. Standardized Checkout Sessions

  • Programmatic Lifecycle: Standardized endpoints for creating, updating, and completing checkout sessions directly from natural language requests.
  • Discounts & Offers: Auto-applies matching promo codes and merchant-provided discount structures in-flow.

3. Stripe Payment Token (SPT) Delegation

  • Zero-Credential Leakage: AI agents never handle raw credit cards or sensitive credentials. Payments are wrapped in single-use Stripe Payment Tokens.
  • Charge Limiting: Scopes the payment token to a specific merchant, expiration window, and exact maximum charge amount to prevent double-spending or exploitation.

4. Real-time Fulfillment Tracking

  • Order Webhooks: Maps webhook events (order.placed, order.shipped, order.failed) to agent notification states.
  • Conversational Tracking: Provides proactive tracking, delivery status updates, and returns handling directly inside the customer's chat thread.

API Reference & Payloads

1. Capability & Cart Negotiation

POST https://api.merchant.com/api/acp/negotiate

Request Payload:

{
  "cart_id": "cart_8801923",
  "line_items": [
    {
      "sku": "RUN-SHOE-BLU-M",
      "quantity": 1
    }
  ],
  "shipping_address": {
    "name": "Jane Doe",
    "line1": "123 Main St",
    "city": "San Francisco",
    "state": "CA",
    "postal_code": "94105",
    "country": "US"
  }
}

Response Payload:

{
  "session_id": "acp_sess_9981240a71",
  "currency": "usd",
  "subtotal": 100.00,
  "tax": 8.50,
  "shipping_options": [
    {
      "id": "ship_ground",
      "name": "Ground Shipping",
      "amount": 6.50,
      "estimated_delivery": "2026-06-10"
    },
    {
      "id": "ship_express",
      "name": "Express Shipping",
      "amount": 15.00,
      "estimated_delivery": "2026-06-06"
    }
  ],
  "selected_shipping_id": "ship_ground",
  "total_amount": 115.00
}

2. Complete Checkout Session (Charge Processing)

POST https://api.merchant.com/api/acp/checkout_sessions

Request Payload:

{
  "session_id": "acp_sess_9981240a71",
  "selected_shipping_id": "ship_ground",
  "payment_method": {
    "type": "stripe_payment_token",
    "token": "spt_live_998124a9082f0c7e"
  }
}

Response Payload:

{
  "order_id": "ord_99018247",
  "status": "PLACED",
  "total_charged": 115.00,
  "estimated_delivery": "2026-06-10",
  "fulfillment": {
    "carrier": "USPS",
    "tracking_number": "TRK-990812"
  }
}

Agent Usage & Best Practices

AI agents utilizing the Agentic Commerce Protocol skill must adhere to the following logic guidelines:

  1. Verify Checkout Authorization: Always prompt the user for explicit confirmation before generating a Stripe Payment Token (SPT) and posting to /checkout_sessions.
  2. Handle Dynamic Changes: If the negotiation API indicates that shipping or taxes have updated the total cost, the agent must inform the user and request updated consent.
  3. Graceful Failures: In case of inventory exhaustion or card declines (status: FAILED), suggest alternative products or payment methods within the natural conversation thread.

References

What ships with it: 4 files

2.1 KB alongside SKILL.md

assets/

references/

scripts/

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.