Spaces:
Sleeping
Sleeping
jon-fernandes
commited on
Create config/bot_flow.co
Browse files- config/bot_flow.co +20 -0
config/bot_flow.co
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
define flow self check input
|
2 |
+
$allowed = execute self_check_input
|
3 |
+
|
4 |
+
if not $allowed
|
5 |
+
bot refuse to respond
|
6 |
+
stop
|
7 |
+
|
8 |
+
define flow self check output
|
9 |
+
$allowed = execute self_check_output
|
10 |
+
|
11 |
+
if not $allowed
|
12 |
+
bot refuse to respond
|
13 |
+
stop
|
14 |
+
|
15 |
+
define flow user query
|
16 |
+
$answer = execute user_query
|
17 |
+
bot $answer
|
18 |
+
|
19 |
+
define bot refuse to respond
|
20 |
+
"I'm sorry, I can't respond to that. How can I help with questions about Eurostar?"
|