-
Notifications
You must be signed in to change notification settings - Fork 5
/
remove_contact.yml
29 lines (29 loc) · 961 Bytes
/
remove_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
flows:
remove_contact:
name: remove a contact
description: remove a contact from your contact list
steps:
- collect: "remove_contact_handle"
description: "a contact handle starting with @"
- collect: "remove_contact_confirmation"
ask_before_filling: true
next:
- if: "not slots.remove_contact_confirmation"
then:
- action: utter_remove_contact_cancelled
next: END
- else: remove_contact
- id: "remove_contact"
action: remove_contact
next:
- if: "slots.return_value == 'success'"
then:
- action: utter_remove_contact_success
next: END
- if: "slots.return_value == 'not_found'"
then:
- action: utter_contact_not_in_list
next: END
- else:
- action: utter_remove_contact_error
next: END