Can anyone give me an working example of name form? It is sound to be so simple task, but with Rasa I can not make it work. It should be as simple as to fill out name and surname, but I can not make it work for a week now! I am getting all kind of errors: my name form detects another intent in the middle of the form instead of filling name from text. Please anyone help…
Hello, can you show me your domain file to help you?
first_name:
type: text
influence_conversation: false
mappings:
- type: from_entity
entity: PERSON
conditions:
- active_loop: name_form
requested_slot: first_name
- type: from_text
conditions:
- active_loop: name_form
requested_slot: first_name
last_name:
type: text
influence_conversation: false
mappings:
- type: from_entity
entity: PERSON
conditions:
- active_loop: name_form
requested_slot: last_name
- type: from_text
conditions:
- active_loop: name_form
requested_slot: last_name
name_form:
required_slots:
- first_name
- last_name
It should works. Can you show how you activate form? Also provide conversations with errors to understand more.
I think you must use an ACTION called FORMS.
This is an example of how my name form detects intent out_of_scope and gives reply utter_out_of_scope - (I can not help you with that, I am sorry) in the middle of the form. This drives me crazy. Why in the middle of the form does it detect another intent… My form has slots, which are supposed to be filled from text and I assume regardless of any intent, entity, etc.
Please show your rules or stories with forms.
-
rule: Greet when greeted user and ask his name
steps:
-
intent: greet
-
action: utter_introduce
-
action: name_form
-
active_loop: name_form
-
-
rule: Submit name form
condition:
- active_loop: name_form
steps:
-
action: name_form
-
active_loop: null
-
slot_was_set:
- requested_slot: null
-
action: utter_submit
-
action: utter_name_form_slots_values