Before integrating OpenClaw to the WeCom Smart Robot, ensure the basic environment configuration on the device side meets the requirements for both hardware/software and application versions:
1. The latest version of the WeCom client is installed.
2. OpenClaw is installed on a local device, or its deployment is completed on Tencent Cloud Lighthouse (or services from other cloud providers).
3. Confirm that the operation terminal can execute command-line instructions normally (use the local terminal for local deployment; use the corresponding server terminal for cloud deployment).
4. Risk Warning: Using model-called interfaces to operate WeCom internal apps may be affected by model hallucinations and other factors, posing risks such as data leakage and privilege escalation. It is recommended to first verify in a test company, then use it with caution. By proceeding with installation, you accept the potential risks by default.
Creating a smart robot via API Mode (Long Connection) supports passive replies to multiple messages and proactive sending of messages to users. This is the exclusive creation method for integrating with OpenClaw. The operational steps are as follows:
1. Open the WeCom app, go to Workspace -> Smart Robot, and click Create Robot-> Manual Creation.
2. After entering the creation page, select API Mode Creation (the page indicates: “If you need to use your own system to access chats between members and the robot and output replies, you can switch to API mode creation”).
3. On the API configuration page, choose The connection method is “Use Long Connection” (does not require a domain/IP to receive messages and return results, unlike the URL callback method).
4. When configured, the page will automatically generate and display the Bot ID and Secret. Securely save this information (it will be needed for subsequent integration with OpenClaw).
5. Additionally, configure the robot’s visible scope. Keep other items as the default. The API mode currently does not support preview and debugging. Save the robot configuration directly.
Note: The Long Connection method is recommended for integrating with OpenClaw. For OpenClaw deployed on cloud service providers, the URL callback method can also be chosen to quickly create a robot for integration.
6. Long-connection smart robots support receiving/sending messages in formats such as text, images, mixed text and images, audio, video, and files. For details, please refer to the API documentation.
The message type formats are described as follows:
Message type |
msgtype | Notes |
|---|---|---|
| Template card | template_card | Template card messages. For details, see Template Card |
| Markdown | markdown | Messages in Markdown format. For details, see Markdown |
| File message | file | Ordinary file messages. See File Message for details |
| Image message | image | Image message. See Image Message for details |
| Voice message | voice | Voice message. See Voice Message for details |
| Video message | video | Video message, see Video Message for details |
Both locally and cloud deployed OpenClaw complete plugin installation, channel addition, and information configuration via the terminal command line.
1. Use Tencent Cloud Lighthouse.
2. Enter Lighthouse, select the Lighthouse instance where OpenClaw is deployed, click the server instance card to enter the “Manage Instance” page, and go to the “App Management” page.
3. Under “Models”, you need to add a model
If a model is not added, the following error will occur during conversation
4. In the Channels section, select WeCom Robot (Long Connection)
Sequentially enter the Bot ID and Secret randomly generated when creating the WeCom robot mentioned earlier in the input boxes. After filling in the details, click the Add and Apply button on the interface, click OK in the pop-up box, wait for a moment, and you will see the completed WeCom robot configuration in the interface.
5. After entering the details, click Add and Apply, and complete the restart.
6. Return to the WeCom robot creation page, save, and create. You can now chat normally with the smart robot in WeCom.
7. If you cannot find the robot after configuration is complete, you can find it via the following path: Workspace -> Smart Robot -> Details -> Go to Use -> Send Message
1. Install the WeCom plugin: Open the local terminal, open the terminal, and execute the following commands in sequencenpx -y @wecom/wecom-openclaw-cli install
2. Integrate by scanning QR code with WeCom: Select QR code integration and scan the QR code with WeCom
3. One-click robot creation: No further configuration is needed; simply click “One-click create robot”
4. Auto-integrate OpenClaw: Once the robot is successfully created, it will automatically integrate with the local OpenClaw without manual pairing. You can click “Use” to start chatting with the robot.
Prerequisite: Please upgrade to the latest WeCom OpenClaw plugin. If you have not upgraded yet, enter the following code in your local terminal:openclaw plugins update wecom-openclaw-plugin
The 5.0.7 version updated on March 13th now supports robots creating documents and Smart Sheets via MCP.
3.2.1 Configuration method 1: Authorize and use docs via chat
1. You can directly instruct the robot to operate the docs. For example: “Help me collect important news in the retail industry this week and summarize it into a WeCom doc.” The robot will automatically send an authorization link to request permission.
2. Click to enter the authorization page, then click “Confirm Authorization” to grant the robot permission to use documents.
3. After successful authorization, simply tell the robot “Authorized”, and it will automatically connect to the MCP service and generate the document.
3.2.2 Configuration method 2: Manual authorization
Prerequisite: An API mode robot has already been created, and OpenClaw integration has been completed.
1. Entry: Go to Workspace -> Smart Robot -> Locate the corresponding robot integrated with OpenClaw, enter the Edit page, and click “Available Permissions”.
2. Click “Authorize”, and copy either the streamableHTTP URL or the JSON Config (either one will suffice; in practice, the JSON Config tends to provide more stable reasoning installation across models).
3. Send the copied configuration to the robot to complete the installation.
3.2.3 Typical configuration cases
Case 1: Collect important news in the retail industry this week and summarize it into a WeCom document.
Case 2: Organize the basic information and current month’s trends of the Top 10 companies in the catering industry, and compile them into a WeCom smart sheet, including company name, organization size, main catering category, and recent trends.
OpenClaw can quickly integrate WeCom Smart Sheet via Webhooks to achieve automatic data writing and updating. As a data carrier, Smart Sheets supports multi-scenario data synchronization and visual display. For detailed configuration and integrate methods, please refer to: Receive External Data to Smart Sheet.
1. Enable the “Receive External Data” feature in the WeCom Smart Sheet. The system will generate a unique Webhook address for the sheet.
2. Use a standard HTTP POST request to synchronize data generated by OpenClaw to this address, thereby adding or updating records in the Smart Sheet.
| Data source | Applicable scenarios |
|---|---|
| System data such as ERP, work orders and orders | Sync data to WeCom for automated follow-up reminders |
| Data generated by workflows such as Smart Robot and Dify | Smart Sheets serve as databases to visually display data |
| System data such as HR and finance | Automatically writing data to Smart Sheets for viewing and analysis. |
If you need to further call various WeCom app APIs (such as Docs, Approvals, Attendance, etc.) via OpenClaw, you must first access WeCom’s CorpID and App Secret, and then complete the API call authorization. The steps are as follows:
1. Access CorpID: Log in to the WeCom Admin Console, enter My Company, and the unique CorpID will be displayed at the bottom of the page.
2. Access app Secret:
1. Send the accessed CorpID and App Secret to the WeCom robot that is already associated with OpenClaw.
2. Issue the command 「Get access token」 to the robot to retrieve the core credential for making API calls.
3. Use the acquired access token to invoke various WeCom server APIs (e.g., creating a document, initiating an approval, querying attendance data, etc.).
4. API call example (Taking “Create a Smart Sheet” as an example):
Note: For the specific call rules of APIs for various functional modules of WeCom, please refer to the official 「Calling API Documentation」.
Currently, WeCom does not provide a download link for OpenClaw. You need to install OpenClaw on your local device yourself, or complete the deployment of OpenClaw on instances of Tencent Cloud Lighthouse (and other cloud provider services).
The long connection method is recommended for integrating with OpenClaw. For OpenClaw deployed on cloud service providers, the URL callback method can also be chosen to quickly create a robot for integration.
Note: The long-connection integration method does not require a company domain or IP; the URL Callback method requires a company-trusted domain and IP, or a domain where the filing entity is the same as the company entity. See Trusted Domain Description for details.
Currently, administrators and members with the permission to create smart robots can integrate OpenClaw in the Smart Robot section.
Administrators can configure the available members for the robot’s Long Connection method. Operation Path:
Admin Console -> Security and Management -> Management Tools -> Smart Robot -> Management -> API Mode Management -> Configure members who can integrate via “Long Connection”
(1) Default settings:
Yes, it is required.
The plugin used by OpenClaw deployed via Tencent Cloud Lighthouse, is not provided by WeCom. It is recommended to seek assistance from the Lighthouse team.
Currently, configuring OpenClaw to integrate to the WeCom smart robot does not support usage in external groups / customer groups for the time being.
All public skills can be installed. More official plugins will be supported in the future, so please stay tuned.
For OpenClaw to integrate a smart robot and support attachment recognition, it must be using a multimodal model.
Starting from the afternoon of March 20, 2026, for long-connection robots that have had chats in the past month across the entire network, a notification regarding the upgrade of the OpenClaw WeCom official plugin will be pushed to the robot creators via the robot. You can view the updated version, new capabilities, and update commands within the update notification, and you can directly input commands in the terminal to complete the update.
Subsequently, when all the following conditions are met simultaneously, the robot creator will receive an upgrade notification once:
(1) A new version of the OpenClaw WeCom official plugin is available.
(2) The smart robot is in long-connection mode.
(3) The user enters the robot chats.