Analytics Transactions: JSON Structure
Every interaction between a user and your project is recorded in a transaction
Last updated
Every interaction between a user and your project is recorded in a transaction
Last updated
The following describes the JSON structure used by Parloa to send transaction data to the analytics hook after a release.
Below is the detailed structure of a transaction JSON object sent to the analytics hook, including processed user interactions:
Key | Type | Description |
---|---|---|
Below are example JSON arrays of transactions made by a release for the Phone platform, illustrating the data structure in action:
transactionId
string
Globally unique identifier for the transaction.
requestTimestamp
string
GMT timestamp when the request was made to Parloa.
responseTime
number
Processing time in milliseconds for the transaction.
userContextId
string
Internal Parloa ID mapping the requester to the release.
releaseId
string
Parloa ID of the release initiating the request.
requesterId
string
Platform-specific requester ID, at times equivalent to a user ID.
intent
object
Details of the incoming intent, processing state, and transitions.
intent.name
string
The name of the incoming intent
intent.handledByState
object
intent.handledByState.id
string
The ID of the state that handled the request
intent.handledByState.name
string
The name of the state that handled the request
intent.handled
string
Either the intent was handled locally
or globally
intent.explicitlyHandled
boolean
True when the intent was not handled by an else branch
intent.initialState
object
intent.initialState.id
string
The ID of the state at the start of the transaction
intent.initialState.name
string
The name of the state at the start of the transaction
intent.nextState
object
intent.nextState.id
string
The ID of the state from which the next transaction will start
intent.nextState.name
string
The name of the state from which the next transaction will start
language
string
Language code of the release, in BCP 47 format.
meta
object
Meta-information containing occurrences of errors and warnings.
meta.errors.occurences
number
The number of errors occurred during the transaction
meta.warnings.occurences
number
The number of warnings occurred during the transaction
variables
array
Collection of stored variables and their values.
variables.0.id
string
The immutable identifier of this variable
variables.0.name
string
A name that can be changed by the VUI designer inside Parloa
variables.0.value
any
The current value of the variable at the end of the transaction
platform
string
The platform from which the request originated.
request
object
Raw request received by Parloa.
response
object
Raw response sent to the requesting platform.