Hi,
We`ve reviewed the information about this link (developer.genesys.cloud/routing/conversations/)
And we could separate this interaction states:
- Idle - Agent is waiting for a conversation
- Interacting - Agent has been assigned a conversation
- Communicating - Agent is on a non-ACD conversation, such as consulting with a colleague
- Not Responding - Agent failed to answer an alerting conversation
- Off Queue - Agent’s status is something other than On Queue
But some of then can not represent the updated call status.
For example:
- The agent's routing status is IDLE, when he receives a new call, the routing changes to INTERACTING, but if the call is suddenly finished, the routing status keeps the Status INTERACTING, while the call ins't in course anymore, so we need to change the status to a new one before the WrapupTimeout is reached.
In this case, just check the routing status isn't enough, so we need to check the real call status at moment. But is confuse checking some call information during the routing process among ACD, Customer and Agent. Because We've just get the last participant_id, and the information here sometimes doesn`t represent what the call means. The call array starts correctly,
"purpose": "customer",
"state": "connected",
"direction": "outbound",
but after the call has been routed and reach the agent, the direction, doesn`t represent the concept of the call (I did an Outbound call, dialing from a mailing, but the last state represents an Inbound call, and this participant_id is what i got).
"purpose": "agent",
"state": "connected",
"direction": "inbound",
Here we`ve found some purpose meaning, but the array cascade is still confuse.
Conversation model example
The following example shows a conversation for a phone call. The conversation has a participants
list that contains the people in the conversation. Each participant has a state
property that indicates their status. The participant also has a purpose
property that can have the following values:
-
user
- Represents an internal Genesys Cloud user on a business conversation
-
external
- Represents a non Genesys Cloud person on a business conversation
-
agent
- Represents an Genesys Cloud agent on a contact center conversation
-
customer
- Represents the customer on a contact center conversation
-
acd
- Non-human participant that represents the ACD queue the conversation was routed through
-
ivr
- Non-human participant that represents the voice IVR that the conversation was routed through
-
voicemail
- Represents a Genesys Cloud user's voicemail
-
fax
- Represents a non-human fax participant if the voice call is transmitting a fax document
-
group
- Represents a non-human participant that represents the Group that was used for a group-ring voice conversation
We need an explanation and interpretation about the following response JSON
{
"id": "47b4b7cc-99e4-4810-b4e1-7d93a222ab77",
"participants": [
{
"id": "bf23f444-9fe7-4f8a-8f4e-c13b7ec6554f",
"address": "sip:Schroering420HD@172.18.182.10",
"startTime": "2016-03-07T18:02:55.422Z",
"connectedTime": "2016-03-07T18:02:59.651Z",
"endTime": "2016-03-07T18:03:15.524Z",
"state": "disconnected",
"direction": "outbound",
"disconnectType": "client",
"held": false,
"wrapupRequired": true,
"wrapupPrompt": "optional",
"user": {
"id": "43b126e2-5e2c-44fd-896b-8528ca344199",
"selfUri": "/api/v2/users/43b126e2-5e2c-44fd-896b-8528ca344199"
},
"queue": {
"id": "b32ab90f-0285-44a5-8eea-3425c628ff5c",
"selfUri": "/api/v2/routing/queues/b32ab90f-0285-44a5-8eea-3425c628ff5c"
},
"attributes": {},
"muted": false,
"confined": false,
"recordingState": "none",
"purpose": "user"
},
{
"id": "8e929853-2cad-4161-bbcc-27d99099c335",
"name": "Weather Line",
"address": "tel:+13172222222",
"startTime": "2016-03-07T18:02:55.867Z",
"connectedTime": "2016-03-07T18:02:59.651Z",
"endTime": "2016-03-07T18:03:15.523Z",
"state": "disconnected",
"direction": "outbound",
"disconnectType": "peer",
"held": false,
"wrapupRequired": false,
"queue": {
"id": "b32ab90f-0285-44a5-8eea-3425c628ff5c",
"selfUri": "/api/v2/routing/queues/b32ab90f-0285-44a5-8eea-3425c628ff5c"
},
"attributes": {},
"muted": false,
"confined": false,
"recordingState": "none",
"purpose": "external"
}
],
"otherMediaUris": ["/api/v2/emails/47b4b7cc-99e4-4810-b4e1-7d93a222ab77"],
"recordingState": "none",
"selfUri": "/api/v2/calls/47b4b7cc-99e4-4810-b4e1-7d93a222ab77"
}
Thank you.