Events

The events data API gives you direct access to the raw analytical event data. You can use this data in your own BI system to analyze.

The events data API gives you direct access to the raw analytical event data. You can use this data in your own BI system to analyze.

Access

The event 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.

Storage

The logs will be stored in S3 with a prefix like "/account-id/use-case-id/datetime.json.gzip". Every hour we will add a new file with all new events since the last run. You should pull in the data into your own data warehouse. It is stored with gzip compression to save both storage and data bandwidth. You probably want to decompress it before storing it in your own solution.

Structure

Each file contains the following fields:

FieldTypeDescription
accountIdstringYour account id
domainNamestringDomain name where the event was captured
userIdstringID of the user, either generated by us, or set as the identifier by you
pageVisitIdstringUnique generated id of the page visit
sessionIdstringUnique generated id of the session
eventTypestringSee event types below
timestampstringISO 8601 timestamp
metadatajsonAvailable metadata depending on the eventType. If we didn't manage to find the answer then this contains: "questionIsUnanswered: true"
originstringEither 'component' or an API form
componentIdstringID of the component that emitted the event (only if origin is component)
componentNamestringName of the component as named in the Unless dashboard
componentTagsstringTags set on the component in the Unless dashboard

Event types

Event TypeDescription
displayWhen a component is displayed
closeWhen a component is closed
primary-cta-clickWhen a primary CTA is clicked in a component
secondary-cta-clickWhen a secondary CTA is clicked in a component
chat-conversationWhen a conversation is started
chat-conversation-without-starting-messageWhen a conversation is started with a prompt
chat-starting-responseStarting message got displayed
chat-responseAI response is generated
chat-negativeThumbs down is pressed
chat-positiveThumbs up is pressed
chat-escalatedAn action was invoked that was marked as escalating
chat-searchA search is triggered on the search tab

Computed properties on insights page

On our insights page we show a couple of data fields that are computed using the raw data within a specific timeframe.

Property

Calculation

Responses

Sum of chat-response

Sessions

Sum of chat-starting-response and chat-conversation-without-starting-message.
_Every time a user interacts with the AI by seeing a starter message or an auto-prompt message, it's called a session. _

Conversations

Sum of chat-conversations

Searches

Sum of chat-search

Questions

Sum of chat-responses

Answered

Sum of (chat-responses - chat-responses where data->>questionIsUnanswered = true)

Success ratio

Answered / Questions

Escalations

Sum of chat-escalated

Tickets deflected

Conversations - Escalations