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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南