Author Topic: How to logout agents from chat/email channels remotely?  (Read 7250 times)

Offline oceanblue

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
How to logout agents from chat/email channels remotely?
« on: September 20, 2020, 06:34:54 PM »

Agents are logged in to the multi-media channels using the WDE client. We need to be able to log them out remotely using a separate script/process?

How would you do this?

Thanks in advance!

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: How to logout agents from chat/email channels remotely?
« Reply #1 on: September 20, 2020, 09:17:47 PM »
Check if those links can help you:
https://docs.genesys.com/Documentation/IW/latest/Help/Team_Lead#scrollNav-7
https://docs.genesys.com/Documentation/IW/latest/Dep/EnableTeamLead#scrollNav-3

Offline oceanblue

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: How to logout agents from chat/email channels remotely?
« Reply #2 on: September 21, 2020, 12:56:43 AM »
Thanks for the links, @hsujdik. The goal is to create a solution for a group who would never be the TeamLead/Supervisor for an Agent Group, so the Supervisor monitoring/logoff feature on WDE doesn't quite cover the use case. 

I was looking at the OpenMedia/InteractionServer API and tried to send the RemoveMedia request to IXNServer/proxy for agents (who were logged in on the WDE client) without success. I have sent in different set of parameters with the request and all I am getting back is "Client is not logged in" :(

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: How to logout agents from chat/email channels remotely?
« Reply #3 on: September 23, 2020, 07:08:13 PM »
[quote author=hsujdik link=topic=11848.msg53375#msg53375 date=1600636667]
Check if those links can help you:
https://docs.genesys.com/Documentation/IW/latest/Help/Team_Lead#scrollNav-7
https://docs.genesys.com/Documentation/IW/latest/Dep/EnableTeamLead#scrollNav-3
[/quote]

This feature of WDE uses Genesyslab.Platform.OpenMedia.Protocols.InteractionServer.Esp.EspRequest3rdServer to logout other agents. Perhaps you can try to replicate it.

'EspRequest3rdServer' ('500')
message attributes:
Request [bstr]  = KVList:
'AppType' [int] = 111
'Service' [str] = "ResourceManagement"
'Method' [str] = "ForceLogout"
'Parameters' [lst] = KVList:
'Tenant' [int] = 101 <--- Tenant DBID
'Agent' [str] = "Agent_To_Be_Logged_Out"
'Place' [str] = "Place_To_Be_Logged_Out_From"

Offline marmota

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: How to logout agents from chat/email channels remotely?
« Reply #4 on: September 29, 2020, 10:29:53 AM »
Hi! We use GMS API to log agent out remotely. But we use WWE hence not sure if it will work with WDE logged agents.

Offline oceanblue

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: How to logout agents from chat/email channels remotely?
« Reply #5 on: November 11, 2020, 02:35:00 PM »
[quote author=hsujdik link=topic=11848.msg53387#msg53387 date=1600888093]
[quote author=hsujdik link=topic=11848.msg53375#msg53375 date=1600636667]
Check if those links can help you:
https://docs.genesys.com/Documentation/IW/latest/Help/Team_Lead#scrollNav-7
https://docs.genesys.com/Documentation/IW/latest/Dep/EnableTeamLead#scrollNav-3
[/quote]

This feature of WDE uses Genesyslab.Platform.OpenMedia.Protocols.InteractionServer.Esp.EspRequest3rdServer to logout other agents. Perhaps you can try to replicate it.

'EspRequest3rdServer' ('500')
message attributes:
Request [bstr]  = KVList:
'AppType' [int] = 111
'Service' [str] = "ResourceManagement"
'Method' [str] = "ForceLogout"
'Parameters' [lst] = KVList:
'Tenant' [int] = 101 <--- Tenant DBID
'Agent' [str] = "Agent_To_Be_Logged_Out"
'Place' [str] = "Place_To_Be_Logged_Out_From"
[/quote]


Thanks so much @hsujdik for this wonderful idea. I never thought about it. Will definitely give it a try.

cheers,

Offline oceanblue

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: How to logout agents from chat/email channels remotely?
« Reply #6 on: November 11, 2020, 02:42:47 PM »
[quote author=marmota link=topic=11848.msg53404#msg53404 date=1601375393]
Hi! We use GMS API to log agent out remotely. But we use WWE hence not sure if it will work with WDE logged agents.
[/quote]

Hi @marmota, WWE/WDE shouldn't make a difference as the logins are controlled by the CTI/Multimedia app components. Were you able to logout agents off of the e-Services channels using the API? Do you mind sharing the API request that you use for this.

Thanks,

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: How to logout agents from chat/email channels remotely?
« Reply #7 on: November 17, 2020, 01:23:31 PM »
[quote author=oceanblue link=topic=11848.msg53523#msg53523 date=1605105300]
[quote author=hsujdik link=topic=11848.msg53387#msg53387 date=1600888093]
[quote author=hsujdik link=topic=11848.msg53375#msg53375 date=1600636667]
Check if those links can help you:
https://docs.genesys.com/Documentation/IW/latest/Help/Team_Lead#scrollNav-7
https://docs.genesys.com/Documentation/IW/latest/Dep/EnableTeamLead#scrollNav-3
[/quote]

This feature of WDE uses Genesyslab.Platform.OpenMedia.Protocols.InteractionServer.Esp.EspRequest3rdServer to logout other agents. Perhaps you can try to replicate it.

'EspRequest3rdServer' ('500')
message attributes:
Request [bstr]  = KVList:
'AppType' [int] = 111
'Service' [str] = "ResourceManagement"
'Method' [str] = "ForceLogout"
'Parameters' [lst] = KVList:
'Tenant' [int] = 101 <--- Tenant DBID
'Agent' [str] = "Agent_To_Be_Logged_Out"
'Place' [str] = "Place_To_Be_Logged_Out_From"
[/quote]


Thanks so much @hsujdik for this wonderful idea. I never thought about it. Will definitely give it a try.

cheers,
[/quote]

Just out of curiosity, did you manage to replicate that?

Offline marmota

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: How to logout agents from chat/email channels remotely?
« Reply #8 on: November 17, 2020, 05:53:01 PM »
[quote author=oceanblue link=topic=11848.msg53524#msg53524 date=1605105767]
[quote author=marmota link=topic=11848.msg53404#msg53404 date=1601375393]
Hi! We use GMS API to log agent out remotely. But we use WWE hence not sure if it will work with WDE logged agents.
[/quote]

Hi @marmota, WWE/WDE shouldn't make a difference as the logins are controlled by the CTI/Multimedia app components. Were you able to logout agents off of the e-Services channels using the API? Do you mind sharing the API request that you use for this.

Thanks,
[/quote]

Hi!

It seems I was not quite correct saying we log agents out with API. What we do is logging in and chaning status to Ready/NotReady:

Log in:
GET http://SERVER_NAME/api/v2/me/
with Header Content-Type: application/json
and Basic Authorization

Change Status:
POST http://SERVER_NAME/api/v2/me/channels/voice
with same Headers and Body: {"operationName":"Ready"}

Documentation says we can log agent out the same way we log in but with POST instead of GET. But it doesn't work at my installation for some reason...

Here it comes:
https://docs.genesys.com/Documentation/CR/latest/API/Login

If anybody did it with loggin out I'd be happy to hear =)

Offline marmota

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: How to logout agents from chat/email channels remotely?
« Reply #9 on: November 17, 2020, 06:11:27 PM »
It seems to work =)

Need to add body to the POST-request:

{"operationName": "EndContactCenterSession"}

Offline oceanblue

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: How to logout agents from chat/email channels remotely?
« Reply #10 on: May 06, 2021, 08:08:42 PM »
@hsujdik

we had to table it back in the time because of other priorities. But, the business units wants it now, so we are back at it.

I will try and let you know.

Thanks again for the wonderful idea. Will let you know how it goes.

cheers,

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: How to logout agents from chat/email channels remotely?
« Reply #11 on: July 03, 2021, 04:57:03 AM »
Again, just curious in case I need it in the future... did this work?

Offline oceanblue

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: How to logout agents from chat/email channels remotely?
« Reply #12 on: July 19, 2021, 08:18:25 PM »
@hsujdik

Yes, the e-Services team did a POC with success. Also, Genesys mentioned this is the only way of doing it through the ESP port.