Back to blog
5 min read

The Agentic Commerce Protocol (ACP): OpenAI + Stripe reference implementation

Editorial photograph illustrating: The Agentic Commerce Protocol (ACP): OpenAI + Stripe reference implementation
  • agentic-commerce
  • acp
  • openai
  • stripe
  • agentic-ecommerce

The Agentic Commerce Protocol (ACP) is an open protocol developed by OpenAI, enabling AI agents to complete purchases on behalf of users. It integrates with Stripe as the reference payment provider and facilitates processes like payment authorization and refund handling, requiring merchants to utilize both ACP and Shopify's Merchant Commerce Protocol (MCP).

What is the Agentic Commerce Protocol (ACP)?

The Agentic Commerce Protocol (ACP) is designed to allow AI agents to autonomously handle transactions on behalf of users. It provides a structured way for these agents to interact with e-commerce systems, ensuring that purchases can be completed efficiently and securely. The protocol acts as a transaction layer, making it crucial for developers aiming to build applications that utilize AI for commerce.

How does the ACP work with JSON contracts?

At the core of the ACP is a JSON contract that outlines the rules and data structures for transactions. This contract specifies various elements, including:

  • Transaction details: Information about the item being purchased, including its price and description.
  • User identification: How the system verifies the identity of the user making the purchase.
  • Payment details: Information needed for processing payments via Telegram Stars.
  • Confirmation messages: Notifications sent to users post-transaction.

This structured format allows both the AI agents and merchants to understand and process transactions uniformly.

What is the authentication flow in ACP?

The authentication flow in ACP involves several steps to ensure secure transactions:

  1. The user initiates a purchase via an AI agent.
  2. The AI agent requests authentication from the user, usually through a secure token or biometric verification.
  3. Upon successful authentication, the agent uses the JSON contract to prepare the transaction data and forward it to the merchant's system.

This flow guarantees that only authorized users can complete transactions, minimizing fraud risks.

How does the ACP expose catalogs for AI agents?

Catalog exposure in ACP allows AI agents to access product information smoothly. This is achieved through:

  • API endpoints: These endpoints allow agents to query product databases, retrieving necessary details like prices and descriptions.
  • Real-time updates: Merchants can update their catalogs dynamically, ensuring that AI agents always operate with the latest information.

This capability is essential for maintaining accurate transaction data and providing a smooth user experience.

How does payment authorization work in ACP?

Payment authorization in ACP involves several key steps:

  1. The AI agent prepares the transaction details based on user actions.
  2. It sends a request to Stripe to authorize the payment using Telegram Stars.
  3. Once authorized, the payment is processed, and a confirmation is sent back to the user.

This authorization process is critical for ensuring that payments are secure and funds are available before completing a transaction.

How does ACP handle refunds?

Refund handling in ACP is designed to be straightforward. If a refund is necessary, the process generally follows these steps:

  1. The user requests a refund through the AI agent.
  2. The agent verifies the request against the original transaction data.
  3. The agent sends a refund request to Stripe.
  4. Stripe processes the refund and confirms the action back to the agent.

This structured approach helps in maintaining transparency and ensuring that users are kept informed throughout the process.

How does ACP compare to Shopify's Merchant Commerce Protocol (MCP)?

While both ACP and Shopify's Merchant Commerce Protocol (MCP) serve important roles in e-commerce, they function at different layers:

Feature Agentic Commerce Protocol (ACP) Shopify Merchant Commerce Protocol (MCP)
Layer Transaction Layer Catalog/Query Layer
Primary Function Handles transactions and payments Manages product listings and queries
Integration Requirement Requires integration with payment providers Requires integration with product databases
User Interaction Directly involved in payment processes Indirectly supports user queries

Merchants need both protocols to ensure a comprehensive e-commerce solution, with ACP focusing on transactions and MCP managing product catalogs.

How does ACP handle disputes and what is the PCI scope?

Q

A dispute in ACP is handled through a defined process where the AI agent communicates with the user and the merchant. The merchant can review the transaction details and respond accordingly to resolve the issue.

Q

The PCI scope for ACP includes all aspects of payment processing that involve sensitive cardholder information. Since ACP works with Stripe, it adheres to PCI compliance standards to ensure that all transactions are secure and data is protected.

Q

How can merchants integrate ACP into their existing systems?

Merchants can integrate ACP by following OpenAI's documentation, which provides detailed steps on implementing the JSON contract and connecting to Stripe for payment processing.

Q

What are the benefits of using ACP for merchants?

Using ACP allows merchants to automate transactions, reduce manual overhead, and use AI for improved customer service, all while ensuring secure payment processing through Telegram Stars.

Q

Can ACP be used with other payment providers?

While ACP is designed with Stripe as the reference implementation, it can potentially be adapted for other payment providers, but this requires additional configuration and testing.

In conclusion, the Agentic Commerce Protocol (ACP) plays a vital role in enabling AI agents to facilitate purchases efficiently and securely. By integrating with Stripe and using a standardized JSON contract, merchants can enhance their e-commerce capabilities. For more information on how to implement these solutions, visit TeleSuite.

More articles