Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ElenaD
/
new_progect
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2b8ed454
authored
Aug 17, 2023
by
ElenaD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3rd commit
1 parent
60bb455f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
28 deletions
app/main.dsl
app/main.dsl
View file @
2b8ed45
...
...
@@ -119,27 +119,26 @@ node caller_id
// Запоминаем временной штамп перед самой первой репликой
set $conversation_begin = #getCurrentTime();
#sayText(abonent_greeting, options: {speed: 1.15});
#sayText(after_greeting, options: {speed: 1.15});
#sayText(abonent_greeting + after_greeting, options: {speed: 1.15});
var result = blockcall SkipMessagesBlock();
wait *;
}
transitions
{
yes: goto yes on #messageHasAnyIntent(["
да
"]);
no: goto no on #messageHasAnyIntent(["
нет
"]);
idk: goto idk on #messageHasAnyIntent(["
не знаю", "пока думаю
"]);
yes: goto yes on #messageHasAnyIntent(["
accept
"]);
no: goto no on #messageHasAnyIntent(["
decline
"]);
idk: goto idk on #messageHasAnyIntent(["
not_know
"]);
}
}
node yes {
do{
#sayText("Отлично. Скажите, пожалуйста, когда вы готовы выйти на смену?");
goto questions
;
wait *
;
}
transitions
{
questions: goto questions;
questions: goto questions
on true
;
}
}
...
...
@@ -148,11 +147,12 @@ node questions
do
{
#sayText("Остались ли у вас вопросы?");
wait *;
}
transitions
{
end_conversation: goto end_conversation on #messageHasAnyIntent(["
нет
"]);
end_conversation2: goto end_conversation2 on #messageHasAnyIntent(["
да
"]);
end_conversation: goto end_conversation on #messageHasAnyIntent(["
decline
"]);
end_conversation2: goto end_conversation2 on #messageHasAnyIntent(["
accept
"]);
}
}
...
...
@@ -166,7 +166,7 @@ node end_conversation
}
transitions
{
do_before_exit: goto do_before_exit on true;
}
}
node end_conversation2
...
...
@@ -178,7 +178,7 @@ node end_conversation2
}
transitions
{
do_before_exit: goto do_before_exit on true;
}
}
...
...
@@ -186,11 +186,11 @@ node no {
do
{
#sayText("Могли бы вы уточнить причину?");
goto resume
;
wait *
;
}
transitions
{
resume: goto resume;
resume: goto resume
on true
;
}
}
...
...
@@ -198,11 +198,12 @@ node resume {
do
{
#sayText("Спасибо, за обратную связь. Информацию приняли. Остались у вас вопросы?");
wait *;
}
transitions
{
end_conversation: goto end_conversation on #messageHasAnyIntent(["
нет
"]);
end_conversation2: goto end_conversation2 on #messageHasAnyIntent(["
да
"]);
end_conversation: goto end_conversation on #messageHasAnyIntent(["
decline
"]);
end_conversation2: goto end_conversation2 on #messageHasAnyIntent(["
accept
"]);
}
}
...
...
@@ -213,22 +214,23 @@ node idk {
}
transitions
{
do_before_exit: goto do_before_exit on true;
}
}
// node do_before_exit
// {
// do
// {
// $cjm.push("do_before_exit");
// set $conversation_stop = #getCurrentTime();
// exit;
// }
// transitions
// {
// }
// }
node do_before_exit
{
do
{
$cjm.push("do_before_exit");
set $conversation_stop = #getCurrentTime();
exit;
}
transitions
{
}
}
/*digression @exit_dig
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment