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?
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?
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.