We’re trying to inject our internal CRM customer ID into the Genesys Cloud Web Messaging SDK when initializing a chat session. I’ve got the basic setup running, but I can’t figure out the exact syntax for passing custom attributes through the startChat() method. Is it part of the configuration object or do I need to set it via the guest API beforehand? Here’s my current attempt:
const session = await sdk.startChat({
deploymentId: '12345',
attributes: { crmId: 'CUST-99' }
});
It’s not sticking to the conversation context. Any pointers?