Feat/wecom ai bot (#59)

* feat: add wecombot

* feat: add bot md

* feat: add en doc for wecom intelligent bot

* fix: add missing features

* fix: delete line

* doc: perf

---------

Co-authored-by: Junyan Qin <[email protected]>
This commit is contained in:
Guanchao Wang
2025-09-12 20:09:22 +08:00
committed by GitHub
co-authored by Junyan Qin
parent 48d326246e
commit c4b67f5b9b
14 changed files with 125 additions and 1 deletions
+8
View File
@@ -108,6 +108,10 @@ export default defineConfig({
text: "对外客服",
link: "/zh/deploy/platforms/wecom/wecomcs",
},
{
text: "智能机器人",
link: "/zh/deploy/platforms/wecom/wecombot",
}
],
},
{
@@ -341,6 +345,10 @@ export default defineConfig({
text: "External Customer Service",
link: "/en/deploy/platforms/wecom/wecomcs",
},
{
text: "Intelligent Bot",
link: "/en/deploy/platforms/wecom/wecombot",
}
],
},
{ text: "WeChat Official Account", link: "/en/deploy/platforms/wxoa" },
Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

+1
View File
@@ -13,6 +13,7 @@ Bots are used to receive message events from messaging platforms and call pipeli
| Lark | ✅ | | [Tutorial](/en/deploy/platforms/lark) |
| DingTalk | ✅ | | [Tutorial](/en/deploy/platforms/dingtalk) |
| WeCom (Enterprise WeChat) | ✅ | Enterprise internal bot | [Tutorial](/en/deploy/platforms/wecom/wecom) |
| WeCom Intelligent Bot | ✅ | wecom intelligent bot | [Tutorial](/en/deploy/platforms/wecom/wecombot) |
| WeCom Customer Service | ✅ | Enterprise external bot | [Tutorial](/en/deploy/platforms/wecom/wecomcs) |
| WeChat Official Account | ✅ | WeChat public platform bot | [Tutorial](/en/deploy/platforms/wxoa) |
| OneBot v11 | ✅ | Uses a personal QQ account as a bot, requires an independent protocol client, supports OneBot v11 | [NapCat](/en/deploy/platforms/qq/aiocqhttp/napcat) <br> [Lagrange](/en/deploy/platforms/qq/aiocqhttp/lagrange) <br> [LiteLoaderQQNT](/en/deploy/platforms/qq/aiocqhttp/llonebot) |
@@ -0,0 +1,54 @@
# Deploying WeCom Intelligent Bot
:::info
The WeCom Intelligent Robot official API is still being updated, so it currently only accepts requests within 7 seconds.
:::
## Creating a Bot
First, log in to the [WeCom Admin Console](https://work.weixin.qq.com/wework_admin/frame#/).
![Homepage](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_1.png)
Click `Security And Management` in the left sidebar, then click `Intelligent Bot` under `Management Tool`.
As shown:
![Intelligent Bot](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_2.png)
Click `Create Bot`, scroll to the bottom of the page, click `API模式创建`, and enter the page:
![Create via API Mode](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_3.png)
Click to randomly generate Token and EncodingAESKey, then fill in the basic bot information above. **Pay attention to setting the visibility scope**.
Click `My Company` in the left sidebar and save the Company ID at the bottom.
## Configuring Callback URL
Start the LangBot main program, select the adapter `WeCom Intelligent Bot`, and fill in the configuration items.
Among them, the token is Token, the Encoding-AESKey is EncodingAESKey, and the Bot ID can be filled in as xxx (or filled in randomly, it will be changed later). After filling in, click
`Save`, and `Enable` the robot.
![WeCom Intelligent Bot Adapter](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_4.png)
Return to the WeCom robot configuration page, and fill in the robot callback URL (accepts HTTP) in `URL`, for example: **http://xxx.xxx.xx.xx:2291/callback/command**. If the creation is successful, it will jump to the details page. If the message `Request URL Failed` appears, please double-check whether the above steps have been completed one by one.
Details page after successful creation:
![Creation Successful](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_5.png)
Copy the `Bot ID` from the WeCom robot details page, return to the LangBot management page, change the Bot ID of the deployed intelligent robot to the copied ID, and restart the robot.
## Start Using
Enter WeCom, click `➕`, as shown:
![Add Bot](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_6.png)
Click `Company-Created`, select the created bot, and enter the chat interface.
Similarly, if you want to invite the bot to a group chat, click the add member button in the group chat and add the bot from there.
## Effect Images
![Effect Image 1](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_7.png)
+1
View File
@@ -10,6 +10,7 @@ LangBot is an open-source LLM native instant messaging robot development platfor
| QQ Official API | ✅ | |
| WeCom | ✅ | |
| WeComCS | ✅ | |
| WeComIntelligentBot | ✅ | |
| Lark | ✅ | Support streaming output |
| DingTalk | ✅ | Support streaming output |
| Discord | ✅ | |
+2 -1
View File
@@ -11,9 +11,10 @@
| QQ 官方机器人 | ✅ | 接入 QQ 开放平台的机器人 API | [教程](/zh/deploy/platforms/qq/official_webhook) |
| 企业微信 | ✅ | 企业内部机器人 | [教程](/zh/deploy/platforms/wecom/wecom) |
| 企业微信客服 | ✅ | 企业对外机器人 | [教程](/zh/deploy/platforms/wecom/wecomcs) |
| 企业微信智能机器人 | ✅ | 智能机器人 | [教程](/zh/deploy/platforms/wecom/wecombot) |
| 微信公众号 | ✅ | 微信公众平台机器人 | [教程](/zh/deploy/platforms/wxoa.md) |
| 飞书 | ✅ | | [教程](/zh/deploy/platforms/lark) |
| 钉钉 | ✅ | | [教程](/zh/deploy/platforms/dingtalk) |
| Discord | ✅ | | [教程](/zh/deploy/platforms/discord) |
| Telegram | ✅ | | [教程](/zh/deploy/platforms/telegram) |
| Slack | ✅ | | [教程](/zh/deploy/platforms/slack) |
| Slack | ✅ | | [教程](/zh/deploy/platforms/slack) |
@@ -0,0 +1,58 @@
# 部署企业微信智能机器人
:::info
企业微信智能机器人官方接口目前仍在快速迭代中,暂时只能接受7s之内的请求。
:::
## 创建机器人
首先登录[企业微信管理后台](https://work.weixin.qq.com/wework_admin/frame#/)。
![主页](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_1.png)
点击左边栏的`安全与管理`,点击`管理工具`里面的`智能机器人`。
如图:
![智能机器人](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_2.png)
点击`创建机器人`,拉至页面最底部,点击`API模式创建`,进入页面:
![API模式创建](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_3.png)
点击随机获取 Token 和 EncodingAESKey,然后填写上方的机器人基本信息,**注意设置可见范围**。
点击左边栏的`我的企业`,保存最下方的企业ID。
## 配置回调地址
启动 LangBot 主程序,适配器选择 `企业微信智能机器人`,填写配置项,
其中,令牌为 Token,消息加解密密钥为 EncodingAESKey,机器人ID填写入xxx(或者随便填写,后续会改),填写之后点击
`保存`,并`启用`机器人。
![企业微信智能机器人适配器](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_4.png)
返回企业微信机器人配置页面,在`URL回调`中填写入机器人回调地址(接受http),例:**http://xxx.xxx.xx.xx:2291/callback/command** 。若创建成功,则会跳转至详情页面,若出现`请求URL失败`字样,请再三检查上述操作是否一一完成。
创建成功之后的详情页:
![创建成功](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_5.png)
复制企业微信机器人详情页的`Bot ID`,回到LangBot管理页面,将部署的智能机器人的机器人Id改为复制的ID,重新启动机器人。
## 开始使用
进入企业微信,点击 `➕`,如图:
![添加机器人](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_6.png)
点击`企业创建的`,选择创建的机器人,进入聊天界面。
同理,若想邀请机器人进入群聊,那么点击群聊的添加人员,在其中添加机器人。
## 效果图
![效果图1](/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_7.png)
+1
View File
@@ -9,6 +9,7 @@ LangBot 是一个开源的大语言模型原生即时通信机器人开发平台
| QQ 个人号 | ✅ | 由支持 onebot11 协议的第三方应用端支持,支持 QQ 个人号私聊、群聊 |
| QQ 官方机器人 | ✅ | QQ 官方机器人,支持频道、私聊、群聊 |
| 企业微信 | ✅ | |
| 企微智能机器人 | ✅ | |
| 企微对外客服 | ✅ | |
| 微信公众号 | ✅ | |
| 飞书 | ✅ | 支持流式输出 |