How collect the messageID from a Web Messaging

Hi community,

Let me describe an use case so maybe someone can help me, we are using web messenger default UI, one of our customers want to attach participant data on an interaction if the customer make a specific action on their website.

The initial idea was use this API - GET /api/v2/conversations/messages/{messageId}/details - to get the conversationID
Then use this API - GET /api/v2/analytics/conversations/{conversationId}/details - to get the participantID
And finally use this API - PATCH /api/v2/conversations/messages/{conversationId}/participants/{participantId}/attributes - to attach the information

But customer developer doesn't know how to get the messageID from the browser side.

Other idea was use the database.set or database.update to attach this information but to do that the customer need to send a message.

With regards to web messaging, the REST API is only for agent use. You can interact with the messenger widget using its API: https://developer.genesys.cloud/commdigital/digital/webmessaging/messenger-transport-mobile-sdk/

Hi Tim, correct if I'm wrong but these APIs should be used in mobile apps, isn't it?

You're welcome to develop your own apps using any platform you like that can make the necessary API calls, web, mobile, or otherwise. The messenger widget is javascript, so that's restricted to a web environment, but could be on any device.

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