Sentiment analysis of NPC response

In our game we track player-npc relationship data and so if the player tells a joke we want to be able to increment their Humor score with that npc.
Is there any meta data I can get passed back with an npc response that can be used for this?

I have seen emotion tags in the response text that isn’t spoken. This incudes stuff like smiles and laughs or shakes head. If you look at the memory for your character you should see if any conversations include these tags. How you would make use of them is a mystery to me.

Hello @Brian_Laflamme,

Welcome to the Convai Developer Forum!

Along with the text response, you also receive an Emotion Response. You can find these logs by searching for EmotionResponse in your Output Log.

To access this data in Unreal Engine:

  1. Open your Character’s Blueprint, click on the ConvaiChatbot Component, and go to the Details section.
  2. Locate the OnEmotionStateChanged event—you can use this to track emotional responses.
  3. From the ChatBot Component, use GetEmotionScore to retrieve the NPC’s emotion values.

I’ve also attached a screenshot for reference. Let us know if you need further assistance!

Hey Thanks! I see that now… Is there an API reference for what this information represents? I’ve been lookin at the source code.