@erohmensing Sorry, for this i uploaded a sample code, actually my original code looks like this
class ValidateBuyHomeForm(FormValidationAction):
def name(self) -> Text: return "validate_buy_form" @staticmethod def name_of_slot() -> List[Text]: """Database of supported cuisines""" return ["name","pre_city", "cost", "property_type","bedrooms","bathrooms", "months","phone_number","email"] def validate_slot( self, value: Any, diapatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> Dict[Text, Any]: if value.lower() in self.name_of_slot: return {"name": value,"pre_city": value,"cost": value,"property_type": value, "bedrooms": value,"bathrooms": value,"months": value, "phone_number": value,"email": value} def submit( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> List[Dict]: dispatcher.utter_message("utter_submit_buy", tracker) return []class ValidateSellHomeForm(FormValidationAction):
def name(self): return "validate_sell_form" @staticmethod def name_of_slot() -> List[Text]: """Database of supported cuisines""" return ["name","address", "city", "zipcode","size","layout","time_to_sell","phone_number","email"] def validate_slot( self, value: Any, diapatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> Dict[Text, Any]: if value in self.name_of_slot: return {"name": value,"address": value,"city": value,"zipcode": value, "size": value,"layout": value,"time_to_sell": value,"phone_number": value,"email": value} def submit( self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any], ) -> List[Dict]: dispatcher.utter_message("utter_submit_buy", tracker) return []
My form name is also buy_form. My forms looks like this:
forms:
buy_form:
name: - type: from_text action: utter_ask_name auto_fill: false pre_city: - type: from_text action: utter_ask_pre_city auto_fill: false cost: - type: from_text action: utter_ask_cost auto_fill: false property_type: - type: from_text action: utter_ask_property_type auto_fill: false bedrooms: - type: from_text action: utter_ask_bedrooms auto_fill: false bathrooms: - type: from_text action: utter_ask_bathrooms auto_fill: false months: - type: from_text action: utter_ask_months auto_fill: false phone_number: - type: from_text action: utter_ask_phone_number auto_fill: false email: - type: from_text action: utter_ask_email auto_fill: false
So. this is not the problem in naming system it should be something else. This is the warning i get in every slot :
