xxxxxxxxxx
utter_cheer_up:
- text: "Here is something to cheer you up:"
image: "https://i.imgur.com/nGF1K8f.jpg"
utter_did_that_help:
- text: "Did that help you?"
utter_happy:
- text: "Great, carry on!"
xxxxxxxxxx
class BookAppointmentForm(FormAction):
def name(self):
return "bookAppointment_form"
@staticmethod
def required_slots(tracker: Tracker) -> List[Text]:
return ['name', 'phone', .]
xxxxxxxxxx
class CarSearchForm(FormAction):
def name(self):
return "carSearch_form"
@staticmethod
def required_slots(tracker: Tracker) -> List[Text]:
return ['make', 'model', .]
xxxxxxxxxx
## survey stop
* greet
- utter_greet
* affirm
- health_form
- form{"name": "health_form"}
* out_of_scope
- utter_ask_continue
* deny
- action_deactivate_form
- form{"name": null}
- utter_goodbye
xxxxxxxxxx
## survey continue
* greet
- utter_greet
* affirm
- health_form
- form{"name": "health_form"}
* out_of_scope
- utter_ask_continue
* affirm
- health_form
- form{"name": null}
- utter_slots_values