Skip to content

Instantly share code, notes, and snippets.

@charliejllewellyn
Created October 16, 2018 14:02
Show Gist options
  • Save charliejllewellyn/6f76379d78625362e784dbc6b36b4547 to your computer and use it in GitHub Desktop.
Save charliejllewellyn/6f76379d78625362e784dbc6b36b4547 to your computer and use it in GitHub Desktop.
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