Skip to content

Instantly share code, notes, and snippets.

@crazyrohila
Created December 4, 2018 21:30
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 crazyrohila/fbcc63b2220edf9ee95a78bcfb1b949f to your computer and use it in GitHub Desktop.
Save crazyrohila/fbcc63b2220edf9ee95a78bcfb1b949f to your computer and use it in GitHub Desktop.
lex-workflow-blog-intent-interface
# 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