Query for how much time users get to wrap-up?

Probably another "hiding in plain sight" thing, lol... sorry if it is... so, what I'm looking for is a way to query the API for how long a user has to wrap-up a call. Our integration starts a timer, but currently the number is "hard-coded" (and of course I was mistaken about how long the timer is supposed to run :laughing:). Now I get that the API doesn't send notifications about how far along its own internal timer is - that can be affected by things like network speed etc. I got the WebRTC SDK to let it know when the time expires, but what I'd like to figure out is how to get the number to set our timer to. I noticed in one of the PATCH requests you can send "durationInSeconds" or something like that... what I need is kinda the opposite. Like when the wrap-up timer starts, I have a way of finding out if the timer should be for 30 seconds or 45 seconds or what. Not a big deal (it's another setting I can duplicate on our end), but I'm just not seeing anything in the docs for it. Could it be getConversationsCallParticipantWrapup? That doesn't seem to be what it's for, but I'm probably just misunderstanding something. Seems every other time I need to find something, there doesn't seem to be an obvious "category" for it (is this under routing? conversations? divisions? lol u get the idea). Any suggestions?

Hello,

The After Call Work settings of an ACD Queue (what is defined under General Tab of an ACD Queue (Admin UI - Contact Center - Queues)) are propagated to the Contact Center Agent in the conversation context.
If you retrieve the conversation with GET /api/v2/conversations/{conversationId} or GET /api/v2/conversations (as an example), you can find a set of attributes, under the agent's participant structure, that are related to the After Call Work settings to apply on that conversation -> wrapupRequired, wrapupPrompt (mandatory, optional, agentRequested, timeout, forcedTimeout), wrapupTimeoutMs.

If you are already leveraging Notifications API (websocket - topics subscription) to get events from Genesys Cloud, I assume the info should be present in one of the conversation events.

Regards,

Well, there wasn't anything in the SDK that seemed to give it (not in sessionStarted or sessionEnded, or the ACW notification event listener, but your first link did the trick. Thank you muchly. :smiley:

I was talking about a Platform API notification event like this: v2.users.{id}.conversations
sessionStarted/sessionEnded is about the WebRTC SDK and events if I am not mistaken - that's not the Platform API notifications I was referring to: https://developer.genesys.cloud/notificationsalerts/notifications/available-topics

Regards,

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