Run Lambda when a caller disconnects

0

I have a contact flow that transfers customers to an external number. There is a lambda that should execute after the call disconnects. I’m using the transfer to phone number block under terminate/transfer with resume flow enabled. If the agent disconnects first, the flow continues and executes the lambda. If the caller disconnects first, the lambda never executes.

Is it possible to trigger a lambda in the event a user disconnects? The only way I could see looking at documentation is to set up a firehose and responding to contract trace events. Am I overlooking something?

This seems unnecessarily complicated. Adding support for a Caller Hang-Up event in the transfer block seems like a really convenient solve to this problem.

질문됨 2년 전210회 조회
1개 답변
1
수락된 답변

Hi there!

One solution for this requirement would be to utilize EventBridge to monitor for DISCONNECTED contact events, and configure your EventBridge rule to trigger the Lambda.

You can read more around the contact events data model in the administrator guide for Amazon Connect: https://docs.aws.amazon.com/connect/latest/adminguide/contact-events.html#ContactEvent

AWS
gthomas
답변함 2년 전
  • Thank you gthomas. This is exactly what I ended up doing, but you beat me to reporting my solution, thank you very much for taking the time to respond. I had to relate the contactId to a record so I could correlate the disconnect event, but it worked great.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠