Skip to content

Hindi Language Lex Bot Issue

0

Hi All,

I have created two lex bot Hindi and English language and integrated with amazon connect(Amazon connect and Lex both are configured in N. Virginia Region) The English language bot is functioning correctly. However, for the Hindi language bot, we are encountering a new issue where the call is not reaching the "Get Customer Input" block. Instead, it is failing with the following error, Please assist

{ "Results": "Error", "ContactId": "03adafa2-aaee-4799-9e4a-6a0ed91eb577", "ContactFlowId": "arn:aws:connect:us-east-1:543032853012:instance/125d4a4f-946b-4b2d-aae7-7f7ee3be569c/contact-flow/53875fc4-da48-4e2d-b743-b01d8aa2d512", "ContactFlowName": "Test", "ContactFlowModuleType": "GetUserInput", "Identifier": "0f1839b8-0d87-4c0a-92db-efde0fe6a8a0", "Timestamp": "2025-05-12T10:55:30.522Z", "ErrorDetails": { "ErrorCode": "BadRequestException", "Message": "The service cannot process the request" }

Regards Mahendra Kumar

2 Answers
0

It appears you're experiencing an integration issue between Amazon Connect and your Hindi language Lex bot. This is a common problem that can occur even when one language (in this case, English) is working correctly. Here are some steps you can take to troubleshoot and potentially resolve the issue:

  1. Language Attribute: Ensure you've correctly set the language attribute for Hindi in your Connect flow. Even if you've selected a Hindi voice in the 'set voice' block, you need to explicitly set the language attribute to the correct code for Hindi (which is 'hi-IN') in the flow component. This is a crucial step that's often overlooked.

  2. Bot Configuration: Verify that your Lex bot is properly configured to support Hindi. Make sure you have intents, sample utterances, and responses set up for the Hindi language in your Lex bot.

  3. Alias and Version: Double-check that the alias you're using in Connect points to a version of your bot that includes Hindi language support.

  4. IAM Permissions: Ensure that the IAM role associated with your Connect instance has the necessary permissions to invoke the Lex V2 bot, specifically for the Hindi language version.

  5. Resource Quotas: Verify that you haven't exceeded any resource quotas when associating the bot with Connect, particularly for multiple language support.

  6. CloudWatch Logs: Examine the CloudWatch logs for both Connect and Lex to look for more detailed error messages that might provide additional clues about the cause of the 'BadRequestException' error.

  7. Session ID: Ensure you're not using an excessively long session ID. Keep it under 64 characters, as longer session IDs can cause issues.

If you've verified all these points and are still experiencing issues, you may need to start with a simplified setup. Create a basic flow and bot configuration with minimal Hindi language support, then gradually add complexity to identify where the issue occurs. If the problem persists, it may be necessary to contact AWS support for more in-depth troubleshooting, as they can access more detailed logs and configuration information.
Sources
Lex v2 with Connect not working | AWS re:Post
Amazon Lex language integration failures in my Amazon Connect instance. | AWS re:Post
Amazon Lex API Call Fails: "Invalid Bot Configuration: Amazon Lex could not access your Amazon Bedrock Agent" | AWS re:Post

answered 8 months ago
0

Hello,

This seems to suggest that there is an issue with the Lex bot itself.

I believe reviewing these few points are a good starting point to begin your troubleshooting:

  1. Make sure you've correctly set the language attribute for Hindi in your Connect flow. Even if you've selected a Hindi voice in the 'set voice' block, you need to explicitly set the language attribute to the correct code for Hindi (which is 'hi-IN') in the flow component.

  2. Verify that your Lex bot is properly configured to support Hindi. Make sure you have intents, sample utterances, and responses set up for the Hindi language in your Lex bot.

  3. Double-check that the alias you're using in Connect points to a version of your bot that includes Hindi language support.

If none of these work, I would suggest reaching out to AWS Support for a deeper dive.

AWS
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.