File size: 3,314 Bytes
9a79634
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: "3.1"

stories:
  - story: Greet and check balance
    steps:
      - intent: greet
      - action: utter_greet
      - intent: query_balance
      - action: action_check_balance
      - intent: goodbye
      - action: utter_goodbye

  - story: Greet and send money complete flow
    steps:
      - intent: greet
      - action: utter_greet
      - intent: send_money
        entities:
          - recipient: "John"
          - amount: 100
      - action: send_money_form
      - active_loop: send_money_form
      - active_loop: null
      - action: utter_send_money_form_complete
      - intent: goodbye
      - action: utter_goodbye

  - story: Greet and send money partial information (ask for amount)
    steps:
      - intent: greet
      - action: utter_greet
      - intent: send_money
        entities:
          - recipient: "Sarah"
      - action: send_money_form
      - active_loop: send_money_form
      - slot_was_set:
          - requested_slot: amount
      - action: utter_send_money_ask_amount
      - intent: send_money
        entities:
          - amount: 50
      - action: send_money_form
      - active_loop: null
      - action: utter_send_money_form_complete
      - intent: goodbye
      - action: utter_goodbye
      
  - story: Send money with missing recipient
    steps:
      - intent: send_money
        entities:
          - amount: 100
      - action: send_money_form
      - active_loop: send_money_form
      - slot_was_set:
          - requested_slot: recipient
      - action: utter_send_money_ask_recipient
      - intent: send_money
        entities:
          - recipient: "Mom"
      - action: send_money_form
      - active_loop: null
      - action: utter_send_money_form_complete

  - story: Chitchat and then check balance
    steps:
      - intent: chitchat
      - action: utter_chitchat
      - intent: query_balance
      - action: action_check_balance

  - story: Check balance for specific account
    steps:
      - intent: query_balance
        entities:
          - account_type: "savings"
      - action: action_check_balance

  - story: Out of scope then redirect to supported feature
    steps:
      - intent: out_of_scope
      - action: utter_out_of_scope
      - intent: query_balance
      - action: action_check_balance

  - story: Send money then check balance
    steps:
      - intent: send_money
        entities:
          - recipient: "Mom"
          - amount: 200
      - action: send_money_form
      - active_loop: send_money_form
      - active_loop: null
      - action: utter_send_money_form_complete
      - intent: query_balance
      - action: action_check_balance

  - story: Greet, chitchat, and then send money
    steps:
      - intent: greet
      - action: utter_greet
      - intent: chitchat
      - action: utter_chitchat
      - intent: send_money
      - action: send_money_form
      - active_loop: send_money_form
      - slot_was_set:
          - requested_slot: recipient
      - intent: send_money
        entities:
          - recipient: "David"
      - action: send_money_form
      - slot_was_set:
          - requested_slot: amount
      - intent: send_money
        entities:
          - amount: 75
      - action: send_money_form
      - active_loop: null
      - action: utter_send_money_form_complete