The intelligent robot configuration management platform provides one-click access to ChatGPT conversations and seamlessly adapts to Dify, FastGPT, and Coze knowledge bases!
Support groups, individuals define different roles, flexibly configure various dialogue modes, drawing, image recognition, network query, GPTs, speech analysis, and rich and diverse skills! It has various scheduled tasks, RSS subscription, countdown reminder, news consultation sending, batch sending, forwarding, cross-group chat, reminder function, and API to send messages
With the smart micro-secretary client, you can access official accounts, corporate WeChat, Gitter, Lark, WhatsApp, 5G messaging and other protocols supported by Wechaty with one click.
WeChat official website
This project is a micro-secretary client used with the intelligent micro-secretary platform. If you want to use your own robot, you must deploy the micro-secretary client yourself.
node version>18
This project is an open source intelligent robot project based on wechaty. For more information about the Wechaty
project description and API documentation, please go to: wechaty introduction
Detailed tutorial link address for micro-secretary deployment: Micro-Secretary Documentation
Supports switching between multiple robots
⏳ Supports setting limits on the number of conversations, with a text review interface.
? Speech recognition and sending (supported by Qiwei protocol and needs to be customized).
?Support setting different keywords to trigger different characters, no need for @ to trigger.
? Character presets
Send a message to a group chat online
Send fixed material content to group chat online
?️ Keyword group management
? Send messages to friends online
Text material? File, picture material, applet material? H5 link card material
Any system call interface can send messages to group chats and friends, and supports sending text, pictures, videos and other formats.
Get all friends list and group list.
Image recognition, speech recognition, voice sending, and custom robot interfaces are open. Please join the communication group and contact the administrator.
More details: Feature overview
Registration: Intelligent Micro Secretary
Initialization configuration file小助手配置->基础配置
, save after modification
Get APIKEY
and APISECRET
from the personal center, which will be used in subsequent configurations.
Since most of the timing information and some weather interfaces of this project come from Tianxing Data, you need to prepare the Tianxing Data account in advance and apply for the permissions of the relevant interfaces.
1. Registration: Tianxing Data
2. Apply for interface permissions
Required interface
Optional interfaces (you must apply if you want to use the corresponding functions), but if the Tianxing robot is used by default, the following functional interfaces do not need to be applied for, and the robot will directly return the corresponding information.
Currently, the platform is only adapted to the above interfaces of Tianxing Data. Other interfaces are not yet adapted. If necessary, you can contact us for customization.
Requires node version >16. If it is a windows system, please use win10 and above.
Clone this project and enter the project root directory to execute npm install
to install the project dependencies.
Configure APIKEY
and APISECRET
in src/index.js
code
Execute the command npm run start
and the terminal will display the QR code. You can scan the code directly or go to the smart micro secretary (assistant configuration->login status to scan the code to log in)
After configuring the functions you need in the smart micro secretary, send the更新
keyword to the activated WeChat to pull the latest configuration (or the update keyword you set yourself, the initial keyword is更新
, ** after each modification of the configuration, Please remember to send keyword update configuration**
Since the installation of some of the dependencies built by yourself is slow or often gets stuck, this project has been built in advance and published to dockerhub. Just pull it.
Note: Accelerated using third-party image sources. The pulled version may not be the latest version, so it may not run. It is recommended to use the official image source and switch by yourself. If you don’t know how, you can search it on Baidu.
You can check the latest tag version at https://hub.docker.com/r/aibotk/wechat-assistant/tags
The size after pulling is probably less than 500M. If the size you pulled exceeds 1G, there is a high probability that you are pulling the wrong version. Please switch to the official source for pulling.
Domestic users can use this mirror address to pull registry.cn-hangzhou.aliyuncs.com/aibotk/wechat-assistant:latest
# docker pull registry.cn-hangzhou.aliyuncs.com/aibotk/wechat-assistant:latest
docker pull aibotk/wechat-assistant
# docker run -d -e AIBOTK_KEY="微秘书apikey" -e AIBOTK_SECRET="微秘书apiSecret" --name=wechatbot registry.cn-hangzhou.aliyuncs.com/aibotk/wechat-assistant:latest
docker run -d -e AIBOTK_KEY= "微秘书apikey " -e AIBOTK_SECRET= "微秘书apiSecret " --name=wechatbot aibotk/wechat-assistant
View docker logs
docker logs wechatbot
You need to install the docker environment in advance and execute the following command in the project root directory
docker build -t wechat-assistant .
# web协议
docker run -e AIBOTK_KEY= "微秘书apikey " -e AIBOTK_SECRET= "微秘书apiSecret " wechat-assistant
Other steps are the same as above
Now the smart micro secretary has been adapted to Gitpod. If you want to test whether your account can log in normally, you can run the test online. This environment is only for testing and is not recommended for use as a production environment.
Gitpod is an online and open source platform for automated and code-ready development environments. You can access the full setup of wechat-assistant-pro on gitpod by clicking the button below. If you have never used gitpod before, you will need to log in with your gitHub account.
For more information about Gitpod, please refer to: https://wechaty.js.org/2021/02/06/wechaty-getting-started-without-leave-your-browser/
Environment variables: AIBOTK_KEY and AIBOTK_SECRET are required
See: How to use the padlocal protocol
View: How to use Qiwei Deployment
1. There must be a registered domain name that is bound to port 8077 mapped to the container, otherwise it cannot be configured in the backend of the official account. 2. It is necessary to add a whitelist of IPs running the container in the official account development configuration, otherwise the message cannot be transferred.
Parameter description
AIBOTK_KEY: micro secretary apikey
AIBOTK_SECRET: micro secretary apiSecret
OFFICE_APPID: Official account AppId
OFFICE_TOKEN: The token randomly written by the public account itself
OFFICE_IS_PERSON: Is it a personal subscription account or an uncertified service account? If it is a personal account or an uncertified service account, the message must be responded to within 3 seconds, otherwise the message cannot be sent. If it is a certified service account, it uses the customer service reply interface and is not restricted by the reply time.
How to activate a certified service account or certified non-personal subscription account
docker run -d -e OFFICE_APPID="公众号AppId" -e OFFICE_TOKEN="公众号自定义的Token" -e OFFICE_IS_PERSON="false" -e AIBOTK_KEY="微秘书apikey" -e AIBOTK_SECRET="微秘书apiSecret" -p 8077:8077 --name=officebot registry.cn-hangzhou.aliyuncs.com/aibotk/wechat-assistant:latest
How to activate personal subscription account or non-certified service account
docker run -d -e OFFICE_APPID="公众号AppId" -e OFFICE_TOKEN="公众号自定义的Token" -e OFFICE_IS_PERSON="true" -e AIBOTK_KEY="微秘书apikey" -e AIBOTK_SECRET="微秘书apiSecret" -p 8077:8077 --name=officebot registry.cn-hangzhou.aliyuncs.com/aibotk/wechat-assistant:latest
Scan the QR code below to add a smart micro secretary to experience all the above functions. You can enter the communication group by sending the group keywords. If you cannot add on WeChat, you can enter the QQ group: 1045575073
Change log
See https://help.aibotk.com
Individual scheduled and group scheduled tasks
This software is based on the open source project Wechaty on github
Run the IM robot through simple setup UI and interaction.
Please abide by national laws and policies and do not use it for illegal crimes!
Please use it reasonably. All bad behaviors and consequences have nothing to do with the author!
This project does not participate in parsing any underlying code, it is just an adaptation layer. All underlying protocols are provided by third parties and have nothing to do with me!