By using AWS re:Post, you agree to the AWS re:Post Terms of Use

How do I configure the list picker in Amazon Connect chat and Amazon Lex V2?

3 minute read
0

I want to configure the list picker with Amazon Connect contact center chat and Amazon Lex chatbot.

Resolution

To create an Amazon Lex V2 chatbot and configure the list picker in Amazon Connect, complete the following steps.

Create your AWS Lambda function

Complete the following steps:

  1. Open the Lambda console in the Region where your contact center is deployed.
  2. In the navigation pane, choose Applications.
  3. Choose Create application.
  4. Choose the Serverless application tab.
  5. In the Public applications search bar, enter amazon-connect-interactive-messages-example-lex-v2, and then select the amazon-connect-interactive-messages-example-lex-v2 option.
  6. On the Review, configure, and deploy page, confirm the Application details, and then choose Deploy.

Create an Amazon Lex chatbot and connect to your AWS Lambda function

Note: It's a best practice to use Amazon Lex V2. Amazon Lex V1 isn't supported after September 2025.

Complete the following steps:

  1. Download InteractiveMessageBotV2 (zip file).
  2. Open the Amazon Lex console.
  3. Choose Action, and select Import.
  4. In the Bot name field, enter InteractiveMessageBot.
  5. Choose Browse file, select InteractiveMessageBotV2, and then choose Open.
  6. Choose IAM permissions.
  7. Choose Children's Online Privacy Protection Act (COPPA).
  8. Choose Import.
  9. In the navigation pane, choose Bots.
  10. Choose the bot that you want to attach a Lambda function to.
  11. In the navigation pane, choose Deployment. And then choose Aliases.
  12. Choose the alias that you want to attach a Lambda function to.
  13. In the Languages section, select the language that you want a Lambda function to. For this example, select English (US).
  14. In the Source menu, choose the name of the Lambda function that you want to attach. The function name begins with serverlessrepo-amazon-con-InteractiveMessagingLamb-.
  15. In the Lambda function version or alias menu, choose the version or alias of the Lambda function that you want to use. Then select Save. The same Lambda function is used for all intents in a language supported by the bot.

Build and test the chatbot locally

Complete the following steps:

  1. Open the Amazon Lex console.
  2. Choose Build.
  3. After the build is complete, choose Test Chatbot.
  4. In the Chat with your bot chat box, enter help.
  5. Choose Save, and then choose Publish.

Configure your Lambda function and Amazon Lex in Amazon Connect

Complete the following steps:

  1. Open the Amazon Connect console.
  2. In the navigation pane, choose Flows.
  3. In the Amazon Lex section, choose a name for your bot. Then choose +Add Amazon Lex Bot. and the AWS Lambda function created from the previous steps.
  4. Choose Flows and then select Import. Then upload the InteractiveMessaging Flow.
  5. Confirm that the Get customer input block is the same Amazon Lex Bot.
  6. In the Amazon Connect dashboard, choose Test Chat, and then choose Test Settings.
  7. Select the Contact that you set up in the previous step. For more information, see Test voice, chat, and task experiences in Amazon Connect.

Troubleshoot list picker configuration

Complete the following steps:

  1. In Amazon Connect, check that Set logging behavior is activated. Then check the logs for errors. In the Contact flow, make sure that the correct Alias is selected and that it matches the Amazon Lex console.
  2. In your Lambda instance, choose Monitor and then choose View CloudWatch logs to check for errors.

Related Information

Add Amazon Lex interactive messages for customers in chat

Easily set up interactive messages for your Amazon Connect chatbot