Amazon Connect is a self-service, cloud-based contact center service that makes it easy for businesses to deliver better customer service at a lower cost. The self-service graphical interface in Amazon Connect makes it easy for non-technical users to design contact flows, manage agents, and track performance metrics — no specialized skills required.
There are various ways to get a CloudWatch alert using email or SMS. The following steps outline how to get a voice alert on your phone using Amazon Connect:
1.The CloudWatch alarm is that generates an event. An Amazon CloudWatch event rule triggers an AWS Lambda function, which uses the Amazon Connect API to initiate an outbound call to the concerned party
To implement this solution, you must create the following resources:
- A contact flow.
- An AWS Lambda function.
- An Amazon CloudWatch event rule.
To follow this walkthrough, you must create at least one Amazon Connect virtual contact center instance with a claimed phone number. For details, see Amazon Connect — Customer Contact Center in the Cloud.
Amazon Connect instance Launch:
- Open the Amazon Connect console at https://console.aws.amazon.com/connect/.
- Choose Get started. If you have previously created an instance, choose Add an instance instead.
- Choose one of the following options:
- Store users within Amazon Connect — Use Amazon Connect to create and manage user accounts.
- Link to an existing directory — Use an AWS Directory Service directory to manage your users. You can use each directory with one Amazon Connect instance at a time.
- SAML 2.0-based authentication — Use an existing identity provider (IdP) to federate users with Amazon Connect.
- If you chose Store users within Amazon Connect provide the left-most label for Access URL. This label must be unique across all Amazon Connect instances in all Regions. You can’t change the access URL after you create your instance.
- If you chose Link to an existing directory, select the AWS Directory Service directory for Directory. The directory name is used as the left-most label for Access URL.
- Choose Next step.
After you specify the user name of the administrator for the Amazon Connect instance, a user account is created in Amazon Connect and the user is assigned the Admin security profile.
To specify the administrator for your instance
- Do one of the following, based on the option that you chose in the previous step:
- If you chose Store users within Amazon Connect, select Add a new admin, and provide a name, password, and email address for the user account in Amazon Connect.
- Choose Next step.
Use the options in this section to choose whether you want your agents to receive calls from customers, make outbound calls, and hear early media audio.
When early media audio is enabled, for outbound calls your agents can hear pre-connection audio such as busy signals, failure-to-connect errors, or other informational messages provided by telephony providers.
By default, early media is enabled for you. Note the following exception:
Your instance was created before April 17, 2020, and you weren’t enrolled in the preview program. You need to enable early media audio using the option described in this procedure.
To configure telephony options for your instance
- (Optional) To enable customers to call into your contact center, choose I want to handle incoming calls with Amazon Connect.
- (Optional) To enable outbound calling from your contact center, choose I want to make outbound calls with Amazon Connect.
- (Optional) To enable agents to hear pre-connection audio such as busy signals or “This phone number has been disconnected and is no longer in service,” choose I want to enable early media.
- Choose Next step.
When you create an instance, by default we create an Amazon S3 bucket. Data, such as reports and recordings of conversations, is encrypted using AWS Key Management Service, and then stored in the Amazon S3 bucket.
This bucket and key are used for both recordings of conversations and exported reports. Alternatively, you can specify separate buckets and keys for recordings of conversations and exported reports.
By default, Amazon Connect creates buckets for storing call recordings, chat transcripts, exported reports, and contact flow logs.
When a bucket is created to store call recordings, call recording is enabled at the instance level. The next step for setting up this functionality is to set up recording behavior in a contact flow.
When a bucket is created to store chat transcripts, chat transcription is enabled at the instance level. Now all chat transcripts will be stored. Only if you want to monitor chat conversations do you need to set up recording behavior in a contact flow
Live media streaming is not enabled by default.
To customize the data storage settings for your instance or enable/disable certain functionality:
- Choose Customize settings.
- (Optional) To specify the bucket and KMS key for recordings of voice conversations, choose Call recordings, Edit, specify the bucket name and prefix, select the KMS key by name, and then choose Save.
- (Optional) To specify the bucket and KMS key for recordings (transcripts) of chat conversations, choose Chat transcripts, Edit, specify the bucket name and prefix, select the KMS key by name, and then choose Save.
- (Optional) To specify the bucket and KMS key for exported reports, choose Exported reports, Edit, specify the bucket name and prefix, select the KMS key by name, and then choose Save.
- (Optional) To disable contact flow logs, clear Enable Contact flow logs.
- (Optional) To enable file sharing for both agents and customers, next to Attachments choose Edit, then Enable Attachments sharing. For more information about this option and additional steps, see Enable attachments to share files using chat
- Choose Next step.
Review and create
When you are finished configuring your instance, you can create it.
To create your instance
- Review the configuration choices. Remember that you cannot change the identity management options after you create the instance.
- (Optional) To change any of the configuration options, choose Change.
- Choose Create instance.
- (Optional) To continue configuring your instance, choose Get started and then choose Let’s go. If you prefer, you can access your instance and configure it later on.
Step 1: Create a contact flow
Create a contact flow IVR to enable the outbound call and play the alert message based on the event.
- In the Amazon Connect console, choose Overview. As the administrator, choose Login.
- On the Routing menu, choose Contact Flows, Create Contact flow.
- On the left pane, enter a name for the contact flow, for example, “SampleAlert.”
- On the left pane, for Interact, drag and drop the Play prompt IVR block to the grid on the right.
- On the left pane, for Interact, drag and drop the Get customer input IVR block to the grid on the right.
- On the left pane, for Terminate/Transfer, drag and drop the Disconnect / hang up IVR block to the grid on the right.
- Connect these three IVR blocks to make a contact flow, as shown in the following screenshot.
- Double-click the Play prompt IVR block. On the Play prompt page, configure the following fields:
- Choose Text to speech (Ad hoc).
- Choose Enter text, and enter the following: