Dismissing a contact from the ccp without ending it

0

I'm trying to dismiss active contacts from a user's ccp. StopContact does this and it works fine for task contacts. However, using it for chat contacts will completely close the chat instead of sending it to the disconnect flow.

Is there any way to dismiss an active contact from the ccp and send it to the disconnect flow?

asked a year ago266 views
1 Answer
0
Accepted Answer

You can use Stream API (custom CCP) to end the contact normally so Disconnect flow can be activated.

connection.destroy()

https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md

profile pictureAWS
answered a year ago
profile picture
EXPERT
reviewed 10 months ago
  • Thank you for your input. I decided to follow this approach as it seems that there is no other way.

    I send a custom message (wanted it to be an json payload, but I can't get it to work with boto3 and json) to the agent. My custom CCP then checks all messages in the onMessage event and and triggers connection.destroy().

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions