Bot not asking to fill Form Slots

Hi,

I am trying to create appointment bot , to enter date, time , email and phone and set an appointment, but the bot is not asking for fill any values . The log I have is

action_server_1  | DEBUG:rasa_core_sdk.forms:Request next slot 'date'
action_server_1  | DEBUG:rasa_core_sdk.executor:Successfully ran 'appointment_form'

Here is my appointment action :

class ActionAppointment(FormAction):
	def name(self):
		return 'appointment_form'
	
	@staticmethod
	def required_slots(tracker: Tracker) -> List[Text]:
		return ["date", "time", "email","phone"]
	
	def submit(self,dispatcher: CollectingDispatcher,tracker: Tracker,domain: Dict[Text, Any]):
		dispatcher.utter_template('utter_appointment_success', tracker)
		return []

I added the form on my domain.yml .

Here is my stories.md

## 1
* greet
    - utter_greet

## 2
* appointment
    - appointment_form
    - form{"name": "appointment_form"}
    - form{"name": null}

## 3
* greet
    - utter_greet
* appointment
    - appointment_form
    - form{"name": "appointment_form"}
    - form{"name": null}
* ask_isbot
    - action_ask_isbot
* goodbye
    - utter_goodbye

can’t figure out what is wrong. please help

Can you try to replace your requiered_slots function with this one :

@staticmethod
def required_slots(tracker) :
	return ["date", "time", "email","phone"]
1 Like

@isgaal thanks!. got this working

What is the reason it worked ?