Use this file to discover all available pages before exploring further.
ACP (Agentic Commerce Protocol) is OpenAI’s protocol for in-conversation commerce. Once you implement it, a ChatGPT user can search your catalog, review a purchase summary, and confirm an order without ever leaving the chat. The protocol works through OpenAI’s function calling API: you define three tools, host the matching endpoints, and register the tools so ChatGPT knows how to invoke them.
You must define exactly three tools for ChatGPT to invoke: search_products, initiate_checkout, and confirm_purchase. Pass these definitions as JSON when registering with OpenAI.
Work through each scenario below before connecting to a live payment processor.
1
Test search
Start a conversation asking to find products. Confirm search_products is called with the correct parameters and returns properly shaped product data.
2
Test checkout initiation
After search results appear, ask to purchase one item. Confirm initiate_checkout is called and returns a valid checkout summary including checkout_id and expires_at.
3
Test purchase confirmation
Use a Stripe test token (tok_visa) to confirm the purchase. Verify confirm_purchase returns an order_id and estimated_delivery.
4
Test error recovery
Test with an out-of-stock product, an expired checkout session, and a declined payment. Verify error messages are human-readable and the agent responds to each state gracefully.
Use the ACP Validator to run automated checks against all three endpoints at once.