Can we store user feedback with the response generated by the agent in the storage?
Scenario:
User ask a question, we generate a response & send to the user and that response is also stored in the DB by default. Now, the response is not what user wanted and we want to capture those so that we can understand the efficiency and accuracy of our agent. Is it possible in some way to store user feedback with the response/workflow output in the DB. So we can get that data back from DB later and do analysis on it?
3 Replies
š Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10701
š If you're experiencing an error, please provide a minimal reproducible example whenever possible to help us resolve it quickly.
š Thank you for helping us improve Mastra!
Hi @Jenil
couple options:
* you can use the mastra storage instance and update the message metadata with whatever you want
storage.updateMessages
* you can store your own feedback table keyed from ids in mastra
If you're gonna analyze it later, i think a separate db is probably best for feedbackOkay thanks, will check