Hi @alihejazi , check out this reply to my similar request. You should use a form action and then extract those unique fields from the user’s last response.
You can check out this post on how to use forms: Building contextual assistants with Rasa Forms
Rather than using a custom action for just filling a product slot, you could use the validate_[slot] method in forms to validate whenever the slot is filled.
For the slot value to be set to whatever the user enters, you can use sth like this in the slot_mapping function.
def slot_mappings(self) -> Dict[Text, Union[Dict, List[Dict]]]:
return {
"loan_amount": self.from_text(intent=None),
…
2 Likes