-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
319 closing dialog #75
Conversation
I do have a specific question on the top 5 of the first aid kit. I think there is a bug and it shows not the top 5 in terms of rating, but the top 5 entries from the db. I looked into it but cannot find what's going wrong. So it is printing:
However, in the database, this is the rating from low to high. The highest rated activity is not printed. |
This got fixed in the latest commit. Function 'get_faik_text' is added to to .helper, this function is called in faik and closing dialog actions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done, more and more a Rasa expert! I left some comments to improve a bit the structure.
- EXTERNAL_delayed_message_smoke_lapse | ||
- EXTERNAL_delayed_message_smoke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these two intents work even if they are not defined in the nlu?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it did work!
closing_pf_grade: | ||
type: text | ||
influence_conversation: false | ||
mappings: | ||
- type: from_text | ||
conditions: | ||
- active_loop: closing_evaluate_pf_form | ||
requested_slot: closing_pf_grade | ||
|
||
closing_pf_evaluate: | ||
type: text | ||
influence_conversation: false | ||
mappings: | ||
- type: from_text | ||
conditions: | ||
- active_loop: closing_evaluate_pf_form | ||
requested_slot: closing_pf_evaluate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why has the requested_slot
to be specified?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested slot needs to be specified if one form is used to fill multiple slots. Otherwise, the first slot is discarded if the second form is filled...
if value not in ['Klaar', 'klaar']: | ||
return {"closing_relapse_prevention_plan_one_done": None} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely we can use the validator
if value not in ['Klaar', 'klaar']: | ||
return {"closing_relapse_prevention_plan_two_done": None} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
|
||
async def run(self, dispatcher, tracker, domain): | ||
user_id = int(tracker.current_state()['sender_id']) # retrieve userID | ||
new_intent = 'EXTERNAL_delayed_message_smoke_lapse' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move the definition to the ComponentsTriggers
class in the definitions in the DB.
new_intent = 'EXTERNAL_delayed_message_smoke_lapse' | |
new_intent = ComponentsTriggers.DELAYED_MSG_LAPSE |
|
||
async def run(self, dispatcher, tracker, domain): | ||
user_id = int(tracker.current_state()['sender_id']) # retrieve userID | ||
new_intent = 'EXTERNAL_delayed_message_smoke' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new_intent = 'EXTERNAL_delayed_message_smoke' | |
new_intent = ComponentsTriggers.DELAYED_MSG_SMOKE |
Co-authored-by: Walter Baccinelli <100706999+wbaccinelli@users.noreply.github.com>
Co-authored-by: Walter Baccinelli <100706999+wbaccinelli@users.noreply.github.com>
Co-authored-by: Walter Baccinelli <100706999+wbaccinelli@users.noreply.github.com>
Co-authored-by: Walter Baccinelli <100706999+wbaccinelli@users.noreply.github.com>
Co-authored-by: Walter Baccinelli <100706999+wbaccinelli@users.noreply.github.com>
Co-authored-by: Walter Baccinelli <100706999+wbaccinelli@users.noreply.github.com>
Co-authored-by: Walter Baccinelli <100706999+wbaccinelli@users.noreply.github.com>
Co-authored-by: Walter Baccinelli <100706999+wbaccinelli@users.noreply.github.com>
…rtual-coach-rasa into 319-closing-dialog
SonarCloud Quality Gate failed. |
Fixes: PerfectFit-project/virtual-coach-issues#319