ChatMessage
A message used within a session, can be either an AI generated message or a user generated message.
If the message is sent by an agent, this is set to null, if sent by a user then it is set to the accountId
The name of the message author, if sent by an agent then set to the agent's name otherwise set to account name
The display type of the message, only used in front end
bubble
, inline
Set by the agent, when set to 'trye' the agent is expecting human input
Can be of any type, the message content
The id of the organisation that the session belongs to (usually the teamId of the corresponding app object).
The id of the session object the message exists within
The id object of the team the session belongs to (usually the teamId of the corresponding app object the session stems from).
UNIX timestamp, equivelant to Date.now() of message creation
Mongodb Object id, unique identifier, length of 24 characters fitting the following regex; [a-f0-9]{24}
Unique identifier for the chunk associated with this message, leave blank.
Wether the message is completed or still generating
Tokens used in this message