I hope I am not missing something obvious here but I could not find a way to retrieve the current conversation id using the Messenger Javascript SDK. I have listened to most of the events in MessagingService plugin but I could not find one that returns the conversation id. Can anyone advise?
We trigger a customer satisfaction survey when a conversation is disconnected (i.e. receiving the disconnect event) and would like to map the survey result to the conversation using the conversation id so that supervisors could easily locate the conversation to check the transcript. I have thought of using the session id in localStorage for mapping but I could not seem to find this session id in the Interaction details.
Assuming this is 3rd party survey, you could pass a custom-defined unique "survey" ID from Messenger SDK client as Custom Attribute, which maps to Participant Data, and then use that same unique ID in your survey solution for mapping.