Web Messaging SDK: Injecting custom guest attributes for authenticated users

I’m trying to pass custom guest attributes to the Web Messaging widget for users who are already logged into our custom desktop app. The goal is to pre-fill the name and email so the agent sees it immediately without the guest typing it out.

I’m using the @genesyscloud/web-messaging-sdk in a React component. Here is how I’m initializing the widget:

const widget = new WebMessaging({
 organizationId: 'my-org-id',
 deploymentId: 'my-deployment-id',
 guest: {
 name: 'John Doe',
 email: 'john@example.com',
 attributes: {
 userId: '12345',
 role: 'premium'
 }
 }
});

The widget loads fine. The conversation starts. But when I look at the conversation object in Genesys Cloud admin, the name and email fields are blank. The attributes object is also missing. I’ve checked the network tab and the POST /api/v2/conversations/messages call doesn’t seem to include these fields in the payload body.

Is there a specific method I need to call on the widget instance to push these attributes after initialization? Or is the guest property in the constructor ignored for authenticated flows? The docs are a bit vague on this part.