Hey folks,
We’re trying to pass a customer’s CRM ID from our web portal into Genesys Cloud Web Messaging. The goal is to have that ID available in the transcript and for routing rules.
I’ve got the SDK initialized, but I’m unsure about the exact payload structure for startChat. I’ve been looking at the docs, and it mentions attributes, but I’m not sure if that’s the right place for a custom CRM field or if I should be using customAttributes.
Here’s what I have so far:
genesyscloud.messaging.startChat({
chatConfiguration: {
routing: {
queueId: "my-queue-id"
},
attributes: {
crmId: "CRM-12345"
}
}
});
When I do this, the chat connects fine, but the crmId doesn’t show up in the conversation object in the API response. I’m guessing it’s either being stripped out or I need to map it differently.
Has anyone got this working? Is there a specific naming convention I need to follow for custom fields in the Web Messaging SDK?