File size: 1,368 Bytes
3060f32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: "3.1"
rules:
- rule: Handle Fallback
  steps:
  - intent: nlu_fallback
  - action: action_chat
- rule: Handle slot value and re-ask if necessary
  condition:
    - slot_was_set:
        - data: null
  steps:
    - action: action_free_flow
- rule: Activate form loop
  steps:
  - intent: free_flow
  - action: form_rasa
  - active_loop: form_rasa

- rule: Submit form
  condition:
  - active_loop: form_rasa 
  steps:
  - action: form_rasa
  - active_loop: null
  - slot_was_set: 
    - requested_slot: null
  - action: action_free_flow

- rule: activate form loop
  steps:
  - intent: strict_flow
  - action: basic_form
  - active_loop: basic_form

- rule: Intruption in form
  condition:
  - active_loop: basic_form
  steps:
  - intent: chat
  - action: action_chat
  - action: basic_form
  - active_loop: basic_form

- rule: Intruption in strict flow
  condition:
  - active_loop: basic_form
  steps:
  - intent: strict_flow
  - action: basic_form
  - active_loop: basic_form

- rule: submit form rutvi
  condition:
    - active_loop: basic_form
  steps:
  - action: basic_form
  - active_loop: null
  - action: action_submit_form

- rule: chat
  steps:
  - intent: chat
  - action: action_chat
  
- rule: Resume strict flow in form
  condition:
  - active_loop: basic_form
  steps:
  - intent: strict_flow
  - action: basic_form
  - active_loop: basic_form