Skip to content

Instantly share code, notes, and snippets.

@babakc
Created December 18, 2017 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save babakc/39292a78bc7e1f30246d3ca01b2996bb to your computer and use it in GitHub Desktop.
Save babakc/39292a78bc7e1f30246d3ca01b2996bb to your computer and use it in GitHub Desktop.
def chkDob(slots, sessionAttributes):
if(slots["DOB"] is None):
messageContent = "That format seems incorrect. Let's try again. What is your Date of Birth?"
return elicit_slot("PlainText", messageContent, slots, "DOB", "userid")
else:
return delegate_slot(slots, "dob")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment