Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Xander Fox
/
yandex-business-work
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 2e143590
authored
Jul 31, 2023
by
Полина Бел
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
правки
1 parent
e3006eca
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
51 deletions
app/commonReactions/canHearYou.dsl
app/commonReactions/dontUnderstand.dsl
app/commonReactions/iAmRobot.dsl
app/commonReactions/ivr_machine.dsl
app/commonReactions/repeatAndPing.dsl
app/main.dsl
app/commonReactions/canHearYou.dsl
View file @
2e14359
...
...
@@ -7,6 +7,7 @@ digression can_hear_you
var responses: Phrases[] = ["i_can_hear_you"];
do
{
if ($conversation_result == "Нет ответа") {set $conversation_result = ""; }
for (var item in digression.can_hear_you.responses)
{
#say(item, repeatMode: "ignore");
...
...
app/commonReactions/dontUnderstand.dsl
View file @
2e14359
...
...
@@ -29,6 +29,8 @@ digression dont_understand
var responses: Phrases[] = ["dont_understand"];
do
{
$cjm.push("dont_understand_dig");
if ($conversation_result == "Нет ответа") {set $conversation_result = ""; }
if (digression.dont_understand.counter > digression.dont_understand.retriesLimit)
{
goto hangup;
...
...
app/commonReactions/iAmRobot.dsl
View file @
2e14359
...
...
@@ -9,6 +9,7 @@ digression i_am_robot
do
{
$cjm.push("i_am_robot");
if ($conversation_result == "Нет ответа") {set $conversation_result = ""; }
if(digression.i_am_robot.counter == 1)
{
goto answering_machine;
...
...
app/commonReactions/ivr_machine.dsl
View file @
2e14359
...
...
@@ -11,9 +11,9 @@ preprocessor digression machine
set $conversation_result = "автоответчик";
set $status = "wait_answer";
set digression.machine.visited += 1;
//if(digression.machine.visited == 2 || (digression.wait_answer.visited == 1 && digression.machine.visited == 1)
) {goto do_before_exit;}
return;
//
wait *;
if(digression.machine.visited == 2
) {goto do_before_exit;}
//
return;
wait *;
}
transitions
{
...
...
@@ -25,49 +25,6 @@ preprocessor digression machine
}
}
digression wait_answer // дигрессии
{
conditions
{
on #messageHasIntent("robot_marker") && digression.wait_answer.visited < 3 priority 110000;
}
var visited = 0;
do
{
$cjm.push("wait_answer_dig");
digression disable hello;
set $status = "wait_answer";
set digression.wait_answer.visited += 1;
wait *;
}
transitions
{
bot: goto answering_machine on #messageHasIntent("robot_marker");
someone: goto fitness_not_qualified on true;
maybe_bot: goto answering_machine on timeout 10000;
}
}
digression ivr // дигрессии
{
conditions
{
on #messageHasIntent("robot_marker") && digression.wait_answer.visited == 0 && digression.ivr.visited < 3 priority 110000;
}
var visited = 0;
do
{
$cjm.push("ivr_dig");
set $status = "ivr";
set digression.ivr.visited += 1;
set $conversation_result = "автоответчик";
return;
}
transitions
{
}
}
node fitness_not_qualified
{
do
...
...
app/commonReactions/repeatAndPing.dsl
View file @
2e14359
...
...
@@ -47,6 +47,7 @@ digression repeat
do
{
$cjm.push("repeat_dig");
if ($conversation_result == "Нет ответа") {set $conversation_result = ""; }
if (digression.repeat.counter == digression.repeat.retriesLimit)
{
goto hangup;
...
...
app/main.dsl
View file @
2e14359
...
...
@@ -114,27 +114,27 @@ node cantalk
bot: do
{
set $conversation_result = "автоответчик";
digression disable {
wait_answer,
machine};
digression disable {machine};
}
positive: do
{
set $conversation_result = "";
digression disable {
wait_answer,
machine};
digression disable {machine};
}
what_question: do
{
set $conversation_result = "";
digression disable {
wait_answer,
machine};
digression disable {machine};
}
cant_talk: do
{
set $conversation_result = "перезвонить";
digression disable {
wait_answer,
machine};
digression disable {machine};
}
time: do
{
set $conversation_result = "";
digression disable {
wait_answer,
machine};
digression disable {machine};
}
}
}
...
...
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