-
Notifications
You must be signed in to change notification settings - Fork 18
/
add_contact.yml
35 lines (35 loc) · 1.06 KB
/
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
32
33
34
35
flows:
add_contact:
description: add a contact to your contact list
name: add a contact
nlu_trigger:
- intent:
name: add_contact
confidence_threshold: 0.9
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