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
...
@@ -119,27 +119,26 @@ node caller_id
// Запоминаем временной штамп перед самой первой репликой
// Запоминаем временной штамп перед самой первой репликой
set $conversation_begin = #getCurrentTime();
set $conversation_begin = #getCurrentTime();
#sayText(abonent_greeting, options: {speed: 1.15});
#sayText(abonent_greeting + after_greeting, options: {speed: 1.15});
#sayText(after_greeting, options: {speed: 1.15});
var result = blockcall SkipMessagesBlock();
var result = blockcall SkipMessagesBlock();
wait *;
wait *;
}
}
transitions
transitions
{
{
yes: goto yes on #messageHasAnyIntent(["
да
"]);
yes: goto yes on #messageHasAnyIntent(["
accept
"]);
no: goto no on #messageHasAnyIntent(["
нет
"]);
no: goto no on #messageHasAnyIntent(["
decline
"]);
idk: goto idk on #messageHasAnyIntent(["
не знаю", "пока думаю
"]);
idk: goto idk on #messageHasAnyIntent(["
not_know
"]);
}
}
}
}
node yes {
node yes {
do{
do{
#sayText("Отлично. Скажите, пожалуйста, когда вы готовы выйти на смену?");
#sayText("Отлично. Скажите, пожалуйста, когда вы готовы выйти на смену?");
goto questions
;
wait *
;
}
}
transitions
transitions
{
{
questions: goto questions;
questions: goto questions
on true
;
}
}
}
}
...
@@ -148,11 +147,12 @@ node questions
...
@@ -148,11 +147,12 @@ node questions
do
do
{
{
#sayText("Остались ли у вас вопросы?");
#sayText("Остались ли у вас вопросы?");
wait *;
}
}
transitions
transitions
{
{
end_conversation: goto end_conversation on #messageHasAnyIntent(["
нет
"]);
end_conversation: goto end_conversation on #messageHasAnyIntent(["
decline
"]);
end_conversation2: goto end_conversation2 on #messageHasAnyIntent(["
да
"]);
end_conversation2: goto end_conversation2 on #messageHasAnyIntent(["
accept
"]);
}
}
}
}
...
@@ -166,7 +166,7 @@ node end_conversation
...
@@ -166,7 +166,7 @@ node end_conversation
}
}
transitions
transitions
{
{
do_before_exit: goto do_before_exit on true;
}
}
}
}
node end_conversation2
node end_conversation2
...
@@ -178,7 +178,7 @@ node end_conversation2
...
@@ -178,7 +178,7 @@ node end_conversation2
}
}
transitions
transitions
{
{
do_before_exit: goto do_before_exit on true;
}
}
}
}
...
@@ -186,11 +186,11 @@ node no {
...
@@ -186,11 +186,11 @@ node no {
do
do
{
{
#sayText("Могли бы вы уточнить причину?");
#sayText("Могли бы вы уточнить причину?");
goto resume
;
wait *
;
}
}
transitions
transitions
{
{
resume: goto resume;
resume: goto resume
on true
;
}
}
}
}
...
@@ -198,11 +198,12 @@ node resume {
...
@@ -198,11 +198,12 @@ node resume {
do
do
{
{
#sayText("Спасибо, за обратную связь. Информацию приняли. Остались у вас вопросы?");
#sayText("Спасибо, за обратную связь. Информацию приняли. Остались у вас вопросы?");
wait *;
}
}
transitions
transitions
{
{
end_conversation: goto end_conversation on #messageHasAnyIntent(["
нет
"]);
end_conversation: goto end_conversation on #messageHasAnyIntent(["
decline
"]);
end_conversation2: goto end_conversation2 on #messageHasAnyIntent(["
да
"]);
end_conversation2: goto end_conversation2 on #messageHasAnyIntent(["
accept
"]);
}
}
}
}
...
@@ -213,22 +214,23 @@ node idk {
...
@@ -213,22 +214,23 @@ node idk {
}
}
transitions
transitions
{
{
do_before_exit: goto do_before_exit on true;
}
}
}
}
// node do_before_exit
node do_before_exit
// {
{
// do
do
// {
{
// $cjm.push("do_before_exit");
$cjm.push("do_before_exit");
// set $conversation_stop = #getCurrentTime();
set $conversation_stop = #getCurrentTime();
// exit;
exit;
// }
}
// transitions
transitions
// {
{
// }
// }
}
}
/*digression @exit_dig
/*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