Incorporate 'up and down' functionality in an Customized Mindstudio Agent

Hi @Alex_MindStudio :waving_hand:

I’m reaching out to seek your guidance on a specific integration I’d like to implement in my customized bot via API. Like in the example below where ‘up and down’ YesNofunctionality is incorporated, and I would love to have something similar in my interface. How do you think I can set this up and then have the reaction reflected on the Mindstudio side? Do you think it’s feasible, or maybe you have another solution in mind that could work?

Looking forward to your insights and suggestions.:wink:

Hi @Fjmtrigo,

Thanks for the post!

You can configure your frontend to make an API call to your MindStudio Agent whenever a user presses the button, then update your Agent like this:

  • Start block: Add a Launch Variable to store the feedback message (e.g., “User disliked the following output”, and pass in the text the user disliked)
  • Display Content block: Add a Display Content block to save that feedback into a global variable
  • System Prompt: Add instructions for the LLM to take the saved feedback into account and reference the global variable

Keep in mind that each LLM has a context window. If you expect a high volume of feedback, consider switching the Display Content block for a Generate Text block to have the LLM analyze the new feedback along with the previously saved feedback and output structured guidelines for future runs.

1 Like