Hey,
I am struggling quite a bit with this:
- I want to show thumbs up and thumbs down buttons next to each Rasa reply.
- Users can give feedback for any Rasa reply, not just the newest one, at any time (e.g. Rasa has already replied 10x and only now the user gives feedback on the 1st reply).
- When the user clicks on a button, we want to add the feedback metadata to the conversation.
- When reviewing conversations on Rasa X, messages should show the positive or negative feedback.
I assume I need the following things to achieve this:
- A unique message id for each Rasa reply (so the frontend can send
{message: "/feedback", feedback: 'positive', messageId: '84898456', sender: '558787778'}
) - A custom action which can add metadata to the conversation
- A way to ignore all feedback intents
Questions I have:
- Is there a transformation hook / action which can be automatically called to transform a Rasa reply before sending it to the user, so I can add a message id? (If a user starts the same conversation twice, the id of a message should be different the second time)
- How can I add metadata to previous messages, not just the newest one?
- This user feedback should not influence the conversation going forward, so I do not want to have it in the conversation history
Thanks so much for any help!