-
Notifications
You must be signed in to change notification settings - Fork 18
/
remove_contact.yml
33 lines (33 loc) · 1.02 KB
/
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
30
31
32
33
flows:
remove_contact:
name: remove a contact
description: remove a contact from your contact list
nlu_trigger:
- intent:
name: remove_contact
confidence_threshold: 0.9
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