Visitor — Pass User Context
The Pass User Context message enables the host app / environment to pass visitor information to the LiSA Player.
This message requires waiting for the AppListening
message to ensure the LiSA Player is ready to receive messages from the host app / environment. Please ensure the host app sends messages only after receiving this message.
This message is sent by the host app / environment to the LiSA Player.
Properties
Along with all standard Message properties, a Pass User Context message includes the following additional properties:
avatarUrl
Optional.
The avatarUrl
property is used to provide a URL pointing to an image that represents the visitor's avatar.
Ensure the image URL points to a properly hosted and publicly accessible resource to avoid display issues.
displayName
Optional.
The displayName
property is used to specify the current visitor's display name, which will be shown in comments.
id
Required.
The id
property is used to define the current visitor's unique identifier within the user management system of the host app or environment. This identifier will be associated with the visitor's session in LiSA.
isCommentsConsentRequired
Optional.
This property indicates whether the visitor is required to consent to the comments policy before being allowed to post comments.
Default value: true
messageType
Required.
lsc:visitor:pass-user-context
Legacy Properties
If your integration uses LiSA Player Version 1, none of the properties described above — except id
— will be available.
For LiSA Player Version 2, legacy properties can be ignored.
action
Required.
avatar
Optional.
The avatar
property is used to provide a URL pointing to an image that represents the visitor's avatar.
consent
Optional.
editable
Optional.
name
Optional.
target
Required.
Type Definition
Example
Last updated