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 60bb455f
authored
Aug 17, 2023
by
ElenaD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2nd commit
1 parent
97897e12
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
15 deletions
app/intents.json
app/main.dsl
app/phrasemap.json
app/intents.json
View file @
60bb455
...
...
@@ -17,6 +17,18 @@
"передавай"
]
},
"timetowork"
:{
"includes"
:
[
"сегодня"
,
"завтра"
,
"с"
,
"не знаю"
,
"думаю"
,
"на следующей неделе"
],
"excludes"
:[
]
},
"decline"
:
{
"includes"
:
[
"нет"
,
...
...
app/main.dsl
View file @
60bb455
...
...
@@ -115,26 +115,45 @@ node caller_id
{
set abonent_greeting = "Добрый вечер";
}
var after_greeting = " компания Чекбокс! Вы давно не на смены, позвольте задать несколько вопросов: Планируете ли вы с нами дальше сотрудничать?";
// Запоминаем временной штамп перед самой первой репликой
set $conversation_begin = #getCurrentTime();
#sayText(abonent_greeting, options: {speed: 1.15});
#say
("dont_understand_question"
);
#say
Text(after_greeting, options: {speed: 1.15}
);
var result = blockcall SkipMessagesBlock();
wait *;
}
transitions
{
end_conversation: goto end_conversation on true;
yes: goto yes on #messageHasAnyIntent(["да"]);
no: goto no on #messageHasAnyIntent(["нет"]);
idk: goto idk on #messageHasAnyIntent(["не знаю", "пока думаю"]);
}
}
node yes {
do{
#sayText("Отлично. Скажите, пожалуйста, когда вы готовы выйти на смену?");
goto questions;
}
onexit
transitions
{
end_conversation: do
questions: goto questions;
}
}
node questions
{
do
{
var abonent_say = #getMessageText();
//set $abonent_request = external performed_stage($abonent_request, abonent_say);
#sayText("Остались ли у вас вопросы?");
}
transitions
{
end_conversation: goto end_conversation on #messageHasAnyIntent(["нет"]);
end_conversation2: goto end_conversation2 on #messageHasAnyIntent(["да"]);
}
}
...
...
@@ -144,27 +163,73 @@ node end_conversation
{
$cjm.push("end_conversation");
#say("end_conversation");
goto do_before_exit;
}
transitions
{
do_before_exit: goto do_before_exit;
}
}
node do_before_exit
node end_conversation2
{
do
{
$cjm.push("do_before_exit");
set $conversation_stop = #getCurrentTime();
exit;
$cjm.push("end_conversation2");
#say("end_conversation2");
}
transitions
{
}
}
node no {
do
{
#sayText("Могли бы вы уточнить причину?");
goto resume;
}
transitions
{
resume: goto resume;
}
}
node resume {
do
{
#sayText("Спасибо, за обратную связь. Информацию приняли. Остались у вас вопросы?");
}
transitions
{
end_conversation: goto end_conversation on #messageHasAnyIntent(["нет"]);
end_conversation2: goto end_conversation2 on #messageHasAnyIntent(["да"]);
}
}
node idk {
do
{
#sayText("Хорошо, перезвоним вам позже");
}
transitions
{
}
}
// node do_before_exit
// {
// do
// {
// $cjm.push("do_before_exit");
// set $conversation_stop = #getCurrentTime();
// exit;
// }
// transitions
// {
// }
// }
/*digression @exit_dig
{
conditions { on true tags: onclosed; }
...
...
app/phrasemap.json
View file @
60bb455
...
...
@@ -114,9 +114,14 @@
"text"
:
"Это всё?"
}
],
"end_conversation2"
:
[
{
"text"
:
"Хорошо. В время с вами свяжется специалист."
}
],
"end_conversation"
:
[
{
"text"
:
"
Благодарю за Ваше обращение. Всего доброго. До свидания.
"
"text"
:
"
Хорошего дня!
"
}
],
"non_work_greetings"
:
[
...
...
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