我使用的是rasa核心版本0.10.4
在流的末尾,我想添加action_restart(默认操作),以便在结束时启动新的会话。
这个故事就像:
## Story_help_gnh
* button_option{"option_type":"gifts and hospitality"}
- utter_help_gnh
> gifts_and_hospitality
## Story_gnh_ethics_counsellor
> gifts_and_hospitality
* ethics_counsellor
- utter_gnh_ethics_counsellor
- action_restart对我来说,action_restart在0.10.4版本中不起作用。我试过使用0.11.12版本,它正在工作。
我不能将代码从0.10.4版本迁移到0.11.12版本。
有人能帮我吗?
发布于 2018-11-23 10:25:52
我刚刚尝试了Rasa版本,0.10.4和action_restart为我工作。
我的故事:
## Story1
* greet
- utter_hello
- action_restart我的域文件:
intents:
- greet
actions:
- utter_hello
templates:
utter_hello:
- text: "Hi"
utter_restart:
- text: "I just restarted"如果那就跟机器人谈:

因此,0.10.4有一个action_restart,您可以简单地将它作为action_restart添加到域文件中。如果定义了模板utter_restart,还可以向重新启动中添加一些自定义文本。
总的来说,我建议切换到Rasa Core的最新版本。从0.10.x到0.11的步骤有点麻烦,因为有一些架构更改,但是带来了大量的新特性。在0.11后,其变化也没有或只是微小的改变。
https://stackoverflow.com/questions/53441186
复制相似问题