背景:在公司会做一段时间的内部工具的客服,假如有什么问题会通过 mattermost 咨询。 同样的问题问的人很多,如果有机器人的话会很好的降低工作量。
在 github 上搜到的机器人都是一些针对关键词的固定回复,假如要根据提问者发送的图片或者报错信息作特定回复的话,感觉会很困难。
希望能有比较智能一些的机器人,有人了解这方面的开源软件或者工具吗?
https://github.com/LPgenerator/mattermost_bot
import re
from mattermost_bot.bot import listen_to
from mattermost_bot.bot import respond_to
@respond_to('hi', re.IGNORECASE)
def hi(message):
message.reply('I can understand hi or HI!')
@respond_to('I love you')
def love(message):
message.reply('I love you too!')
@listen_to('Can someone help me?')
def help_me(message):
# Message is replied to the sender (prefixed with @user)
message.reply('Yes, I can!')
# Message is sent on the channel
# message.send('I can help everybody!')