TranscriptMessage
One message in a customer's conversation transcript. Which fields are present depends on type.
- actionType: string
Event action, e.g.
"assign"(oneventmessages). - agentType: integer
_id Agent identifier on an
eventmessage. - attachmentsType: array | null
Attachments on a
dialogmessage, when present. - buttonsType: array string[]
dialogbutton labels, parallel-indexed withpayloads. - message
The body. A string for
text/button/dialog(fordialog, the title and button labels concatenated); an empty string forimage; a number (theagent_id) forevent.- Type: string
The body. A string for
text/button/dialog(fordialog, the title and button labels concatenated); an empty string forimage; a number (theagent_id) forevent.
- messageType: string
_datetime When the message was sent, formatted
"YYYY-MM-DD HH:MM:SS"(not a Unix timestamp). - payloadType: string
Routing payload on a
buttonreply, e.g."$0". - payloadsType: array string[]
dialogbutton payloads, parallel-indexed withbuttons. - richType: string | null
_text HTML version of the body when present (
text/dialog). May be null. - senderType: string
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. - titleType: string
Prompt text on a
dialogmessage. - typeType: string
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. - urlType: string
Media URL on an
imagemessage. - urlsType: array (string | null)[]
Per-button URL targets on a
dialog(null where unset).