- Newest
- Most votes
- Most comments
To implement a missed call notification system for calls abandoned while in queue in Amazon Connect, you'll need to take a different approach than invoking Lambda directly from the contact flow. Here's a recommended solution:
-
Use Amazon Connect's built-in contact flow blocks to handle the call flow, including the "Transfer to queue" block.
-
Set up an Amazon Connect Contact Trace Record (CTR) stream to capture detailed information about each contact, including abandoned calls.
-
Configure the CTR stream to send data to Amazon Kinesis.
-
Create a Lambda function that processes the Kinesis stream, checks for abandoned calls, and sends notifications via Amazon SES when appropriate.
-
Set up an EventBridge rule to trigger your Lambda function when new records appear in the Kinesis stream.
This approach allows you to detect call abandonment accurately, as the CTR will contain the necessary information about the call's lifecycle, including whether it was abandoned while in queue.
To implement this:
-
In your contact flow, use the standard "Transfer to queue" block without any additional Lambda invocations.
-
In the AWS Console, go to Amazon Connect and set up a CTR stream for your instance, directing it to Kinesis.
-
Create a Lambda function that can process Kinesis records, parse CTR data, identify abandoned calls, and send SES notifications.
-
Set up an EventBridge rule to invoke your Lambda function when new records are added to the Kinesis stream.
This method is considered a best practice because it:
- Accurately captures call abandonment events
- Doesn't interfere with the normal contact flow
- Scales well for high call volumes
- Allows for flexible processing of contact data
Remember to handle the customer's phone number carefully, ensuring you have the necessary permissions to use it for notifications and that you're complying with relevant privacy regulations.
Sources
Amazon Connect rejected call still keeps ringing back | AWS re:Post
Track AWS Connect calls which hang up before reaching a queue | AWS re:Post
answered 2 years ago
Relevant content
asked 5 years ago
