AWS Contact Center
Drive insights of customer’s self-service IVR journey with HAQM Connect and personalized dashboards
Customers typically want access to their contact center data to drive better decisions. HAQM Connect flows are a great place to capture metrics and drive outcomes. These flows define how customers experience your contact center from start to finish. At the most basic level, flows enable you to customize your IVR (interactive voice response) system. Flows can be designed to provide self-service and interaction routing for complex use cases with great customer experience.
In this blog post, we look at how HAQM Connect helps customers in visualizing the end-to-end user journey of callers within the system so that they can design flows that would facilitate a more streamlined customer experience. This customer journey information can be used for analysis and optimization, improving overall customer experience.
Common IVR flow scenarios deployed with HAQM Connect include voice calls deflected to chat, offering call backs based on wait time, self-service applications, and contact handled by agent.
This solution will report on these types of customer journeys:
- How many customers have deflected to chat?
- How many customers have been served by IVR then routed to agents?
- How many customers have encountered issue with IVR, deflected to DTMF flow and then routed to agents?
- How many customers have opted for callback?
Overview of solution
In the above architecture, the customer makes a phone call or Initiates chat which invokes an HAQM Connect Flow. This flow in turn invokes an HAQM Lex through “Get Customer Input” block in flows to get the customer Intent:
- (Step1): Voice/chat bot (HAQM Lex) collects the reason (intent) for the customer call.
- In flow, we use “Set Contact Attributes” to track intent as the customer journey.
- Save intent as User defined variable.
- (Step 2): Once the intent is recognized, either contact will be queued to route to agent or Lambda will be triggered to send SMS.
- (Step 3): In the HAQM Connect Flow invoke the AWS Lambda
- tip: Set these Contact Attributes prior to invoking the trigger AWS Lambda function
- key: flowType, value: AgentQueue or SMS-Deflect or Non-Lex.
- key: Intent, value: stored user defined attribute values. Example: $.Attributes.firstIntent -> $.Attributes.secondIntent
- (Step 4) : AWS Lambda parse the parameters received from flow and use AWS Dynamo DB api’s to store the journey in AWS Dynamo DB.
- tip: Set these Contact Attributes prior to invoking the trigger AWS Lambda function
Prerequisites
To create a report that focuses on above metrics, you need the following pre-requisites:
- An AWS account
- An existing HAQM Connectinstance
- Access to following AWS services:
- AWS IAM with access to create policies and roles
- HAQM CloudFront with access to create a distribution
- HAQM S3 with access to create buckets
- AWS CloudFormation to run the stack
- AWS Lambda with access to create functions
- HAQM Lex to create bot features from this solution
- HAQM Pinpoint to send SMS
- HAQM API Gateway access with REST API endpoint enabled
- AWS IAM access and secret key credentials
Walkthrough
In this section, we will guide you through the steps required to deploy this blog into your AWS account, and how to perform testing on your HAQM Connect instance.
The high-level steps are as follows:
- Setup SMS project in HAQM Pinpoint service
- Set up HAQM Lex bot
- Add HAQM Lex bot to HAQM Connect instance
- Set up AWS DynamoDB table
- Set up required AWS Lambda functions
- Add AWS Lambda functions to your HAQM Connect instance
- Set up HAQM Connect Flows
- Setup HAQM Connect customer journey map source in HAQM S3
- Setup HAQM API Gateway
- Setup HAQM CloudFront to access the customer journey map dashboard page
- Visualize the customer journey
Step 1: Deploy the AWS CloudFormation stack
- Log in to the AWS Management Console.
- Download the Cloud formation template by clicking on Launch Stack below to create a stack in the any AWS region where HAQM connect service available.
- In the parameters section,
- Enter a stack name
- Enter HAQM connect instance ARN
4. Check the box for “I acknowledge that AWS CloudFormation might create IAM resources.”
5. Check the AWS region where you are going to install this stack and make sure, change the region accordingly.
6. Choose Create Stack.
7. The AWS CloudFormation template may take 15-30 minutes to create all the resources. Once done, it will show the status as CREATE_COMPLETE.
Step 2: Setup HAQM S3 association to HAQM CloudFront to access Webpage via CloudFront URL
- Go to S3 console.
- Navigate to Buckets and select the bucket for example connect-customer-ivr-journey-map-website9008 which we have created from the stack.
- Under Objects tab, select all the folders inside the bucket.
4. Click on Actions drop down and click Make public using ACL to access bucket contents through HAQM CloudFront URL.
Step 3: Associate AWS Lex & AWS Lambda functions to HAQM connect flows
- Sign into your HAQM Connect instance and navigate to the HAQM Connect admin console.
- From the navigation bar on the left-hand side, choose Routing, Flows.
- Search for Connect customer journey map flow and click to open it.
- Edit the AWS Lambda association to the AWS Lambda functions which we have assigned to this instance. Same should be done for HAQM Lex bot as well.
- Save and publish this flow.
Step 4: Associate a phone number to the HAQM connect flow
After publishing the flow, you will need to associate a phone number. To associate a phone number:
- Log in to your HAQM Connect admin console.
- Navigate to the Phone numbers page by clicking on Phone numbers under the Routing section.
- Associate a phone number with the Connect customer journey map flow and click on Save.
Step 5: Launching the deployed Customer Journey Map Dashboard webpage
- Go to your AWS CloudFormation stack which you have created earlier, choose Outputs.
- Click on the Value for CloudfrontEndpoint, which is a URL to your customer journey map dashboard webpage.
- The Outputs should look something like the following:
Step 6: Perform testing – Dial DID phone number associated to the HAQM Connect flow
-
For SMS Deflect flow:
- After welcome greeting, say “Mobile” for mobile enquiries.
- Then in the next menu, say “Billing” for billing enquiries.
- This will take us to the SMS deflect flow.
-
For Agent Queue flow:
- After welcome greeting, say “Broadband” for broadband related queries.
- This will take us to Agent queue flow.
-
For DTMF flow:
-
- After greeting, say “TV packages” or do not say anything. Here, the HAQM Lex voice bot should not recognize any intent and will shift to DTMF flow.
- Pause for few seconds, you will then hear the DTMF flow being activated.
- Press 1 for television packages and this will take us through the DTMF flow.
Cleaning up
To avoid incurring future charges, delete the resources created for this blog.
- Open the AWS CloudFormation console
- Locate the stack (e.g., connect_customer_ivr_journey) you created in step 3
- Select the radio option next to it
- Select Delete
- Select Delete stack to confirm
Conclusion
In this blog post, we walked through how to create and track customer journey in IVR from HAQM Connect and launched a sample stack to try out. You can now build similar journey in any HAQM Connect flow by following this blog.
Author bio
![]() |
Venkatesh Allamkam is a Senior Specialist Solutions Architect at AWS. Venkatesh is passionate about diving deep with customers to architect creative solutions that support business innovation in the contact center space leveraging HAQM Connect. |
![]() |
Lili Chan is a Senior Specialist Solutions Architect at AWS. She helps customer achieve their desired business outcomes in the Contact Center space leveraging HAQM Connect. |