rasa forms code example
Example 1: two form in rasa
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!"
Example 2: two form in rasa
class BookAppointmentForm(FormAction):
def name(self):
return "bookAppointment_form"
@staticmethod
def required_slots(tracker: Tracker) -> List[Text]:
return ['name', 'phone', .......]