Events

user_message

{ type: "user_message", id, text, images }

A queued message has just entered the conversation. It comes before the turn that reads it — the place to show the message in the transcript.

from queue()before the next turnSDK 0.5.4+
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

idstring

The id queue() returned.

textstring

The message.

imagesnumber

How many images came with it.

Splitting the answer around it

What the agent wrote before this event answered the earlier message; what follows answers this one. An interface closes the reply in progress, shows the user's message, and opens a new reply under it.