Inject CRM ID into Web Messaging SDK startChat()

Could someone explain how to pass a CRM customer ID through the startChat() method in the Genesys Cloud Web Messaging SDK without it getting stripped during the session handshake?

  • I tried setting attributes.crmId in the startChat payload but the value is null in the /api/v2/analytics/conversations/details/query response.
  • I verified the conversationId exists in the analytics aggregate query but the custom attribute is missing from the JSON payload.