- Newest
- Most votes
- Most comments
The error you're encountering suggests that there might be an issue with how slot priorities are being set for some of your intents in Amazon Lex V2 when using boto3. Even though you've used the update_intent function to set priorities for all slots, it seems that for some reason, the priorities are not being properly applied or recognized for certain slots, specifically 'date' and 'number' in this case.
Here are a few things you can try to resolve this issue:
-
Double-check that you're using the correct slot names in your boto3 calls. Ensure that 'date' and 'number' are the exact names of your slots as they appear in the Lex console.
-
Make sure you're setting unique priority values for each slot within an intent. Priorities should be integer values, and each slot should have a distinct priority.
-
Verify that you're calling the update_intent function correctly and that it's returning a successful response. You might want to add error handling to catch and log any issues during the update process.
-
If you're creating the slots and intents in separate steps, ensure that the slots are fully created and available before attempting to set their priorities in the intent.
-
Try using the get_intent function after updating to verify that the changes have been applied correctly. This can help you identify if the issue is with the update process or with how Lex is interpreting the updated intent.
-
If the issue persists, you might need to delete and recreate the problematic intents and slots programmatically, ensuring that priorities are set during the initial creation process.
-
Consider reaching out to AWS support if the problem continues, as there might be an underlying issue with how the Lex V2 API is handling slot priorities in certain cases.
Remember, when working with AWS services programmatically, it's important to handle potential API errors and implement appropriate retry mechanisms, as transient issues can sometimes occur during API calls.
Sources
AWS lex slot type values are adding. | AWS re:Post
Cloudformation AWS Lex Bot Intent | AWS re:Post

I have fetched intent data after adding slot priorities and Ive observed that everything is fine as its supposed to be. Also, the update intent method is giving valid and successful responses as well