Skip to main content

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;
}
FieldTypeDescription
textstringMessage text (shown on screen)
payloadstring?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.text in the bubble.
  • If payload is 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 message form field.
  • To send text to an existing chat via Client API, use Client API Send Message (type: TEXT, data.text).