python-wechaty
python-wechaty copied to clipboard
⁉ ⁉按照中文文档中rasa插件教程,rasa run之后,与BOT对话无消息返回⁉ ⁉
按照中文文档中rasa插件教程,rasa run之后,与BOT对话无消息返回
涉及代码
rasa server
2021-12-02 10:02:35 INFO root - Starting Rasa server on http://0.0.0.0:5005
Bot
async def run():
"""async run method"""
options = RasaRestPluginOptions(
endpoint='https://127.0.0.1:5005',
conversation_ids=['马赛克', '机器人contact_id']
)
rasa_plugin = RasaRestPlugin(options)
os.environ['WECHATY_PUPPET_SERVICE_TOKEN']='马赛克'
os.environ['WECHATY_PUPPET']='wechaty-puppet-service'
os.environ['WECHATY_PUPPET_SERVICE_ENDPOINT']='马赛克'
bot = Wechaty().use(rasa_plugin)
await bot.start()
asyncio.run(run())
在微信群中,当Bot对话产生后,rasa server有log如下
2021-12-02 10:09:06 INFO rasa.core.agent - Ignoring message as there is no agent to handle it.
疑问
我是否需要其他API或插件支持?
The configuration of conversation_ids is not correct. From the above the code, it seems the name of contact which should be contact.contact_id or room.room_id.