We’re trying to pass custom guest attributes to the Genesys Cloud Web Messaging widget for authenticated users. The goal is to capture these attributes in our New Relic APM pipeline via webhooks. The widget initializes fine, but the custom data isn’t showing up in the conversation metadata when we query the API later.
Here’s the initialization code we’re using:
const config = {
organizationId: 'abc123',
deploymentId: 'def456',
guestAttributes: {
userId: 'user_12345',
loyaltyTier: 'gold'
}
};
window.GenesysCloud.init(config);
When I check the conversation details via the REST API (GET /api/v2/conversations/messages/{conversationId}), the guestAttributes object is empty. The standard attributes like ipAddress are there, but nothing custom. We’ve verified the token has the correct scopes.
Is there a specific method to attach these attributes after initialization? Or do we need to use a different endpoint to update the guest profile before the conversation starts? The documentation mentions guestAttributes in the config, but it feels like it’s being ignored.
We’re seeing this behavior consistently in production. Not sure if it’s a timing issue with the widget load or if we’re missing a step in the API flow.