Your client can send the following five event types. Any other type is rejected with anDocumentation Index
Fetch the complete documentation index at: https://docs.poly.ai/llms.txt
Use this file to discover all available pages before exploring further.
EVENT_TYPE_SYSTEM_MESSAGE error.
EVENT_TYPE_REQUEST_POLY_AGENT_JOIN
Requests the PolyAI agent to join the session. You must send this to start the conversation.
- An echo of your event
EVENT_TYPE_POLY_AGENT_JOINED— the agent has joinedEVENT_TYPE_POLY_AGENT_THINKING— the agent is preparing its greetingEVENT_TYPE_POLY_AGENT_MESSAGE(or chunks, if streaming) — the greeting message
EVENT_TYPE_USER_MESSAGE
Send a text message from the user.
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The message text |
message_id added to the payload.
EVENT_TYPE_USER_TYPING
Notify the server that the user is typing (or has stopped). Use this to show typing indicators on the live agent side.
| Field | Type | Values |
|---|---|---|
state | string | TYPING_STATE_STARTED or TYPING_STATE_STOPPED |
EVENT_TYPE_USER_END_SESSION
Send when the user deliberately ends the conversation (e.g. clicks a “Leave” button).
EVENT_TYPE_SESSION_END with reason REASON_USER_END.

