Search code examples
dialogflow-cx

Dialogflow CX - Transition to page using sentiment analysis score


Does anyone know if it’s possible to transition to a different page solely off of a sentiment analysis score ($request.sentiment.score) of the end-user’s response?

I basically want the agent to ask the end-user a question and then have the agent route the user to a page strictly using the sentiment analysis score of the user’s response and nothing more


What I tried so far:

Through the Dialogflow-CX simulator, I am trying to transition to a different page using the conditional statement $request.sentiment.score <= 0 in the route, however the agent does not transition to the next page and cannot match my input to the strictly conditional route (it just jumps to the sys.no-match-default event handler)

Here is a screenshot of the route I have set up:

enter image description here

As you can see, the route has no intents other than a conditional trigger that has $request.sentiment.score <= 0 as the parameter.

I simply want the agent to direct the end-user to the next page whenever it detects a message with a negative sentiment score. The next screenshot shows that the agent detects that the sentiment score is negative, however the agent does not transition to the next page.

enter image description here

Does anyone know what I seem to be doing wrong?


Solution

  • It is not possible to transition to a different page using Google DialogFlow's built-in sentiment analysis functionality. The closest you can get to is using pre-trained statements