Jh1n
V2EX  ›  问与答

企业微信接入知识库方案

  •  
  •   Jh1n · Feb 24, 2025 · 4286 views
    This topic created in 620 days ago, the information mentioned may be changed or developed.
    目前想监听特定群聊上下文,获取某个用户发送的消息,发送给知识库,经过处理后将答案自动进行回复,查了下企业微信没有对应的 API 接口只能进行逆向了吗。
    Supplement 1  ·  May 12, 2025
    看到很多 V 友收藏了这个帖子,我来更新下,后续是使用了 github 的开源项目 https://github.com/hanfangyuan4396/dify-on-wechat ,这个基本可以实现。
    然后最近在对接三方服务商天润融通,做的比较成熟
    15 replies  •  2025-02-25 23:41:36 +08:00
    ssiitotoo
    ssiitotoo
    Feb 24, 2025
    1
    关注
    summerwar
    summerwar
    Feb 24, 2025
    2
    https://developer.work.weixin.qq.com/document/path/90238 这里不是有企业微信接收聊天消息的 api 吗?
    yidinghe
    yidinghe
    PRO
    Feb 24, 2025 via Android
    3
    Jh1n
    Jh1n
    OP
    Feb 24, 2025
    4
    @yidinghe 感谢回答,我说的是 dify 创建的 rag 知识库,外部的
    Jh1n
    Jh1n
    OP
    Feb 24, 2025
    5
    @summerwar 只适用于内部群,外部群不能用
    i4color
    i4color
    Feb 24, 2025
    6
    zfjdif
    zfjdif
    Feb 24, 2025
    7
    @Jh1n 以我之前的经验,应该只能逆向,并且风险不低
    tomclancy
    tomclancy
    Feb 24, 2025 via iPhone
    8
    普通微信有办法吗
    lower
    lower
    Feb 24, 2025
    9
    外部群没招,微信/企微这种傻逼玩意把各种可能的方式都堵得死死的……外部群连 webhook 机器人都不支持,那个 sb 客服功能好像也只是单聊模式,跟公众号一样咯……

    上次看到一个 hook pc 微信的框架,不知道稳不稳定: https://github.com/ngc660sec/NGCBot/issues
    Mianmiss
    Mianmiss
    Feb 24, 2025
    10
    用这个项目,非常稳定不封号。唯一的弊端就是 需要使用 windows 进行部署
    https://github.com/hanfangyuan4396/dify-on-wechat
    pingdog
    pingdog
    Feb 24, 2025 via Android
    11
    管理员开启聊天记录留存就能读到消息了,怎么发就自己研究了
    ETiV
    ETiV
    Feb 24, 2025
    12
    企业微信的群聊一律不能由 API/bot 接收消息,腾讯自己的除外 😂

    上面的收消息接口仅限于用户一对一 bot 聊天,是可以收的。
    c2ch
    c2ch
    Feb 25, 2025
    13
    我也想知道,不过市面上目前有一些第三方工具有实现。
    如企微宝、句子互动,他们都相当于企微的外挂工具,可以接受群聊、私聊消息,然后发消息,不知道咋实现的。
    boneyao
    boneyao
    Feb 25, 2025
    14
    可以不用逆向,交钱就行(获取消息)。但是电脑不能动。
    PerFectTime
    PerFectTime
    Feb 25, 2025
    15
    收消息可以实现, 会话存档就可以, 但是你想发消息就只能 hook, 没有 api

    之前写了个帮同事一键发送消息的 app, 被检测到了, 要求 1 分钟内在手机端确认操作, 否则踢下线
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2101 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 03:22 · PVG 11:22 · LAX 19:22 · JFK 22:22
    ♥ Do have faith in what you're doing.