-
-
Save charliejllewellyn/6f76379d78625362e784dbc6b36b4547 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def complete(event): | |
response = { | |
"dialogAction": { | |
"type": "ElicitSlot", | |
"message": { | |
"contentType": "PlainText", | |
"content": "Your application status has been updated as: " + getDynamoData(event) + ". Thank you for your call, goodbye." | |
}, | |
"intentName": "callDescription", | |
"slots": { | |
"callDescriptionSlot": event['currentIntent']['slots']['callDescriptionSlot'], | |
"emailAddress": event['currentIntent']['slots']['emailAddress'], | |
"passwordOne": event['currentIntent']['slots']['passwordOne'], | |
"passwordTwo": event['currentIntent']['slots']['passwordTwo'] | |
}, | |
"slotToElicit" : "emailAddress" | |
} | |
} | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment