Web Messaging SDK: Setting custom guest attributes via init config

Trying to pass custom guest attributes to the Web Messaging widget for authenticated users. The docs mention genesyscloud.messaging.setGuestAttributes, but I’m initializing via the script tag. Here’s what I’m doing: GenesysWebMessaging.init({ orgGuid: 'xxx', deploymentId: 'yyy', guestAttributes: { userId: '123' } }). The widget loads fine, but the attributes aren’t showing up in the Genesys admin UI or the conversation payload. Am I missing a step in the init config?

You can’t pass guestAttributes in the init config. You have to call genesyscloud.messaging.setGuestAttributes after the widget loads.

GenesysWebMessaging.init({ orgGuid: 'xxx', deploymentId: 'yyy' });
genesyscloud.messaging.setGuestAttributes({ userId: '123' });

The init function only handles connection setup, not session data.