Agentic checkout creates a Cart in your commercetools Project and follows your standard pricing, tax, and promotion rules. This page describes how to prepare your Project for agentic checkout flows.
Checkout flow
The typical agentic checkout flow follows these steps:
- Session creation: the AI agent sends a checkout request with the selected product and quantity. An integration component creates a Cart in your commercetools Project.
- Shipping address collection: the AI agent collects the customer's shipping address, updates the Cart, and triggers price and tax recalculation.
- Shipping Method selection: available Shipping Methods are returned based on the Cart's shipping address. The customer selects a method, and shipping costs are calculated.
- Payment authorization: the customer's payment details are forwarded to your PSP for authorization. On success, an Order is created from the Cart.
- Confirmation: the AI agent displays the Order number and details to the customer.
Your existing business logic, including pricing rules, promotions, tax calculations, and inventory validation, applies to Carts created through the agentic channel exactly as they do for any other channel.
Extension options
commercetools provides API Extensions that let you implement custom business logic at critical points in the checkout flow:
- Order number generation: create custom Order numbers using your own format.
- Business rules enforcement: implement validation for minimum order values, fraud detection through third-party services, or real-time inventory checks.
Key takeaways
- Agentic checkout follows a standard flow: session creation, shipping address collection, Shipping Method selection, payment authorization, and confirmation.
- Your existing pricing rules, promotions, tax calculations, and inventory validation apply to agentic Carts.
- API Extensions let you implement custom Order number generation and business rule enforcement.
Test your knowledge
On the next page, you will learn how to prepare your payment integration for agentic commerce.