1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
There are two steps to this, first you need to subscribe to agent events then you trigger based on things happening to the agent. So for example...
connect.agent(async function (agent) {
agent.onStateChange(function (agentState){
console.log("Agent State Changed to: " + agentState.newState);
});
});
You can do similar subscribing to contact events.
connect.contact(function (contact) {
activeContact = contact;
contact.onRefresh(function (contact) {/* do stuff */});
contact.onIncoming(function (contact) {/* do stuff */});
contact.onAccepted(function (contact) {/* do stuff */});
contact.onMissed(function (contact) {/* do stuff */});
});
Subscribing to events is covered here... https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md#event-subscription
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 2 mois
- demandé il y a 16 jours
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
contact.onMissed(); gives error as well as contact.onEnded.
console prints, "[contact.onMissed] Call is Missed. Contact status is error" on function handleMissed(contact) { console.log("[contact.onMissed] Call Missed by agent. Call status is " + contact.getStatus().type); }
bro is this just crawling stackoverflow bro? lol