Get the ConversationId with the Messenger JavaScript SDK

Hi,

We are using Web Messenger with the Messenger JavaScript SDK to add custom functionalities in the UI of the client. The problem that we have is that we need to capture the conversationId of the interaction when it starts so we can save it for future reporting but we havent find it in the commands and events of the SDK.

Theres a way to capture that value in the UI of the client?

Thanks and Regards,

Hello,

At this time, the conversationId is not exposed/propagated on the Web Messaging Guest API.

Regards,

1 Like

Is there a viable approach to address this matter within a custom WebMessaging widget utilizing WebSocket? Specifically, with the intention of correlating the session ID with the interaction ID?

Please extend my gratitude for your assistance.

This doesn't answer your question (as it requires access to the Platform API) but my tool gets the Conversation ID from the ID of the message sent via the WebSocket. It does this by using the Conversation API's /api/v2/conversations/messages/{messageId}/details endpoint.

Like I say, it doesn't solve your particular use-case but hopefully offers another option.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.