API to get conversation ID from customer/guest end

Hi,

We have set up Genesys webchat v2 for a customer and they are looking for a Genesys API which can pass the conversation ID to them whenever a conversation starts.

On exploring regarding this, it a bit difficult to find the right API. The only closest solution I can think of is using conversation details query with a time duration to pull back the conversation ID, but it not really accurate as it can pull multiple conversation IDs happening within the same duration. Browsed through the guest chat and web chat APIs, cant seem to find anything direct.

can anyone advice me on a better solution or API which can pass this conversation ID within the backend (not using scripts) and their website is hosted using salesforce functionalities.

Cheers,
Priya

Hello,

With WebChat v2, from what I remember, the conversationId corresponds to the id attribute you get in the response to the create chat (POST /api/v2/webchat/guest/conversations).

Regards,

Hi Jerome,

we use CXBus and the widgets-core plugin and we cant see any API exposed. we can only see custom plugins which are subscribed,

b.subscribe("WebChatService.started", function (a) { livechat.logs.debug("Received event 'started' (WebChatService)");*

cheers,
Priya

I haven't tried since I answered that post - but the info is here (via Event or CXBus command):

Thanks Jerome, will try this out!

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