forked from RasaHQ/rasa-calm-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_contact.yml
31 lines (31 loc) · 994 Bytes
/
add_contact.yml
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
flows:
add_contact:
description: add a contact to your contact list
name: add a contact
steps:
- collect: "add_contact_handle"
description: "a user handle starting with @"
- collect: "add_contact_name"
description: "a name of a person"
- collect: "add_contact_confirmation"
ask_before_filling: true
next:
- if: not slots.add_contact_confirmation
then:
- action: utter_add_contact_cancelled
next: END
- else: add_contact
- id: add_contact
action: add_contact
next:
- if: "slots.return_value = 'success'"
then:
- action: utter_contact_added
next: END
- if: "slots.return_value = 'already_exists'"
then:
- action: utter_contact_already_exists
next: END
- else:
- action: utter_add_contact_error
next: END