[英]Custom action after Rasa response selection
I have a working Rasa chatbot that can utter responses based on a story.我有一个工作的 Rasa 聊天机器人,它可以根据故事做出回应。 For some utterances, there are multiple options, and everything works as it should.
对于某些话语,有多个选项,并且一切正常。
However, I want to be able to perform sentiment analysis based on the bot's chosen response.但是,我希望能够根据机器人选择的响应执行情绪分析。
So my question is how do I perform a custom action after Rasa has selected the response?所以我的问题是如何在 Rasa 选择响应后执行自定义操作?
Use a custom action that is run after that bot's response.使用在该机器人响应后运行的自定义操作。 A custom action has access to the current conversation's tracker which includes the bot's previous response.
自定义操作可以访问当前对话的跟踪器,其中包括机器人的先前响应。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.