Slot filling impossible via initPayload. There is the following entry in the Webchat file: initPayload: “/intent_custom_action{“emailaddress"="max.mustermann@mail.de”}”
The intent “intent_custom_action” is the start intent of the bot. The relevant email address that was read out will be displayed. The slot “emailaddress” should be filled then according to the description .
NLU file:
intent:email
intent:create_todo
- todo open
- todo
- todo move to another person
Domain: entities:
- emailaddress slots: emailaddress: type: unfeaturized auto_fill: false forms:
- todo_form
- todo_wo_email_form
- email_form
Story:
story_slot_emailaddress_verwenden
- create_todo
- todo_wo_email_form
- form{“name”: “todo_wo_email_form”}
- slot{“requested_slot”: “problemdescription”}
- inform
- todo_wo_email_form
- slot{“problemdescription”: “/inform”}
- slot{“requested_slot”: “problemtitle”}
- inform
- todo_wo_email_form
- slot{“problemtitle”: “/inform”}
- form{“name”: null}
- slot{“requested_slot”: null}
- utter_todo_values
another test story:
story_slot_emailaddress_verwenden
- email_form
- form{“name”: “email_form”}
- slot{“requested_slot”: “emailaddress”}
- slot{“requested_slot”: “problemdescription”}
- create_todo
- todo_wo_email_form
- form{“name”: “todo_wo_email_form”}
- slot{“requested_slot”: “problemdescription”}
- inform
- todo_wo_email_form
- slot{“problemdescription”: “/inform”}
- slot{“requested_slot”: “problemtitle”}
- inform
- todo_wo_email_form
- slot{“problemtitle”: “/inform”}
- form{“name”: null}
- slot{“requested_slot”: null}
- utter_todo_values
The slot “emailaddress” will never filled. We tested it to use a form and to use without a form. The values are displayed once again in utter_todo_values. The slot is empty in both stories. The command create todo is performed and the values that the user had entered are displayed. Example: Discription: what should todo to fill the slot Short discription: Slot Emailaddress not filled
The displayed valuesin bot: Your Values: - E-Mail-Adresse: None
- Discription: what should todo to fill the slot
- Short discription: Slot Emailaddress not filled
Slots “problemdescription” and “problemtitle” works fine.
RASA_X_VERSION=0.32.1 RASA_VERSION=1.10.10 RASA_X_DEMO_VERSION=0.32.0