Oliver1
(Oliver)
September 25, 2021, 7:47am
1
Hi everyone,
I am new to RASA and I’m using stories to ask user for details via form.
However, it redirects to Fallback after form is deactivated.
Below is the configuration I am using:
policies:
- name: FormPolicy
- name: RulePolicy
- name: MemoizationPolicy
max_history: 50
- name: AugmentedMemoizationPolicy
max_history: 0
- name: FallbackPolicy
nlu_threshold: 0.6
core_threshold: 0.6
ambiguity_threshold: 0.1
- name: TEDPolicy
max_history: 5
epochs: 100
constrain_similarities: true
model_confidence : linear_norm
Thanks for your help in advance!!
ChrisRahme
(Chris Rahmé)
September 25, 2021, 4:27pm
2
Hello, can you share the stories and/or rules related to this form?
You need to implement an action after the form has been completed. For example:
- rule: Submit form_log_in
condition:
- active_loop: form_log_in
steps:
- action: form_log_in
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: action_submit_form_log_in # Do this after the form has been completed
Oliver1
(Oliver)
September 25, 2021, 5:58pm
3
Hi @ChrisRahme , this is how one of my story and rule looks like:
- story: story2
steps:
- intent: greet
- action: utter_greet
- intent: book_meeting
- action: meeting_form
- active_loop: meeting_form
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: action_submit
- rule: activate meeting form
steps:
- intent: book_meeting
- action: meeting_form
- active_loop: meeting_form
action_submit part in the story never works, it redirects to Fallback action.
ChrisRahme
(Chris Rahmé)
September 25, 2021, 8:06pm
4
Try to add a rule for action_submit
as well:
- rule: Submit meeting_form
condition:
- active_loop: meeting_form
steps:
- action: meeting_form
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: action_submit
Oliver1
(Oliver)
September 26, 2021, 6:33am
5
@ChrisRahme
Can’t do like that because the story will divert after action_submit.
e.g.
- action: action_submit
- action: sure_to_book
- intent: affirm
- action: meeting_booked
or
- action: action_submit
- action: sure_to_book
- intent: deny
- action: meeting_not_booked
ChrisRahme
(Chris Rahmé)
September 26, 2021, 9:13am
6
It doesn’t matter since it happens after action_submit
, there will be no contradictions