diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 4264d9ccf..5ab5b9208 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -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" }, diff --git a/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_1.png b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_1.png new file mode 100644 index 000000000..69e36b1d6 Binary files /dev/null and b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_1.png differ diff --git a/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_2.png b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_2.png new file mode 100644 index 000000000..0bf6aa5d5 Binary files /dev/null and b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_2.png differ diff --git a/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_3.png b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_3.png new file mode 100644 index 000000000..ad874c11a Binary files /dev/null and b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_3.png differ diff --git a/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_4.png b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_4.png new file mode 100644 index 000000000..09ac5eded Binary files /dev/null and b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_4.png differ diff --git a/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_5.png b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_5.png new file mode 100644 index 000000000..1aa6cb1eb Binary files /dev/null and b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_5.png differ diff --git a/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_6.png b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_6.png new file mode 100644 index 000000000..09c33b3f8 Binary files /dev/null and b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_6.png differ diff --git a/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_7.png b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_7.png new file mode 100644 index 000000000..9384cd651 Binary files /dev/null and b/docs/assets/image/zh/deploy/bots/wecom/wecombot/wecombot_7.png differ diff --git a/docs/en/deploy/platforms/readme.md b/docs/en/deploy/platforms/readme.md index 5249fc3da..dab31f2a4 100644 --- a/docs/en/deploy/platforms/readme.md +++ b/docs/en/deploy/platforms/readme.md @@ -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)
[Lagrange](/en/deploy/platforms/qq/aiocqhttp/lagrange)
[LiteLoaderQQNT](/en/deploy/platforms/qq/aiocqhttp/llonebot) | diff --git a/docs/en/deploy/platforms/wecom/wecombot.md b/docs/en/deploy/platforms/wecom/wecombot.md new file mode 100644 index 000000000..3f58ad7b0 --- /dev/null +++ b/docs/en/deploy/platforms/wecom/wecombot.md @@ -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) \ No newline at end of file diff --git a/docs/en/insight/features.md b/docs/en/insight/features.md index 147350e2b..a6d2172ca 100644 --- a/docs/en/insight/features.md +++ b/docs/en/insight/features.md @@ -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 | ✅ | | diff --git a/docs/zh/deploy/platforms/readme.md b/docs/zh/deploy/platforms/readme.md index c1cfbc8f7..712d147c9 100644 --- a/docs/zh/deploy/platforms/readme.md +++ b/docs/zh/deploy/platforms/readme.md @@ -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) | \ No newline at end of file +| Slack | ✅ | | [教程](/zh/deploy/platforms/slack) | diff --git a/docs/zh/deploy/platforms/wecom/wecombot.md b/docs/zh/deploy/platforms/wecom/wecombot.md new file mode 100644 index 000000000..d2f256de2 --- /dev/null +++ b/docs/zh/deploy/platforms/wecom/wecombot.md @@ -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) + + + + diff --git a/docs/zh/insight/features.md b/docs/zh/insight/features.md index 9b8d80ffb..e1bf492a0 100644 --- a/docs/zh/insight/features.md +++ b/docs/zh/insight/features.md @@ -9,6 +9,7 @@ LangBot 是一个开源的大语言模型原生即时通信机器人开发平台 | QQ 个人号 | ✅ | 由支持 onebot11 协议的第三方应用端支持,支持 QQ 个人号私聊、群聊 | | QQ 官方机器人 | ✅ | QQ 官方机器人,支持频道、私聊、群聊 | | 企业微信 | ✅ | | +| 企微智能机器人 | ✅ | | | 企微对外客服 | ✅ | | | 微信公众号 | ✅ | | | 飞书 | ✅ | 支持流式输出 |