Trying to push custom attributes from our web app into the Genesys Cloud Web Messaging widget before a chat starts. The widget loads fine, but the attributes aren’t showing up in the conversation or the guest profile in PureCloud. We’re using the standard gcWebMessaging config object.
- React 18 app
- Genesys Cloud Web Messaging SDK v2.4.1
- Passing
guestAttributesin theinitcallback - Logged in users, using
userIdandemailin the payload
Here’s the config snippet we’re using:
window.gcWebMessaging.init({
widgetId: 'my-widget-id',
orgId: 'my-org-id',
guestAttributes: {
customerTier: 'gold',
loyaltyId: '12345'
}
});
The chat connects, but the supervisor view is blank on those fields. Am I missing a step to actually send them?