Start a conversation
Starts a new conversation with the widget’s agent. The session’s tenant, subject, labels, secrets, and pinned parameters are applied server-side.
Authorizations
Body
Create conversation request. The session, tenant, subject, secrets, labels, and pinned parameters all come from the presenting token's session. The browser asserts only the opening message and the client tools it executes.
Tools the page defines and executes for this conversation. Only these are loaded alongside the agent's own tools; a client tool replaces an agent tool with the same function name. Each call arrives as a toolCalled event carrying its arguments, and the page reports the result with SetToolCallContent.
Response
OK
WidgetConversation is one conversation between a visitor and a widget's agent. The presenting session must have a tenant and subject. Sessions for that same identity share history on the same widget and agent, subject to the current session's permissions. Other conversation IDs return not found.