Amazon Connect with Amazon Lex Press or Say Input
You’re sitting in a public place and need to contact customer support over the phone. Perhaps you’re traveling and need to confirm or change a reservation or get an account balance. Maybe you need to reset an account password because you always access the account from your tablet instead of your phone. We’ve all been there.
So, you call customer support. But when you’re in a public place and want to enter sensitive personal information, speaking out the details may not be safe. Everyone around you could hear you, especially if you are trying to speak above the ambient noise.
Now imagine that, much to your delight, customer support let’s you enter all of your input and personal information using your touch-tone keypad. You don’t have to say anything at all.
Amazon Connect with Amazon Lex bots can now capture customer input as digits that customers enter on their numeric keypad when used in an Amazon Connect contact flow. Amazon Lex interprets dual-tone multi-frequency signaling (DTMF) digits entered on a keypad. It matches the intent based on that input in the same way it matches the intent when you speak an utterance. This provides for greater flexibility for customers to interact with your
Customers can now choose how they want to enter sensitive information, such personal details or account numbers, on their keypads, while still using the natural language understanding engine behind Amazon Lex to converse with an Amazon Lex bot through Amazon Connect.
In this post, I explain how to create an Amazon Lex bot for use in an Amazon Connect contact flow. You can even try out my version in real time.
Overview
This solution includes the following tasks:
- Create an Amazon Lex bot – Provide a name and select other settings for your bot.
- Configure the bot – Update the settings for the bot to define how it behaves. This includes the following steps:
- Create intents – An intent is an action that a customer wants to perform, such as getting their account balance. A bot could have one or more intents.
- Add slots – The slots define the data that a customer must provide to fulfill the intent.
- Configure the intent – Choose the collection of utterances and slots that match the customer’s intent based on their input, and then determines what happens next.
- Configure the bot error handling – Configure how the bot handles errors, such as when the caller’s utterance is not understood.
- Build and test the bot – Make sure that the bot works as intended.
- Publish the bot and create an alias – Publish the bot to make it available to interact with.
- Add the bot to your Amazon Connect instance – Add the bot to your instance so you can use it in a contact flow.
- Create a contact flow and add the bot – Create a contact flow and define how the bot interacts with callers.
- Assign the contact flow to a phone number – Choose the number that customers can call to start the contact flow that includes the bot.
- Try it – Call the number you assigned the contact flow to so you try it out.
For this walkthrough, imagine that you are working in a development environment. Skip using an AWS Lambda function to integrate this into a backend database that validates information, and just read back sample data.
Walkthrough
To follow along, you need the following:
- An active AWS account.
- An Amazon Connect instance created in the US East (N. Virginia) Region. After you create your instance, claim a phone number for it. For more information, see Getting Started with Amazon Connect.
Create an Amazon Lex bot
Create a custom bot to demonstrate the Press or Say integration with Amazon Connect. The bot prompts callers to press or say a number that matches the menu option for the task to complete. In this case, the input is checking their account balance.
- If you are creating your first bot, choose Get Started. Otherwise, choose Bots, Create.
- On the Create your Lex bot page, choose Custom bot and provide the following information:
- Bot name – For this demo, name the bot AccountBalance.
- Output voice – Select the voice for your bot to use when speaking to callers. The default voice for Amazon Connect is Joana.
- Session timeout – Choose how long the bot should wait to get input from a caller before ending the session.
- COPPA – Choose whether the bot is subject to the Child Online Privacy Protection Act.
- User utterance storage – Choose Store.
- Choose Create.
Configure the Amazon Lex bot
Determine how the bot responds to customers by providing intents, sample utterances, slots for input, and error handling.
Create intents
For this example, configure the bot with two intents: one to look up account information, and another to speak with an agent.
- Choose the + icon next to Intents, and choose Create new intent.
- Name the intent AccountLookup.
- Create another intent, and name it SpeakToAgent.
Add sample utterances
After defining the intents, add some sample utterances.
- Select the AccountLookup intent.
- Add a sample utterance, such as “Check my account balance” (don’t include the quotes), and choose the + icon.
- Add a second utterance, “One” (without the quotes), and choose the + icon.
This assigns the utterance of “one” or key press of “1” to the AccountLookup intent.
- Select SpeakToAgent.
- Add a sample utterance, such as “Speak to an agent,” and choose +.
- Add a second utterance, “Two” (without the quotes), and choose + icon.
Add slots
Before the bot can respond with the caller’s account balance, it needs the account number.
- Under Slots, add a slot named AccountNumber.
- For Slot type, select AMAZON.NUMBER.
- For Prompt, add the text to be spoken when the call is answered. To highlight the new DTMF support, ask callers to enter their account number using their keypad. For example, “Using your touch-tone keypad, please enter your account number.”
- Make sure that the Required check box is selected, and choose the + icon.
Add responses
Now that you have intents, utterances, and a slot, add the responses that the bot provides to callers. Because you are creating a simple bot for this example, you are not hooking up the bot to look up real customer data. The example bot responds with text strings that you add, regardless of the account number that a caller provides.
- Select the AccountLookup intent.
- In the Response section, add a message for the bot to say to customers. For example, “The balance for your account is $2,586.34.”
- Choose Save Intent.
- For the SpeakToAgent intent, add a message that lets callers know that their call is being connected to an agent. For example, “Okay, an agent will be with you shortly.”
- Choose Save Intent.
Build and Test the Amazon Lex bot
After you create your bot, make sure it works as intended before you publish it.
- To enable the Test Bot window, choose Build. It may take a minute or two.
- When it is finished building, choose Test Chatbot.
- In the Test Chatbot pane, type messages in the chat window.
- To test the AccountLookup intent, type “1” (without the quotes), and then type an account number.
- To confirm that the SpeakToAgent intent is working, type “2” (without the quotes).
Publish the Amazon Lex bot and create an alias
Next, publish the bot so that you can add it to a contact flow in Amazon Connect.
- Choose Publish.
- Provide an alias for your bot. Use the alias to specify this version of the bot in the contact flow, for example, Blog.
- Choose Publish.
Add the Amazon Lex bot to an Amazon Connect instance
To use a bot in your contact flow, add the bot to your Amazon Connect instance. You can only add bots created under the same AWS account and in the same Region as your instance.
- Select the Instance Alias of the instance to which to add the bot.
- Choose Contact flows.
- Under Amazon Lex, choose + Add Lex Bot.
- Select the AccountBalance bot and choose Save Lex Bots. If you published the bot after you opened the settings for your instance, reload the page to get it to show up.
Create a contact flow and add your Amazon Lex bot
Next, create a new contact flow that uses your Amazon Lex bot.
Create the contact flow
When you create the contact flow, you can configure the message played to callers.
- Log in to your Amazon Connect instance with an account that has permissions for contact flows and Amazon Lex bots.
- Choose Routing, Contact flows, Create contact flow, and type a name.
- Under Interact, drag a Get customer input block onto the designer, and connect it to the Entry point block.
- Open the Get customer input block, and choose Text to speech (Ad hoc), Enter text.
- Type a message that provides callers with information about what they can do. For example, use a message that matches the intents used in the bot, such as “To check your account balance, press or say 1. To speak to an agent, press or say 2.”
Add the Amazon Lex bot to your contact flow
The bot is defined as the method of getting customer input.
- In the Get customer input block, select Amazon Lex.
- For Name, use AccountBalance. For Alias, use Blog.
- To specify the intents, choose Add a parameter under Intents.
- Type AccountLookup, and choose Add another parameter.
- Type SpeakToAgent, and choose Save.
Finish the contact flow
After the caller interacts with the bot, finish the contact flow to complete the call for the customer.
- If the caller presses 1 to get their account balance, use a Prompt block to play a message and disconnect the call.
- If the caller presses 2 to speak to an agent, use a Set queue block to set the queue and transfer the caller to the queue, which ends the contact flow.
To complete the AccountLookup intent:
- Under Interact, drag a Play prompt block to the designer, and connect the AccountLookup node of the Get customer input block to it. After the customer gets their account balance from the Amazon Lex bot, the message in the Play prompt block plays.
- Under Terminate/Transfer, drag a Disconnect / hang up block to the designer, and connect the Play prompt block to it. After the prompt message plays, the call is disconnected.
To complete the SpeakToAgent intent:
- Add a Set queue block and connect it to the SpeakToAgent node of the Get customer input block.
- Add a Transfer to queue block and connect the Set queue block Success and Error nodes to it. You could also add a message that plays when the call cannot be transferred because the queue is full or an error occurs.
- Choose Save & Publish.
Your finished contact flow looks something like the following:
Assign the contact flow to a phone number
When callers call in to your contact center, the contact flow to which they are sent is the one assigned to the telephone number that they dialed. To make the new contact flow active, assign it to a phone number for your instance.
- Open the Amazon Connect Dashboard.
- Choose View phone numbers.
- Select the phone number to which to assign the contact flow.
- Add a description.
- In the Contact flow/IVR menu, choose the contact flow that you just created.
- Choose Save.
Try it
You can try the bot and contact flow that I created for this post in the Amazon Connect demo environment. Dial 206-607-8617, and follow the prompts.
Summary
In this post, I showed you how to create an Amazon Connect contact flow to take advantage of Press or Say functionality in an Amazon Lex bot and provide automated assistance to your customers.
Through the power of Amazon Lex conversational interfaces, your customers can now choose how best to provide input, and you can better route their calls to the appropriate bot or agent. I look forward to seeing all the wonderful things you will create with these great new features.
相關推薦
Amazon Connect with Amazon Lex Press or Say Input
You’re sitting in a public place and need to contact customer support over the phone. Perhaps you’re traveling and need to confirm or change a res
New – Amazon Connect and Amazon Lex Integration
I’m really excited to share some recent enhancements to two of my favorite services: Amazon Connect and Amazon Lex. Amazon Connect is a self-servi
Amazon Connect 和 Amazon Lex 聊天機器人
藉助 Amazon Connect,您可以快速輕鬆地建立基於雲的聯絡中心,從而建立動態聯絡流,為呼叫方提供個性化體驗。Amazon Lex 是一種可以建立智慧對話“聊天機器人”的服務,您可以利用它將聯絡流變為自然對話。呼叫方可以執行各種任務,例如更改密碼、查詢賬戶餘額或安排預約
Connect to Amazon Athena with federated identities using temporary credentials
Many organizations have standardized on centralized user management, most commonly Microsoft Active Directory or LDAP. Access to AWS resources is
Troubleshoot SMTP Connectivity or Timeout Issues with Amazon SES
2. Note the output. 3. If the connection times out, check your local firewall rules, routes, and access control lists (ACLs).
How to Troubleshoot High or Full Disk Usage with Amazon Redshift
SELECT q.query, trim(q.cat_text) FROM ( SELECT query, replace( listagg(text,' ') WITHIN GROUP (ORDER BY sequence), '\\n', ' ') AS cat_text FROM
Delete Bucket with Amazon S3 Console or AWS CLI
Warning: The following procedure permanently deletes any data in your S3 bucket. Data deleted and removed from a bucket can't be recovered. Bef
ServiceNow integration with Amazon Connect
The app on the ServiceNow store is available free of charge for existing customers of ServiceNow IT Service Management (ITSM) or ServiceNow C
Getting Started with Amazon Lex
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Zendesk integration with Amazon Connect
When customers need help, Zendesk Support enables your organization to track and prioritize support tickets in real-time, in a very easy to use so
CloudFusion,支持Dropbox, Sugarsync, Amazon S3, Google Storage, Google Drive or WebDAV
in use earth dropbox pytho ase wrapper ora rop nova Linux file system (FUSE) to access Dropbox, Sugarsync, Amazon S3, Google Storage, Goo
Segmenting brain tissue using Apache MXNet with Amazon SageMaker and AWS Greengrass ML Inference
In Part 1 of this blog post, we demonstrated how to train and deploy neural networks to automatically segment brain tissue from an MRI scan in a s
Tutorial for building a Web Application with Amazon S3, Lambda, DynamoDB and API Gateway
Tutorial for building a Web Application with Amazon S3, Lambda, DynamoDB and API GatewayI recently attended Serverless Day at the AWS Loft in downtown San
How Will Google Shopping Compete With Amazon? With Sci
This story is for Medium members.Continue with FacebookContinue with GoogleMedium curates expert stories from leading publishers exclusively for members (w
Save time and money by filtering faces during indexing with Amazon Rekognition
Amazon Rekognition is a deep-learning-based image and video analysis service that can identify objects, people, text, scenes, and activities, as w
Narrativ is helping producers monetize their digital content with Amazon Redshift
Narrativ, in their own words: Narrativ is building monetization technology for the next generation of digital content producers. Our product portf
How SimilarWeb analyze hundreds of terabytes of data every month with Amazon Athena and Upsolver
This is a guest post by Yossi Wasserman, a data collection & innovation team leader at Similar Web. SimilarWeb, in their own words: Si
Encrypting messages published to Amazon SNS with AWS KMS
Amazon Simple Notification Service (Amazon SNS) is a fully managed pub/sub messaging service for decoupling event-driven microservices, distribute
Authenticate Using AWS Directory Service with Amazon QuickSight
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So