Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Alexander
/
alex-hunter-sales-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 82b6892c
authored
Oct 14, 2022
by
Полина Бел
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
добавлены переходы из ноды
1 parent
3fc414c3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
2 deletions
app/main.dsl
app/phrasemap.json
app/main.dsl
View file @
82b6892
...
@@ -437,8 +437,48 @@ node can_talk //могу говорить
...
@@ -437,8 +437,48 @@ node can_talk //могу говорить
transitions
transitions
{
{
positive: goto helpful_pos on (#messageHasSentiment("positive")|| #messageHasAnyIntent(["accept", "what_interested"])) && !#messageHasIntent("ididnt_watch");
positive: goto helpful_pos on (#messageHasSentiment("positive")|| #messageHasAnyIntent(["accept", "what_interested"])) && !#messageHasIntent("ididnt_watch");
negative: goto helpful_neg on #messageHasAnyIntent(["did_not_liked", "not_really"]) && !#messageHasIntent("ididnt_watch"); didnt_whatc: goto not_present on #messageHasIntent("ididnt_watch");
negative: goto helpful_neg on #messageHasAnyIntent(["did_not_liked", "not_really", "decline"]) && !#messageHasIntent("ididnt_watch");
didnt_whatc: goto not_present on #messageHasIntent("ididnt_watch");
dont_remember: goto dont_remember on #messageHasIntent("dont_remember");
dont_remember: goto dont_remember on #messageHasIntent("dont_remember");
when_was: goto when_was on #messageHasIntent("when_webinar");
for_what: goto for_what on #messageHasIntent("what_promo");
}
}
node when_was
{
do
{
$cjm.push("when_was");
#say("it_was_wensday");
#say("how_helpful_short");
var result = blockcall SkipMessagesBlock();
wait*;
}
transitions
{
positive: goto helpful_pos on #messageHasSentiment("positive") && !#messageHasIntent("ididnt_watch") || #messageHasIntent("accept") && !#messageHasIntent("ididnt_watch");
negative: goto helpful_neg on #messageHasSentiment("negative") || #messageHasAnyIntent(["decline", "did_not_liked", "not_really"]);
didnt_whatc: goto not_present on #messageHasIntent("ididnt_watch");
dont_remember: goto dont_remember on #messageHasIntent("dont_remember");
}
}
node for_what
{
do
{
$cjm.push("for_what");
#say("promo_for");
var result = blockcall SkipMessagesBlock();
wait*;
}
transitions
{
positive: goto helpful_pos on (#messageHasSentiment("positive")|| #messageHasAnyIntent(["accept", "what_interested"])) && !#messageHasIntent("ididnt_watch");
negative: goto helpful_neg on #messageHasAnyIntent(["did_not_liked", "not_really", "decline"]) && !#messageHasIntent("ididnt_watch");
}
}
}
}
...
...
app/phrasemap.json
View file @
82b6892
...
@@ -483,6 +483,16 @@
...
@@ -483,6 +483,16 @@
{
{
"text"
:
"В таком случае, мы закрепляем его за вами, вы сможете использовать его при следующей покупке."
"text"
:
"В таком случае, мы закрепляем его за вами, вы сможете использовать его при следующей покупке."
}
}
],
"it_was_wensday"
:[
{
"text"
:
"Вебинар был в прошедшую среду"
}
],
"promo_for"
:[
{
"text"
:
"промокод на трехдневное обучение в нашей Академии, вам интересно?"
}
]
]
},
},
...
@@ -533,7 +543,9 @@
...
@@ -533,7 +543,9 @@
"record"
:
{},
"record"
:
{},
"allready_have_sub"
:
{},
"allready_have_sub"
:
{},
"allready_been_inacademy"
:
{},
"allready_been_inacademy"
:
{},
"allready_sent_promo"
:
{}
"allready_sent_promo"
:
{},
"it_was_wensday"
:
{},
"promo_for"
:
{}
}
}
}
}
}
}
\ 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