Hello,
I see in the documentation that we can use sentiment analysis when defining a condition:
Do I have to enable something on my account/agent settings or is it not possible from the Dialogflow CX GUI?
hi @karl-gardner you have to specify that you want to perform the sentiment analysis by requesting it using the DetectIntent: https://cloud.google.com/dialogflow/cx/docs/how/detect-intent-stream#sentiment. You can enable the sentiment analysis in the simulator too: https://cloud.google.com/dialogflow/cx/docs/concept/console#simulator-settings
Also,, you can use the sentiment analysis results in your routes: https://cloud.google.com/dialogflow/cx/docs/reference/condition#request-scoped
Best,
Xavi
Hello @xavidop I have a simple example in the Dialogflow CX GUI where I am trying to go to a different page with a route if the sentiment score is below 0:
However, when I test it in the simulator I see that the sentiment score is less than -0.81 but it is not taking the route that I defined with the condition of $request.sentiment.score < 0:
If you notice in the image it is still on the test page. Do I have to enable it somehow for it to work?
I just tested on my side. You can do 2 things, add the no-match event handler and a conditional route or an intent handler with a conditional route.
I found the solution here: https://stackoverflow.com/questions/73760219/dialogflow-cx-transition-to-page-using-sentiment-analys...
I hope this helps you!
Xavi
Forget what I said, it is not working for me
I opened an issue: https://issuetracker.google.com/issues/320541997
Awesome @xavidop , Thanks for starting the issue!
Hello @xavidop ,
Any news on the issue? I guess I am not able to access the issue anymore in the issue tracker. Thanks.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |