0

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.

rici
  • 234,347
  • 28
  • 237
  • 341
Akhil Gudimetla
  • 342
  • 3
  • 11

1 Answers1

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.

Read this, this for details.

sid8491
  • 6,622
  • 6
  • 38
  • 64