I am using slot filling using Rasa Form. But the slots are setting twice and hence getting duplicate values.
domain file
entities:
- card4d
slots: card4d: type: unfeaturized auto_fill: false forms:
- payment_form
nlu.md
intent:card4d_entry
stories.md
- init_payment
- utter_confirm_intent
- utter_confirm_payment
- affirm OR confirm_payment_intent
- payment_form
- form{“name”: “payment_form”}
- form{“name”: null}
- utter_payment_slots_values
- utter_confirm_proceed_transaction
actions.py
class ActionPaymentForm(FormAction): def name(self) → Text: return “payment_form”
@staticmethod
def required_slots(tracker: Tracker) -> List[Text]:
return ["card4d"]
def submit(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any],
) -> List[Dict]:
dispatcher.utter_message(text="Great, Good Job!")
return []
When I am testing the bot in Rasa X, I get the following E2E stories:
You see the slots are getting filled twice. Please let me know what mistake I am doing here. Thank you