微信机器人二次开发

0 阅读2分钟

随着私域盘子越铺越大,微信生态里的重复性搬砖活儿越来越多——加人、发消息、管群,样样都要人肉扛,人效根本跑不动,管理也容易乱成一锅粥。基础执行层一旦卡在人工上,业务想放大就没那么容易了。
GeWe 开放平台(GeWe Framework)干的事很简单:把高频操作变成标准接口和自动流程,让系统替人跑腿,从“手工作坊”切到“流水线作业”。
能干啥

  • 客户沉淀:自动揽粉、打标、记备注,客户画像自动归位,精细分层不费劲。
  • 消息触达:文字、图片、链接等多种消息统一入口收发,群发私聊不再靠手点。
  • 社群打理:群聊自动建、自动管,拉人踢人发公告都走流程,运营不走样。
  • 号群调度:一堆账号集中指挥,朋友圈物料一键同步分发,不用挨个登录切换。

好在哪

  • 干活快了,机械操作不再占满时间。
  • 用人少了,执行层不用堆人头。
  • 出错率低了,机器记性比人准。
  • 扩量稳了,规模上去系统也能跟得住。

说白了,GeWe 就是帮企业把私域里的脏活累活变成后台自动跑的程序,增长底盘更扎实,跑起来也更省油。

请求参数

Header 参数

export interface ApifoxModel {
    "X-GEWE-TOKEN": string;
    [property: string]: any;
}

Body 参数application/json

export interface ApifoxModel {
    /**
     * 设备ID
     */
    appId: string;
    /**
     * 名片的wxid
     */
    nameCardWxid: string;
    /**
     * 名片的昵称
     */
    nickName: string;
    /**
     * 好友/群的ID
     */
    toWxid: string;
    [property: string]: any;
}

示例

{
    "appId": "{{appid}}",
    "toWxid": "34757816141@chatroom",
    "nickName": "谭艳",
    "nameCardWxid": "wxid_0xsqb3o0tsvz22"
}

请求示例代码

curl --location --request POST 'http://api.geweapi.com/gewe/v2/api/message/postNameCard' \
--header 'X-GEWE-TOKEN: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appId": "",
    "toWxid": "34757816141@chatroom",
    "nickName": "谭艳",
    "nameCardWxid": "wxid_0xsqb3o0tsvz22"
}'

返回响应

export interface ApifoxModel {
    data: Data;
    msg: string;
    ret: number;
    [property: string]: any;
}

export interface Data {
    /**
     * 发送时间
     */
    createTime: number;
    /**
     * 消息ID
     */
    msgId: number;
    /**
     * 消息ID
     */
    newMsgId: number;
    /**
     * 接收人的wxid
     */
    toWxid: string;
    /**
     * 消息类型
     */
    type: number;
    [property: string]: any;
}

示例

{
    "ret": 200,
    "msg": "操作成功",
    "data": {
        "toWxid": "34757816141@chatroom",
        "createTime": 1703842036,
        "msgId": 0,
        "newMsgId": 3285058507819179744,
        "type": 42
    }
}