Rasa Chatbot:未通过网络聊天显示的HTTP API在对话中运行操作

时间:2019-08-10 12:37:15

标签: rasa-core rasa

我尝试使用HTTP API对活动会话运行操作,但是从该操作发送的消息未显示在网络聊天中,为了进行调试,我使用Debug Command运行了rasa和rasa操作,在终端中,该操作执行会出现在rasa和rasa操作上,只是调度的消息未显示在网络聊天中。

对于客户端网络聊天,我正在使用https://github.com/mrbot-ai/rasa-webchat 使用 socketio 连接器。

HTTP API调用

中的快照

请求网址:conversations/{conversationId}/execute

请求正文:{ “name”: “action_test_notify” }

rasa运行操作-vv

的快照
2019-08-08 17:39:12 DEBUG rasa_sdk.executor - Received request to run ‘action_test_notify’ 2019-08-08 17:39:12 WARNING root - action_test_notify 2019-08-08 17:39:12 DEBUG rasa_sdk.executor - Finished running ‘action_test_notify’ 127.0.0.1 - - [2019-08-08 17:39:12] “POST /webhook HTTP/1.1” 200 432 0.001520

rasa运行--enable-api -vv

的快照
2019-08-08 17:44:24 DEBUG rasa.core.processor - Action ‘action_test_notify’ ended with events ‘[‘BotUttered(text: test message., data: {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, metadata: {})’, ‘BotUttered(text: pushed message, data: {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, metadata: {})’]’ 2019-08-08 17:44:24 DEBUG rasa.core.processor - Current slot values: able_to_finish: None finish_date: None is_remain_tasks: None project_name: None requested_slot: None 2019-08-08 17:44:24 DEBUG rasa.core.tracker_store - Recreating tracker for id ‘id here’

最后,从调试开始,python操作已成功执行,但消息未分发给网络聊天客户端。

请帮助解决此问题?

0 个答案:

没有答案