Hello,
I would like to know if it is feasible to initialize conversation attributes when using the javascript SDK.
I'm working on integrating the Intercom JavaScript SDK into an e-commerce platform. Our goal is to embed the Intercom messenger on the order confirmation page, so customers can inquire about their recent purchase without re-entering their order ID.
We have tried to initialize custom parameters using
Intercom(‘update’, {...})
However, this seems to only have an effect for People Attributes and not Conversation Attributes. We need to pass the order ID into the conversation context, as our support flow heavily relies on this information. Since a customer may have multiple orders, setting the order ID as a People attribute isn't a viable solution.
Are there methods within the Intercom SDK to initialize conversation attributes directly, or a workaround that could suit this use case? We're open to alternative approaches if there's a more effective way to achieve this user experience. Any insights or suggestions would be greatly appreciated.