wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.62k stars 234 forks source link

⁉ ⁉按照中文文档中rasa插件教程,rasa run之后,与BOT对话无消息返回⁉ ⁉ #279

Open sunyidi123 opened 2 years ago

sunyidi123 commented 2 years ago

按照中文文档中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或插件支持?

wj-Mcat commented 2 years ago

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.