M
Mastra•7d ago
Jenil

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
Mastra Triager
Mastra Triager•7d ago
šŸ“ 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!
Abhi Aiyer
Abhi Aiyer•6d ago
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 feedback
Jenil
JenilOP•4d ago
Okay thanks, will check

Did you find this page helpful?