I am desperately seeking help because I have not got on for 3 days. The following problem is with me: I want to validate the content of intent ['slots'] ['SlotName'] ['value'], if the input actually matches a value in my custom slot type. I have already tried the following options:
if 'SlotName' in intent ['slots']:
if 'value' in intent ['slots'] ['SlotName']:
if intent ['slots'] ['SlotName'] ['value'] is not None:
test = intent ['slots'] ['SlotName'] ['value']
This does not work. I have planned to make a correctly validated input (value) a query on my DynamoDB. If the input (value) is not validated, Cloudwatch immediately spits an ItemError. Can someone help me please? About a code snippet I would be very grateful.
Greetings and THANKS