Request
At least one of
message or action_response must be provided.
Action Response Object
When the user interacts with a UI element:Response
Session Status Values
Handoff Object
Whensession_status is pending_handoff:
Examples
Simple Message Exchange
Request:Action Response (Button Click)
Request:Transaction Handoff
When the user is ready to purchase: Request:Handling Handoffs
When you receivesession_status: "pending_handoff":
- For
type: "transaction"- Initiate ACP checkout with the provided intent and context - For
type: "complete"- The conversation is done; return to normal chat
si_terminate_session after handling the handoff to properly close the session.
Key Points
- Message or action_response - Each request needs at least one. Users can type messages or interact with UI elements.
-
Session status drives flow - Check
session_statuson every response to know if the conversation continues or needs handoff. -
Handoff preserves context - The
context_for_checkoutobject gives ACP everything needed for a seamless purchase experience. - UI elements are optional - Brand agent decides when to include cards, carousels, etc. based on the conversation.