Slot misidentified

I am developing a chatbot that uses Forms, however, the slot is misidentified and it gets looped, there are two date fields notification date and termination date, and right after the first date entity, I see that it matched the second entity, which is wrong, I have already added the method slot_mappings to the form class to force the correct binding between intent and entity, with no success.

rasa 1.10.3 rasa-sdk 1.10.1 rasa-x 0.29.1

Using REST API to interact with chatbot.

The problem is that both entities are identical.

Try using a validation funtion to change the values. Something like this:

def validate_notification_date(self, value, dispatcher, tracker, domain):
	if tracker.get_slot('last_employment_date') is None:
		return {"last_employment_date": value, "notification_date": None}
	else:
		return {"notification_date": value}

I’m not sure if you need to change the value of requested_slot.

1 Like

Thanks for your help Gehová! I have created a validation function that took care of that issue, with that in mind I did more validations on other fields.