Amazon Connect error using Lex as customer input

2

I am trying to create a demo call centre using AWS connect.

Part of my contact flow makes use of the "Get Customer Input", as I want to use an Amazon lex bot. I have created to divert to a specific working queue. For example, if the user says "sales" they should be directed to the sales queue.

I have tested the Lex bot within the Lex console and it works as intended.

However when testing the Lex integration within AWS connect it will always follow the "error" path on the block after a user says something on the phone.

Here is the CloudWatch log showing the Error result of the module.

{
   "Results": "Error",
   "ContactFlowName": "Inbound Flow",
   "ContactFlowModuleType": "GetUserInput",
   "Timestamp": "2022-02-12T18:06:10.940Z"
}

Here is the contact flow: https://i.stack.imgur.com/dEc7n.png

Here is the settings for the "Get Customer Input Block": https://i.stack.imgur.com/3mKUJ.png

Here is a test of the Lex bot in the Lex dashboard: https://i.stack.imgur.com/dyd6p.png

Any help would be greatly appreciated.

3개 답변
5
수락된 답변

If you're using LexV2 make sure you set the proper Language Attribute as well. Easiest way is using the set Voice block in your Contact Flow, on the very bottom of the block you can enable "set language attribute".

profile pictureAWS
faddi
답변함 2년 전
  • Thank you! This turned out to be the answer. The language set of the Lex Bot was english(UK). By adding a Voice block with the language attribute of english(UK) it fixed the issue. I think it would be nice to be able to see why an error occurs in the a block.

2

Please check if the intents in the Get customer input block matches the intents in Amazon Lex. Also, save and publish the contact flow.

You can refer to this documentation for a guide on adding an Amazon Lex bot to Amazon Connect: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-lex.html

profile picture
joahna
답변함 2년 전
  • Thanks Joahna, I made sure these were correct.

  • Thanks Joahna. It took me nearly 2 days until I saw your post. Forgot to save and publish.

1

I had this issue on a test contact flow in Spanish. I had two bot aliases defined for my bot. I finally set "TestBotAlias" within the "Get customer input" block to make it work.

AWS
Javier
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠