Created
December 4, 2018 21:30
-
-
Save crazyrohila/fbcc63b2220edf9ee95a78bcfb1b949f to your computer and use it in GitHub Desktop.
lex-workflow-blog-intent-interface
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
# Intent json structure with slot keys | |
flow = { | |
"slots": {} | |
} | |
# responseCard values, needs to be sent back to user for selection | |
slotResponses = {} | |
# Final fulfillment response | |
fulfillment_response = "Great Job!" | |
def getWorkflow(): | |
return flow | |
def getSlotResponses(current_slot): | |
return slotResponses[current_slot] | |
def getFulfillmentData(): | |
return fulfillment_response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment