forked from RasaHQ/rasa-calm-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_contact.yml
39 lines (36 loc) · 1.02 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
36
37
38
39
version: "3.1"
actions:
- add_contact
slots:
add_contact_confirmation:
type: bool
mappings:
- type: custom
add_contact_name:
type: text
mappings:
- type: custom
add_contact_handle:
type: text
mappings:
- type: custom
responses:
utter_ask_add_contact_confirmation:
- text: Do you want to add {add_contact_name}({add_contact_handle}) to your contacts?
buttons:
- payload: "yes"
title: Yes
- payload: "no"
title: No, cancel
utter_ask_add_contact_handle:
- text: What's the handle of the user you want to add?
utter_ask_add_contact_name:
- text: What's the name of the user you want to add?
utter_add_contact_error:
- text: "Something went wrong, please try again."
utter_add_contact_cancelled:
- text: "Okay, I am cancelling this adding of a contact."
utter_contact_already_exists:
- text: "There's already a contact with that handle in your list."
utter_contact_added:
- text: "Contact added successfully."