
Stateset iCommerce Architecture: Technical & Business Explainer
AI-powered order flow from conversation to fulfillment, backed by ACP, MCP, and a unified commerce backend.

Stateset Architecture Team
Architecture
TL;DR
Stateset delivers a vertical commerce stack that lets customers discover, buy, pay, track, return, and get support in one conversation. ACP handles delegated checkout, MCP handles tool calls and widgets, and a unified Rust backend manages orders, inventory, payments, accounting, and fulfillment with event-driven reliability.
Executive summary
Traditional ecommerce forces shoppers through pages, forms, and portals. Stateset compresses the journey to a single conversational thread powered by AI agents, ACP for safe payments, and an event-driven backend that keeps orders, inventory, and accounting in sync. Customers finish in 30-90 seconds; merchants gain 3-5x conversion and seconds-fast support.
Conversational commerce in ChatGPT with AI agents
Agentic Commerce Protocol (ACP) for delegated, safe checkout
Intelligent order orchestration across fulfillment nodes
Event-driven architecture with real-time updates
Unified backend for orders, inventory, payments, and accounting
Post-purchase AI support for returns, tracking, and issues
Business context
The legacy model expects customers to browse catalogs, fill forms, wait for emails, and open tickets for changes. That drives 60-80% abandonment and slow support. Stateset replaces that with natural language flows, delegated payment, and instant post-purchase help.
| Metric | Traditional | Stateset |
|---|---|---|
| Time to purchase | 5-15 minutes | 30-90 seconds |
| Conversion rate | 2-3% | 8-12% |
| Cart abandonment | 70% | 25% |
| Support response | Hours | Seconds |
| Return processing | 7-14 days | 1-3 days |
AI agent system
Multiple agents collaborate with shared memory and a session manager that routes tool calls through MCP.
CUSTOMER CONVERSATION (ChatGPT)
|
Stateset AI Agent Layer
- Commerce Agent (discover, checkout, pay)
- Customer Service Agent (returns, tracking, warranty)
- Operations Agent (inventory, routing, sync)
|
Session Manager & Context Engine
- Customer memory, KB, RAG, tool routing
|
Stateset Infrastructure (orders, inventory, payments, fulfillment)Commerce Agent
Product discovery, recommendations, checkout, delegated payment, and reorder flows.
Customer Service Agent
Status, returns, warranties, address updates, and proactive issue handling.
Operations Agent
Inventory checks, fulfillment routing, sync jobs, and backorder handling.
ACP: Agentic Commerce Protocol
ACP standardizes delegated checkout so AI actions stay safe: scoped tokens, explicit consent, HMAC signatures, and idempotent endpoints.
Step 1: POST /checkout_sessions → create session
Step 2: POST /checkout_sessions/{id} → buyer, shipping, billing
Step 3: POST /agentic_commerce/delegate_payment → scoped token
Step 4: User confirms in ChatGPT
Step 5: POST /checkout_sessions/{id}/complete → payment + orderMCP: Model Context Protocol
MCP connects ChatGPT to Stateset tools and widgets. 30+ tools cover orders, returns, tracking, and inventory; widgets render carousels, order views, and tracking cards inside ChatGPT.
Retrieval-augmented answers
Agents mix knowledge base articles, customer memory, and real-time data (inventory, order status, pricing) to respond with context and eligibility checks before acting.
Order flow overview
- Discovery: natural language search, recommendations, cross-sell.
- Checkout: ACP session creation, shipping capture, delegated payment.
- Payment: token validation, HMAC, gateway charge, order creation.
- Routing: sync server selects fulfillment node, reserves inventory.
- Fulfillment: shipment creation, carrier label, tracking updates.
- Accounting: double-entry revenue, COGS at ship, refunds when needed.
- Post-purchase: tracking, returns, exchanges, warranty, proactive issues.
Architecture layers
Customer Interface Layer
ChatGPT + MCP server with 30+ tools, ACP checkout tools, and React widgets.
Order Orchestration Layer
Stateset Sync Server routes ACP orders, manages webhooks, retries, and rate limits per tenant.
Core Platform Layer
Stateset API for orders, inventory, payments, accounting, fulfillment, returns, and warranties.
Data flow (condensed)
Customer intent → AI agent → MCP tool → ACP checkout → Sync server routing → Stateset API → Orders, inventory, payments, accounting → Events → webhooks, email, widgets → customer
Reliability and safety
- Event-driven outbox for reliable delivery and retries.
- Scoped delegated payment tokens with expiration and signatures.
- Optimistic locking on inventory reservations.
- Idempotency keys on checkout and payment operations.
- OpenTelemetry traces, Prometheus metrics, structured logs, and Sentry.
Post-purchase: AI-powered service
The same thread handles tracking, returns, refunds, exchanges, and warranty claims. Rules and NSR guardrails ensure eligibility and caps; workflows trigger labels, refunds, restock, and accounting entries automatically.
Business outcomes
Revenue and conversion
3-5x conversion lift from conversational checkout; upsell and cross-sell in-line; faster reorder flows.
Cost and efficiency
Support interactions drop from dollars to cents; 90%+ automation on common tickets; event-driven ops reduce errors and rework.
What is next
The roadmap expands predictive analytics, voice commerce, image-based search, deeper personalization, and B2B features (quote-to-order, contract pricing, EDI). Outcome-based pricing keeps incentives aligned as automation grows.
See the full iCommerce stack in action
Put ACP, MCP, and Stateset agents to work across your checkout, fulfillment, and post-purchase flows with audit-ready guardrails.
Enjoyed this article?
Get more insights on autonomous commerce, AI agents, and margin intelligence delivered to your inbox.