-
-
Save babakc/61c2e569fbb4c5a9b23e46bbddeece0f 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 chkUserId(slots, sessionAttributes): | |
if((slots['UserID'] is None) or ((slots["UserID"] is not None) and (len(slots["UserID"]) != 6))): | |
messageContent = "That format seems incorrect. Let's try again. What is your user id?" | |
return elicit_slot("PlainText", messageContent, slots, "UserID", "None") | |
else: | |
return delegate_slot(slots, "userid") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment