Contextual data associated with a message.
JSON representation |
---|
{ "entryPoint" : enum ( |
entryPoint
enum (
EntryPoint
)
The entry point that the user clicked.
userInfo
object (
UserInfo
)
Identity of the user who wrote the message.
widget
object (
Widget
)
Information about the widget used to start the conversation.
resolvedLocale
string
Resolved locale. A match of user and supported agent locales based on location, likely language preference, and other factors. The locale value is a well-formed IETF BCP 47 language tag.
customContext
string
Context data specified by the partner.
place
. Either placeId or nearPlaceId can be set. place
can be only one of the following:placeId
string
The Place ID , or unique identifier used in Google Places, for the location.
nearPlaceId
string
The Place ID , or unique identifier used in Google Places, of the nearest location to the user.
UserInfo
User identity data associated with a message.
JSON representation |
---|
{ "displayName" : string , "userDeviceLocale" : string } |
Fields | |
---|---|
displayName
|
User's display name. |
userDeviceLocale
|
User's locale. Determined by the device's language settings. |
Widget
Widget information associated with a message.
JSON representation |
---|
{ "url" : string , "widgetContext" : string } |
Fields | |
---|---|
url
|
URL where the widget was integrated. |
widgetContext
|
Context string associated with the widget. Specified by the widget's |