yalla-coop / nightingale

An app that aims to help students reflect on their emotions and work out what's affecting them at school
https://botnightingale.herokuapp.com/
MIT License
2 stars 1 forks source link

Bug: wrong bot fulfillment message is being sent from front to back #97

Closed dupreesi closed 5 years ago

dupreesi commented 5 years ago

related to dialogflow response messages. when user hits submit, the bot fullfilment text thats being stored varies from the one being rendered.

dupreesi commented 5 years ago

reason being that we are using 2 controllers, 1 to render, 1 to store messages. each controller uses its own sessionClient.detectIntent dialogflow. this often returns differing responses for intends that have multiple response options (like google welcome intends)