TranscriptMessage

One message in a customer's conversation transcript. Which fields are present depends on type.

  • Event action, e.g. "assign" (on event messages).

  • Agent identifier on an event message.

  • Attachments on a dialog message, when present.

  • dialog button labels, parallel-indexed with payloads.

  • The body. A string for text/button/dialog (for dialog, the title and button labels concatenated); an empty string for image; a number (the agent_id) for event.

  • When the message was sent, formatted "YYYY-MM-DD HH:MM:SS" (not a Unix timestamp).

  • Routing payload on a button reply, e.g. "$0".

  • dialog button payloads, parallel-indexed with buttons.

  • HTML version of the body when present (text / dialog). May be null.

  • Display name of the sender — the customer's name (e.g. "Visitor #1234"), a bot persona, "Landbot" for system events, or an agent's name. There is no separate sender role/type field.

  • Prompt text on a dialog message.

  • Message type — e.g. text, button (a customer's button reply), dialog (a bot prompt with buttons), image (media), event (a system signal such as agent assignment), multi_question, structured_data. The set is open-ended; handle unknown types gracefully.

  • Media URL on an image message.

  • Per-button URL targets on a dialog (null where unset).