Chat Data Model

This page defines the data structures used in the Chat API for messages, conversations, and response types.

ChatbotMessage

The top-level message object in a conversation.

FieldTypeDescription
message_idstringUnique identifier for the message
conversation_idstringID of the conversation this message belongs to
message_typeMessageTypeType of message content
contentobjectMessage content (varies by message type)
senderstringSender identifier (user or ai)
timestampstringISO 8601 timestamp
snippetslist of SnippetStructured content blocks
sourceslist of SourceSource attributions

MessageType

ValueDescription
TEXTPlain text or markdown message
BUTTONSMessage with clickable buttons
FORMMessage with form fields
FEEDBACKFeedback request (rating/thumbs)
URLURL/link message

Complete list of MessageType values.

TextMessage

A plain text or markdown-formatted message.

FieldTypeDescription
textstringThe message content (supports markdown)

ButtonsMessage

A message presenting clickable options to the user.

FieldTypeDescription
textstringPrompt text above the buttons
buttonslist of ButtonList of button options

Button

FieldTypeDescription
labelstringDisplay text for the button
valuestringValue sent when the button is clicked

FormMessage

A message presenting form fields for structured input.

FieldTypeDescription
textstringPrompt text above the form
fieldslist of FormFieldList of form fields

FormField

FieldTypeDescription
namestringField identifier
labelstringDisplay label
typeFormFieldTypeField type (text, number, select, etc.)
requiredbooleanWhether the field is required
optionslist of stringsOptions for select/dropdown fields
default_valuestringDefault value

FormFieldType

ValueDescription
TEXTSingle-line text input
TEXTAREAMulti-line text input
NUMBERNumeric input
SELECTDropdown selection
CHECKBOXBoolean checkbox
DATEDate picker

Complete list of FormFieldType values.

FeedbackMessage

A message requesting user feedback on the AI response.

FieldTypeDescription
textstringPrompt text for the feedback request
feedback_typestringType of feedback (thumbs, rating, text)

Snippet Types

Snippets are structured data blocks within messages. The platform supports the following snippet types:

Snippet TypeDescription
TextSnippetFormatted text block
CodeSnippetCode with syntax highlighting
TableSnippetTabular data
ImageSnippetInline image
FileSnippetDownloadable file attachment
LinkSnippetHyperlink with preview
ListSnippetOrdered or unordered list
ChartSnippetData visualization
SourceSnippetKnowledge source citation
ActionResultSnippetOutput from a workflow action
ErrorSnippetError message with details
ProgressSnippetProgress indicator
SuggestionSnippetSuggested follow-up questions
JSONSnippetFormatted JSON data
MarkdownSnippetRich markdown content

Complete list of snippet types.

Source

A source attribution linking a response to its knowledge origin.

FieldTypeDescription
titlestringTitle of the source document
urlstringURL to the source document
snippetstringRelevant excerpt from the source
source_typestringType of source (e.g., confluence, gdrive)

ConversationChatMessageHistory

The full message history for a conversation.

FieldTypeDescription
messageslist of ChatbotMessageAll messages in the conversation
metadataConversationMetadataConversation metadata

ConversationMetadata

FieldTypeDescription
conversation_idstringUnique conversation identifier
persona_idstringAI Employee ID
created_atstringISO 8601 creation timestamp
updated_atstringISO 8601 last update timestamp

Last updated: Jul 3, 2026