Commit 82b6892c by Полина Бел

добавлены переходы из ноды

1 parent 3fc414c3
Showing with 55 additions and 2 deletions
......@@ -437,8 +437,48 @@ node can_talk //могу говорить
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"]) && !#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");
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");
}
}
......
......@@ -483,6 +483,16 @@
{
"text": "В таком случае, мы закрепляем его за вами, вы сможете использовать его при следующей покупке."
}
],
"it_was_wensday":[
{
"text": "Вебинар был в прошедшую среду"
}
],
"promo_for":[
{
"text": "промокод на трехдневное обучение в нашей Академии, вам интересно?"
}
]
},
......@@ -533,7 +543,9 @@
"record": {},
"allready_have_sub": {},
"allready_been_inacademy": {},
"allready_sent_promo": {}
"allready_sent_promo": {},
"it_was_wensday": {},
"promo_for": {}
}
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!