Skip to content

Instantly share code, notes, and snippets.

@JustinaPetr
Created January 10, 2019 16:05
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 JustinaPetr/970a5cc2aa0a78a1623c808f842f22ec to your computer and use it in GitHub Desktop.
Save JustinaPetr/970a5cc2aa0a78a1623c808f842f22ec to your computer and use it in GitHub Desktop.
class RestaurantForm(FormAction):
"""Example of a custom form action"""
def name(self):
"""Unique identifier of the form"""
return "restaurant_form"
@staticmethod
def required_slots(tracker: Tracker) -> List[Text]:
"""A list of required slots that the form has to fill"""
return ["cuisine", "num_people", "outdoor_seating",
"preferences", "feedback"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment