问题描述
我是使用 Rasa 构建聊天机器人的新手.我已经使用 Rasa 核心构建了一个聊天机器人.我已按照本文档中提到的所有步骤进行操作.(https://legacy-docs.rasa.com/docs/core/quickstart/).
I am new to building chatbots using Rasa. I have built a chatbot using Rasa core. I have followed all the steps mentioned in this documentation.(https://legacy-docs.rasa.com/docs/core/quickstart/).
我在 Ubuntu 虚拟机中运行机器人.运行第 6 步和命令 python -m rasa_core.run -d models/dialogue -u models/current/nlu
I am running the bot in a Ubuntu virtual machine. After running the 6th step and the command python -m rasa_core.run -d models/dialogue -u models/current/nlu
我得到类似的东西
root - Rasa Core server is up and running on http://localhost:5005
Bot loaded. Type a message and press enter (use '/stop' to exit):
当我尝试与机器人聊天时:
When I try to chat with the bot:
Your input -> hello
Hey! How are you?
127.0.0.1 - - [2020-02-27 12:20:49] "POST /webhooks/rest/webhook?stream=true&token= HTTP/1.1" 200 185 0.018887
我想知道 0.018887 这个值是多少?我有一个可调用的 api 正在运行吗?假设我的vm ip是10.10.100.546,我该如何调用api?如果没有,我如何构建一个休息 api 来与我的机器人交互.有参考资料吗?
I want to know what is this value of 0.018887?Do I have a callable api running? Suppose my vm ip is 10.10.100.546, how can I call the api?If not, how do I build a rest api to interact with my bot. Any references?
推荐答案
我真的建议在此处使用更新版本的 rasa
https://rasa.com/docs/rasa/ - 您引用的文档适用于 .
1.x
中的 CLI 变得更加直观.
I'd really recommend using a newer version of rasa
here https://rasa.com/docs/rasa/ - the docs you refer to are for <1.0
. The CLI became a lot more intuitive in 1.x
.
即使在旧版本的情况下,这里也指定了一个 HTTP api:https://legacy-docs.rasa.com/docs/core/server/
Even in the case of the old version however, there is an HTTP api specified here: https://legacy-docs.rasa.com/docs/core/server/
这应该可以帮助您入门.
that should help you get started.
这篇关于如何通过 rest-api&#39;s 与托管在 ubuntu 虚拟机上的 Rasa 聊天机器人交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!