forked from RasaHQ/rasa-calm-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
remove_contact.yml
38 lines (34 loc) · 1018 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
30
31
32
33
34
35
36
37
version: "3.1"
actions:
- remove_contact
slots:
remove_contact_name:
type: text
mappings:
- type: custom
remove_contact_handle:
type: text
mappings:
- type: custom
remove_contact_confirmation:
type: text
mappings:
- type: custom
responses:
utter_ask_remove_contact_handle:
- text: What's the handle of the user you want to remove?
utter_contact_not_in_list:
- text: "That contact is not in your list."
utter_remove_contact_error:
- text: "Something went wrong, please try again."
utter_remove_contact_success:
- text: "Removed {remove_contact_handle}({remove_contact_name}) from your contacts."
utter_ask_remove_contact_confirmation:
- buttons:
- payload: "yes"
title: Yes
- payload: "false"
title: No, cancel the removal
text: "Should I remove {remove_contact_handle} from your contact list?"
utter_remove_contact_cancelled:
- text: "Okay, I am cancelling this removal of a contact."