我使用Rasa框架构建了一个聊天机器人。现在我想在我的网站上部署它,但我不想使用Chatterbot或Docker进行部署。我正在搜索,但是找不到相关的信息。
如何在我的网站上部署聊天机器人?
如何在我的网站上部署聊天机器人?
python -m rasa_nlu.server --path projects
启动NLU作为服务器(有关文档,请参见这里)。请使用像nohup这样的工具,以便在关闭终端窗口时不会杀死服务器。编辑Rasa Core的端点配置文件,使其链接到NLU(请参见此处的文档):
nlu:
url: "http://<your nlu host>:5000"
决定如何将机器人连接到Rasa。可能是通过REST或使用socketio。将所使用的通道配置添加到凭据文件中,例如对于REST:
rest:
# you don't need to provide anything here - this channel doesn't
# require any credentials
运行Rasa Core
python -m rasa_core.run -d <path to core model> \
-u <nlu model you want to use> \
--endpoints <path to your endpoint configuration (includes NLU url) \
--credentials <channel credentials>