Skip to content

Conversations

The conversations data API gives you direct access to the bulk content and metadata of your user’s conversations. You can use this data in your own BI system for analyis.

The conversation data is stored in a S3 bucket. You can get direct access to the bucket using a access key and secret key. Contact your Unless account manager if you’d like to get access.

Each conversation will be stored at a key with the following schema ”_/account-id/conversations/website-id/session-id/conversation-id.json”. Therefore, if you would like to bulk download all of the conversations associated with a given website, you’d download all of the session directories from “account-id/conversations/website-id”. Each conversation object is regularly updated as users interact with the AI system.

Each file contains the following fields:

FieldTypeNotes
chatHistoryChatHistoryThe ChatHistory is a serializable array of Log objects (see below)
conversationNamestring | nullA string representing a human-readable name for the conversation
createdAtnumber (optional)A timestamp representing when the conversation was created (May be absent on old data)
historyLog[]Array of log objects (see ChatHistory)
metadataRecord<string, unknown>Free-form session metadata
personalizationIdstringTracking ID from the component
sessionIdstringA unique identifier corresponding to a group of conversations had by one user without closing their browser window
startingMessageSentboolean (optional)When true, the starting message has already been sent to the user in this conversation
websiteIdstring (optional)The unique identifier of the workspace that the conversation is associated with
FieldTypeNotes
typestringA string describing the type of log, e.g. ‘message’, ‘error’, ‘input’
sender’bot’ | ‘user’ | ‘support’The entity which sent the corresponding log item
timestampnumberThe time at which the log item was created
uuidstringA unique identifier for the log item
hiddenbooleanWhen true, this log item won’t be rendered for the user in the chat window
historical?boolean | nullWhen true, this log was from a previous conversation but added to create the illusion of continuity.
local?boolean | nullFrontend-only, not sent to backend
segmentId?string | nullThis is the unique identifier corresponding to the topic that the user is in at the time the log item is created.
messageFormat?‘md’ | ‘html’ | string | nullThis determines how the log item’s content should be rendered
parentId?string | nullGroups logs into Q&A pairs
isLiveChat?boolean | nullWhen true, this log item was created while the user was in live chat mode (i.e. speaking to a customer support agent rather than chatbot)