szxczyc
V2EX  ›  问与答

有人了解 mattermost 机器人吗?智能一些的

  •  
  •   szxczyc · Feb 26, 2022 · 1180 views
    This topic created in 1539 days ago, the information mentioned may be changed or developed.

    背景:在公司会做一段时间的内部工具的客服,假如有什么问题会通过 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!')
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 05:35 · PVG 13:35 · LAX 22:35 · JFK 01:35
    ♥ Do have faith in what you're doing.