Visitor — Pass User Context
Last updated
Last updated
The Pass User Context message enables the host app / environment to pass visitor information to the LiSA Player.
This message is sent by the host app / environment to the LiSA Player.
Along with all standard , 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
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.
join
Please use messageType
instead.
Ensure the image URL points to a properly hosted and publicly accessible resource to avoid display issues.
Please use avatarUrl
instead.
This property indicates whether the visitor is required to consent to the comments policy before being allowed to post comments.
Default value: true
Please use isCommentsConsentRequired
instead.
This property indicates whether the visitor can edit their username in the comments.
Default value: true
This property is no longer supported in Player Version 2.
The name
property is used to specify the current visitor's display name, which will be shown in comments.
Please use displayName
instead.
user
Please use messageType
instead.