I am working on a project where i need to get the name and age from user.Suppose the i want to insert three people name and age.I was trying to call name form from action but i have getting error.`
i have tried this method:
class ActionHelloWorld(Action):
def name(self) -> Text:
return "action_hello_world"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
dispatcher.utter_message(text="Hello World!")
mode=tracker.get_slot("number")
for i in range(0,3):
return [FollowupAction('action_followup_check')]
You could take another approach and add slots for number_collected and finished_names. As you collect names increment number_collected. Use the dynamic form required_slots method to count when you’ve collected to set finished_names to a non-null value and the form will complete.