Run Lambda when a caller disconnects
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.
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
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.
Is there an AWS service that can codelessly, serverlessly download an external file via HTTPS to an S3 bucket?asked 2 months ago
Can i execute an Athena saved query from lambda?Accepted AnswerMODERATORasked 3 years ago
Issue with Transfer to Phone Number - External Attribute and Lambdaasked 2 years ago
My Lambda function is not getting invoked all of a sudden.asked 3 months ago
Run Lambda when a caller disconnectsAccepted Answerasked 2 months ago
Specify outbound caller ID using Connect Streams?asked 3 months ago
sqs event triggers lambda directly, is there a way to delay that execution by 10-20 seconds?Accepted Answerasked 2 years ago
how do i delete a lambda@edge that isn't attached to a cloudfront?asked 6 months ago
Transferring the Amazon connect contact while waiting for the Agent in the Queueasked a month ago
How do I link my Amazon Connect instance to a Lambda function outside the contact flow with automationasked 7 days ago