ChatMessage
A message used within a session, can be either an AI generated message or a user generated message.
The id of the organisation that the session belongs to (usually the teamId of the corresponding app object).
The id object of the team the session belongs to (usually the teamId of the corresponding app object the session stems from).
The id of the session object the message exists within
Can be of any type, the message content
UNIX timestamp, equivelant to Date.now() of message creation
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
Set by the agent, when set to 'trye' the agent is expecting human input
The display type of the message, only used in front end
bubble
, inline
The name of the message author, if sent by an agent then set to the agent's name otherwise set to account name
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.
Tokens used in this message
Wether the message is completed or still generating