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 bd86f8f2
authored
Aug 18, 2023
by
ElenaD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5 commit
1 parent
dfdf7852
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
7 deletions
app/intents.json
app/main.dsl
app/phrasemap.json
app/intents.json
View file @
bd86f8f
...
@@ -61,6 +61,14 @@
...
@@ -61,6 +61,14 @@
"пока всё"
"пока всё"
]
]
},
},
"disagree"
:
{
"includes"
:
[
"удалите мой номер"
,
"не звоните мне больше"
,
"пошел нафиг"
,
"не хочу слушать"
]
},
"ready_to_message"
:
{
"ready_to_message"
:
{
"includes"
:
[
"includes"
:
[
"давай оставим запрос"
,
"давай оставим запрос"
,
...
...
app/main.dsl
View file @
bd86f8f
...
@@ -134,7 +134,8 @@ node caller_id
...
@@ -134,7 +134,8 @@ node caller_id
node yes {
node yes {
do{
do{
#sayText("Отлично. Скажите, пожалуйста, когда вы готовы выйти на смену?");
$cjm.push("yes");
#say("yesOfcourse");
wait *;
wait *;
}
}
transitions
transitions
...
@@ -147,7 +148,8 @@ node questions
...
@@ -147,7 +148,8 @@ node questions
{
{
do
do
{
{
#sayText("Остались ли у вас вопросы?");
$cjm.push("questions");
#say("questions");
wait *;
wait *;
}
}
transitions
transitions
...
@@ -186,7 +188,8 @@ node end_conversation2
...
@@ -186,7 +188,8 @@ node end_conversation2
node no {
node no {
do
do
{
{
#sayText("Могли бы вы уточнить причину?");
$cjm.push("no");
#say("no");
wait *;
wait *;
}
}
transitions
transitions
...
@@ -198,7 +201,8 @@ node no {
...
@@ -198,7 +201,8 @@ node no {
node resume {
node resume {
do
do
{
{
#sayText("Спасибо, за обратную связь. Информацию приняли. Остались у вас вопросы?");
$cjm.push("resume");
#say("resume");
wait *;
wait *;
}
}
transitions
transitions
...
@@ -211,7 +215,8 @@ node resume {
...
@@ -211,7 +215,8 @@ node resume {
node idk {
node idk {
do
do
{
{
#sayText("Хорошо, перезвоним вам позже");
$cjm.push("idk");
#say("idk");
}
}
transitions
transitions
{
{
...
@@ -232,7 +237,23 @@ node do_before_exit
...
@@ -232,7 +237,23 @@ node do_before_exit
}
}
}
}
digression anger_decline
{
// digression's conditions
conditions
{
on #messageHasIntent("disagree") priority 1000;
}
do
{
$cjm.push("anger_decline");
#say("end_conversation3");
}
transitions
{
do_before_exit: goto do_before_exit on true;
}
}
/*digression @exit_dig
/*digression @exit_dig
{
{
conditions { on true tags: onclosed; }
conditions { on true tags: onclosed; }
...
...
app/phrasemap.json
View file @
bd86f8f
...
@@ -209,6 +209,36 @@
...
@@ -209,6 +209,36 @@
{
{
"text"
:
"Продиктуете ваш контактный номер телефона"
"text"
:
"Продиктуете ваш контактный номер телефона"
}
}
],
"yesOfcourse"
:
[
{
"text"
:
"Отлично. Скажите, пожалуйста, когда вы готовы выйти на смену?"
}
],
"questions"
:
[
{
"text"
:
"Остались ли у вас вопросы?"
}
],
"no"
:
[
{
"text"
:
"Могли бы вы уточнить причину?"
}
],
"resume"
:
[
{
"text"
:
"Спасибо, за обратную связь. Информацию приняли. Остались у вас вопросы?"
}
],
"idk"
:
[
{
"text"
:
"Хорошо, перезвоним вам позже"
}
],
"end_conversation3"
:
[
{
"text"
:
"Вас понял, извините, что потревожил, всего хорошего!"
}
]
]
},
},
"types"
:
{},
"types"
:
{},
...
@@ -239,7 +269,14 @@
...
@@ -239,7 +269,14 @@
"get_cell_phone"
:
{},
"get_cell_phone"
:
{},
"check_is_shared"
:
{},
"check_is_shared"
:
{},
"get_phone_suffix"
:
{},
"get_phone_suffix"
:
{},
"get_another_phone"
:
{}
"get_another_phone"
:
{},
"yesOfcourse"
:
{},
"questions"
:
{},
"no"
:
{},
"resume"
:
{},
"idk"
:
{},
"end_conversation2"
:
{},
"end_conversation3"
:
{}
}
}
}
}
}
}
\ 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