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 849e3169
authored
Jul 28, 2023
by
Xander Fox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
правки скриптов
1 parent
e2da8656
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
app/intents.json
app/main.dsl
app/intents.json
View file @
849e316
...
@@ -77,6 +77,7 @@
...
@@ -77,6 +77,7 @@
},
},
"decline"
:
{
"decline"
:
{
"includes"
:
[
"includes"
:
[
"нет"
,
"хватит"
,
"хватит"
,
"не надо"
,
"не надо"
,
"не нужно"
,
"не нужно"
,
...
@@ -555,7 +556,7 @@
...
@@ -555,7 +556,7 @@
"send_on_mail"
:
{
"send_on_mail"
:
{
"includes"
:
[
"includes"
:
[
"Отправьте кп на почту"
,
"Отправьте кп на почту"
,
"Скиньте на почт
и
"
,
"Скиньте на почт
у
"
,
"На емейл отправьте"
,
"На емейл отправьте"
,
"Кидай на почту, потом посмотрю"
,
"Кидай на почту, потом посмотрю"
,
"Отправляй на емейл"
,
"Отправляй на емейл"
,
...
...
app/main.dsl
View file @
849e316
...
@@ -75,10 +75,10 @@ node caller_id
...
@@ -75,10 +75,10 @@ node caller_id
transitions
transitions
{
{
bot: goto its_machine on #messageHasAnyIntent(["robot_marker", "answering_machine"]);
bot: goto its_machine on #messageHasAnyIntent(["robot_marker", "answering_machine"]);
positive: goto presentation on #messageHasAnyIntent(["accept" ,"agree"]
,
"positive");
positive: goto presentation on #messageHasAnyIntent(["accept" ,"agree"]
) || #messageHasSentiment(
"positive");
what_question: goto presentation on #messageHasIntent("what_question");
what_question: goto presentation on #messageHasIntent("what_question");
cant_talk: goto letme_40sec on #messageHasAnyIntent(["cant_talk_rn", "call_later", "decline"]);
cant_talk: goto letme_40sec on #messageHasAnyIntent(["cant_talk_rn", "call_later", "decline"]);
time: goto presentation on timeout
2
000;
time: goto presentation on timeout
5
000;
}
}
onexit
onexit
{
{
...
@@ -101,8 +101,8 @@ node presentation
...
@@ -101,8 +101,8 @@ node presentation
}
}
transitions
transitions
{
{
positive: goto last_word on #messageHasAnyIntent(["accept", "agree"]
,
"positive");
positive: goto last_word on #messageHasAnyIntent(["accept", "agree"]
) || #messageHasSentiment(
"positive");
negative: goto yandex_guaranteed on #messageHasIntent("decline"
,
"negative");
negative: goto yandex_guaranteed on #messageHasIntent("decline"
) || #messageHasSentiment(
"negative");
}
}
onexit
onexit
{
{
...
@@ -123,8 +123,8 @@ node letme_40sec
...
@@ -123,8 +123,8 @@ node letme_40sec
}
}
transitions
transitions
{
{
positive: goto presentation on #messageHasAnyIntent(["accept", "agree"]
,
"positive");
positive: goto presentation on #messageHasAnyIntent(["accept", "agree"]
) || #messageHasSentiment(
"positive");
negative: goto call_later on #messageHasAnyIntent(["decline", "not_interested"]
,
"negative");
negative: goto call_later on #messageHasAnyIntent(["decline", "not_interested"]
) || #messageHasSentiment(
"negative");
}
}
onexit
onexit
{
{
...
@@ -144,8 +144,8 @@ node yandex_guaranteed
...
@@ -144,8 +144,8 @@ node yandex_guaranteed
}
}
transitions
transitions
{
{
positive: goto last_word on #messageHasAnyIntent(["accept", "agree"]
,
"positive");
positive: goto last_word on #messageHasAnyIntent(["accept", "agree"]
) || #messageHasSentiment(
"positive");
negative: goto decline on #messageHasAnyIntent(["decline", "not_interested"]
,
"negative");
negative: goto decline on #messageHasAnyIntent(["decline", "not_interested"]
) || #messageHasSentiment(
"negative");
}
}
onexit
onexit
{
{
...
...
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