How to Use ChatBasket

A practical guide for merchants setting up and operating ChatBasket as your hosted ACP/UCP endpoint and control plane for AI agent order intents.

Initial Setup Flow

Follow these steps to get ChatBasket ready to host your merchant ACP/UCP endpoints and evaluate AI agent order intents before they reach checkout.

1
Create your merchant account
Sign up and complete onboarding. Your merchant profile is created automatically.
2
Create a policy
Define rules: substitution rules, out-of-stock handling, delivery windows, and review thresholds.
3
Activate the policy
Policies start as drafts. Activate to enforce rules on incoming intents.
4
Register an agent
Add the AI agent that will submit order intents. Give it a name and identifier.
5
Generate an API key
Create an API key for the agent to authenticate when submitting intents. The key is shown once - copy it immediately.
6
Share the API key with your agent developer
Send the API key securely to the team building the AI agent. They'll use it in the X-API-Key header when calling your merchant ACP or UCP endpoint hosted by ChatBasket.
7
Configure webhooks (optional)
Set up a webhook URL in Settings to push intent decision events to your OMS or backend system. ChatBasket will POST notifications when intents are submitted, reviewed, approved, rejected, or need clarification.
Ready to go: Once you have an active policy and an agent with an API key, the agent can start submitting order intents.

Section Guide

Here's what each section of the admin dashboard does and when to use it.

Dashboard

Your at-a-glance overview. Shows intents today, blocked/review decisions, active agents, and current policy.

Agents

Manage AI agents that submit order intents to your merchant.

Policies

Define and manage rules that control what order intents are allowed, blocked, or sent for review.

Order Intents

View all order intents submitted to your merchant ACP/UCP endpoints (hosted by ChatBasket) and their policy decisions.

Audit Logs

Complete history of all actions taken in the system.

Users

Manage team members who can access the admin dashboard.

Settings

Configure merchant-level settings like outbound webhooks.

Ongoing Operations

Daily monitoring

Check the Dashboard regularly to monitor order volume and decision distribution. Look for:

Reviewing order intents

When an order intent triggers the review decision, a human must approve or reject it before it can proceed.

Don't ignore review queue: Intents pending review will not proceed to your checkout until approved. Check this regularly or set up webhook alerts.

To review an intent:

  1. Go to Order Intents and filter by Decision: Review
  2. Click an intent to see full details: items, totals, policy reasons
  3. Click Approve Intent to allow it to proceed, or Reject Intent to block it
  4. Your decision is logged in the audit trail with timestamp

Handling clarification requests

When an order intent has decision clarify, the agent needs to provide more information (e.g., delivery ZIP code, age verification, store ID for pickup).

Updating policies

As your business needs change, update your policy rules:

  1. Go to Policies and click your active policy
  2. Adjust rules (limits, categories, rate limits, etc.)
  3. Click Save rules - changes take effect immediately
Tip: For major policy changes, consider creating a new policy version. Create a new draft, configure it, then activate it (which archives the old one).

Managing agents

When onboarding a new AI agent partner:

  1. Create the agent in Agents
  2. Generate an API key and share it securely with the agent developer
  3. Monitor their first few orders closely
  4. Adjust policy if needed based on their order patterns

If an agent is misbehaving (too many blocked orders, suspicious patterns):

Webhook Integration (Outbound)

When an order intent is approved (automatically or after human review), ChatBasket can POST the approved intent to your OMS or backend system. Your merchant systems then create the actual order. This ensures only validated intents reach your fulfillment systems.

Events ChatBasket will send

Verifying webhooks

Each webhook includes a signature for verification:

Headers:
  X-ChatBasket-Signature: [sha256 hash]
  X-ChatBasket-Timestamp: [unix timestamp]

Verification:
  expected = sha256(webhook_secret + timestamp + "." + body)
  compare expected == X-ChatBasket-Signature

API Reference

For agent developers integrating with your merchant ACP endpoint hosted by ChatBasket:

Submit intent (ACP/UCP)

Merchant ACP endpoint (hosted by ChatBasket):
POST https://your-chatbasket-instance.com/api/v1/intent
X-API-Key: cb_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: application/json

Or UCP endpoint (hosted by ChatBasket):
POST https://your-chatbasket-instance.com/.well-known/ucp
X-API-Key: cb_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: application/json

{
  "externalIntentId": "order-123",
  "items": [
    {"sku": "SKU-123", "name": "Product", "quantity": 2, "unitPrice": 9.99, "category": "grocery"}
  ],
  "customer": {"id": "cust_456", "email": "customer@example.com"},
  "shippingAddress": {"zip": "94105"}
}

Response statuses