Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Anna Sokolova
/
avito-test-dev
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 ac37ef5c
authored
Sep 05, 2023
by
Anna Sokolova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new commit
1 parent
b9103f57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
144 additions
and
2 deletions
app/intents.json
app/main.dsl
app/phrasemap.json
app/intents.json
View file @
ac37ef5
...
...
@@ -502,6 +502,13 @@
],
"excludes"
:
[]
},
"not_lpr"
:{
"includes"
:
[
"я не лпр"
,
"я не решаю"
],
"excludes"
:
[]
},
"if_robot"
:
{
"includes"
:
[
"а вы робот"
,
...
...
app/main.dsl
View file @
ac37ef5
...
...
@@ -351,7 +351,7 @@ node ask_price
var result = blockcall SkipMessagesBlock();
wait*;
}
transitions
transitions
{
when_call: goto when_call on true;
...
...
@@ -445,6 +445,20 @@ node end_conversation_4
}
}
node end_conversation_5
{
do
{
$cjm.push("end_conversation_5");
#say("end_conversation_5");
goto do_before_exit;
}
transitions
{
do_before_exit: goto do_before_exit;
}
}
node do_before_exit
{
do
...
...
@@ -467,6 +481,90 @@ digression where_number
}
}
digression dont_sell
{
conditions { on #messageHasIntent("dont_sell"); }
do
{
$cjm.push("dont_sell");
#say("dont_sell");
set $conversation_stop = #getCurrentTime();
exit;
}
}
digression no_shop
{
conditions { on #messageHasIntent("no_shop"); }
do
{
$cjm.push("no_shop");
#say("no_shop");
set $conversation_stop = #getCurrentTime();
exit;
}
}
digression not_lpr
{
conditions { on #messageHasIntent("not_lpr"); }
do
{
$cjm.push("not_lpr");
#say("not_lpr");
var result = blockcall SkipMessagesBlock();
}
transitions
{
end_conversation_5: goto end_conversation_5 on true;
}
onexit
{
end_conversation_5: do {
var text = #getMessageText();
#log(text);
}
}
}
digression who_are_you
{
conditions { on #messageHasIntent("who_are_u"); }
do
{
$cjm.push("who_are_you");
#say("who_are_you");
var result = blockcall SkipMessagesBlock();
return;
}
}
digression what_conditions
{
conditions { on #messageHasIntent("what_conditions"); }
do
{
$cjm.push("what_conditions");
#say("what_conditions");
var result = blockcall SkipMessagesBlock();
wait*;
}
transitions
{
agreement: goto ask_if_satisfied on #messageHasAnyIntent(["accept", "agree"]);
rejection: goto end_conversation_4 on #messageHasIntent("decline");
why_need_it_1: goto why_need_it_1 on #messageHasIntent("why_need_it");
}
onexit
{
rejection: do {
set $conversation_result = "перезвонить";
}
}
}
global digression @exit_dig_global
{
...
...
app/phrasemap.json
View file @
ac37ef5
...
...
@@ -129,6 +129,11 @@
"text"
:
"Понял вас! Я передам информацию нашему менеджер - он наберет вам и расскажет подробнее, Спасибо, что уделили время."
}
],
"end_conversation_5"
:
[
{
"text"
:
"Понял вас. Спасибо! До свидания"
}
],
"offer"
:
{
"first"
:
[
{
...
...
@@ -185,6 +190,31 @@
{
"text"
:
"Увидел вас в списке продавцов и производителей мебели."
}
],
"who_are_you"
:
[
{
"text"
:
"Меня зовут Иван, агентство R-брокер, премиум-партнёры площадки Авито."
}
],
"what_conditions"
:
[
{
"text"
:
"Более подробно про все условия сможет расскажет менеджер, в любом случае эта бесплатная консультация. Вы уже размещаетесь на авито?"
}
],
"dont_sell"
:
[
{
"text"
:
"Извините, видимо ошибся. Спасибо, до свидания."
}
],
"no_shop"
:
[
{
"text"
:
"Я вас поняла. Спасибо, что уделили время! До свидания"
}
],
"not_lpr"
:
[
{
"text"
:
"Понял вас. С кажите а с кем можно переговорить по вопросу привлечения клиентов по мебели?"
}
]
},
...
...
@@ -232,10 +262,16 @@
"why_need_it_1"
:
{},
"why_need_it_2"
:
{},
"where_number"
:
{},
"who_are_you"
:
{},
"dont_sell"
:
{},
"no_shop"
:
{},
"not_lpr"
:
{},
"what_conditions"
:
{},
"end_conversation_1"
:
{},
"end_conversation_2"
:
{},
"end_conversation_3"
:
{},
"end_conversation_4"
:
{}
"end_conversation_4"
:
{},
"end_conversation_5"
:
{}
}
}
}
\ No newline at end of file
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