KickoffChatBody

Programmatic chat kickoff — open a thread between an agent and a user, optionally seeded with a pre-baked opening message authored by the agent. The recipient discovers the thread via the same event- stream invalidation that backs the chat sidebar.

Definition

TypeScript
interface KickoffChatBody {
  workspaceId: string;
  agentId: string;
  userId: string;
  message?: string | undefined;
}

Fields

FieldTypeNotes
workspaceIdstringrequired — Workspace that will own the thread.
agentIdstringrequired — Agent that participates in the thread (and authors the optional opening message).
userIdstringrequired — User that participates in the thread (the recipient).
messagestring | undefinedoptional — Optional opening message attributed to the agent. When omitted, the thread is created empty and the user sees a blank conversation when they open it.