-
-
Save babakc/39292a78bc7e1f30246d3ca01b2996bb 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 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