Commit 2b8ed454 by ElenaD

3rd commit

1 parent 60bb455f
Showing with 30 additions and 28 deletions
...@@ -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
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!