Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Sentiment Analysis with Dialogflow CX GUI

Hello,

I see in the documentation that we can use sentiment analysis when defining a condition:

https://cloud.google.com/dialogflow/cx/docs/concept/sentiment#conditions

I also see that you can enable it in the Agent Settings (note this is the documentation for Dialogflow ES not CX):

 
However, when I go to the agent settings on my account I see that I can only use it through the API:
karlgardner_1-1705422340500.png

Do I have to enable something on my account/agent settings or is it not possible from the Dialogflow CX GUI?


 

0 7 1,121
7 REPLIES 7

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:

karlgardner_0-1705440770830.png

 

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:

karlgardner_1-1705440908338.png

 

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

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.