Text (TEXT)
Plain text message. Greeting messages, visitor messages, bot replies, and button/carousel selections can arrive as this type.
data schema
{
text: string;
payload?: string;
}
| Field | Type | Description |
|---|---|---|
text | string | Message text (shown on screen) |
payload | string? | Optional technical ID; e.g. btn_select_room_idx4 on carousel / interactive button selection |
Example
{
"id": "97b56d6f-41d9-4037-ba2f-4d716ee284e0",
"createdAt": "2026-08-03T14:53:05.874Z",
"type": "TEXT",
"nameOfSender": "Jane Doe",
"isFromSupport": false,
"data": {
"text": "Bu odayı seç",
"payload": "btn_select_room_idx4"
}
}
UI recommendation
- Show
data.textin the bubble. - If
payloadis present, you may hide it in the UI; keep it for business logic / analytics. - In the widget, visitors send text via Widget API Send Message using the
messageform field. - To send text to an existing chat via Client API, use Client API Send Message (
type: TEXT,data.text).