- Newest
- Most votes
- Most comments
The error you're encountering suggests that there's a mismatch between your intent configuration and what Amazon Lex is expecting. Even though you haven't explicitly set 'ElicitSlot' as the next step in your slot configuration, it seems that somewhere in your dialog code hook or Lambda function, an 'ElicitSlot' action is being triggered.
This error typically occurs when the bot tries to elicit a slot that is not marked as required for the intent. In your case, it's trying to elicit the 'matricula' slot, but this slot might not be set as required in your intent configuration.
To resolve this issue, you can try the following steps:
-
Double-check your intent configuration and ensure that the 'matricula' slot is marked as required for the intent 'DarMatriculaDNI'.
-
Review your Lambda function or dialog code hook. It's possible that the code is attempting to re-elicit the 'matricula' slot, even if it's not explicitly set in the Lex console. Look for any 'ElicitSlot' actions in your code that might be targeting this slot.
-
If you need to re-elicit the 'matricula' slot at any point in the conversation, make sure it's marked as required in the intent configuration. Slots that are not required cannot be elicited using next steps unless they are marked as required for the intent.
-
If you're using a Lambda function to process slot values, ensure that it's not inadvertently setting the dialog action type to 'ElicitSlot' for the 'matricula' slot.
-
Check if you have any conditional branching or complex conversation flows that might be leading to an 'ElicitSlot' action for this slot.
Remember, even if you don't see 'ElicitSlot' explicitly set in the Lex console, it can be triggered by your code hook or Lambda function. The key is to ensure that any slot you want to elicit (whether through the console settings or your code) must be marked as required for the intent.
Sources
Re-eliciting slots - Amazon Lex
Slots - Amazon Lex
Lambda Function Input Event and Response Format - Amazon Lex V1
Relevant content
asked 8 years ago
asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
