I configured an intent with some utterances, slots, and fulfillment and I also attached validation code hook and fulfillment code hook. But I am facing with one scenario that if the intent is triggered the configured slots must be omitted and it should directly go to the fulfillment. At last, I want to manage the slots by using conditional statements in code level.
Asked
Active
Viewed 76 times
1 Answers
0
Untick required checkbox on the Lex console for the slots and you are good to go.
Good practice is to validate slots in DialogCodeHook
but if you want you can do that in FulfillmentCodeHook
as well.
If you directly want to go to Fulfillment then uncheck the Initialization and validation code hook
under Lambda initialization and validation
in the Lex console and give the function name in Fulfillment section.

sid8491
- 6,622
- 6
- 38
- 64