WeCom integration
Connect DataScaler through your own WeCom smart bot: create a long-connection bot in the admin console, enter its Bot ID and Secret, bind your account, then ask questions in direct and group chats and receive pushes.
DataScaler connects to WeCom (企业微信) through a smart bot in API mode with a long connection. The bot is created in your own company's WeCom, and you enter its Bot ID and Secret in DataScaler. You need no server, trusted IP, trusted domain or domain filing, no app review or release, and no coding.
After setup you can:
- Ask brand questions in a bot direct message or in a group (@bot), with the answer streaming in as it is written;
- Use the buttons under an answer to subscribe (daily / weekly / monthly refresh and push), see an explanation, or start a new conversation;
- Receive report-ready notices, weekly insight digests and anomaly alerts.
Setup flow
| Step | What to do | Time |
|---|---|---|
| W1. Create the bot in WeCom | Admin console → Smart Bot → create an “API mode · long connection” bot and get the Bot ID and Secret | 10 min |
| W2. Enter it in DataScaler | On the OA integration page choose WeCom and enter Bot ID, bot name and Secret | 3 min |
| W3. Bind your own account | Generate a binding code and send it to the bot in WeCom | 2 min |
| W4. Try it and subscribe | Ask a question, use the card buttons, subscribe to questions you want regularly | 5 min |
| W5. Bind a group or add colleagues (optional) | Let group members @ the bot, or invite colleagues to bind | about 5 min each |
Before you start
- A generated VOC brand report you can open, and the DataScaler account that created the brand (same as Before you start).
- A WeCom administrator, or a member the administrator has authorized. Creating a long-connection bot requires the administrator to grant you “Bot creation permission” and “API mode management” under Smart Bot → Permission Management. If you do not see “API mode”, ask the administrator.
- Everyone who will use the bot must be in the bot's available members (W1 step 5).
How WeCom differs from Feishu / Lark
A WeCom bot needs no release or review and connects about 30 seconds after you save. The bot name must exactly match the name in WeCom (including spaces); it is used to recognise @mentions in groups.
W1. Create the bot in WeCom
Check permissions first. Creating a long-connection bot requires an administrator grant: in the admin console go to Smart Zone → Smart Bot → Permission Management, and make sure you are listed under both Bot creation permission and API mode management (members who may configure “long connection” access). If not, click Modify next to it to add yourself, or ask the administrator.

Then create the bot:
- Open the WeCom admin console, sign in by scanning the QR code, go to Smart Zone → Smart Bot, and click New bot (新建机器人).

- Enter a name (remember it; you must enter it exactly in W2) and a description, and choose API mode.
- Choose Use long connection as the connection type (no domain or IP needed). The Bot ID is then shown.
- Click Get next to Secret to generate the Secret. You cannot save without one.
- Set Usage to Multi-user and choose the available members: everyone who should ask questions or receive pushes must be in range.
- Click Save at the bottom. WeCom shows the usage rules and privacy agreement on save; you must read and accept them yourself.

- After saving, open the bot under Bot management; the Configuration details page shows the Bot ID and Secret (click the copy icon beside each). Copy them, together with the bot name, into DataScaler.

Copy the Secret here only
The Secret is the bot's password. Do not post it in a group or share screenshots of it. If it leaks, regenerate it on the bot's detail page and update DataScaler.
Done when: you have the Bot ID, Secret and bot name.
W2. Enter the bot in DataScaler
- In DataScaler open Organization settings → OA integration and click 企业微信 (WeCom) under Choose a platform.
- In Connect the WeCom smart bot, fill in:
| Field | What to enter |
|---|---|
| Bot ID | The Bot ID from W1 |
| Bot name | Exactly the name shown in WeCom |
| Secret | The Secret from W1 |
- Click Save and connect. About 30 seconds later, Bot connection status shows Online.


It is normal for the Secret not to be shown after saving; you only need to re-enter it when you switch to a different bot (the Bot ID changes). Only the organization owner and administrators can change these settings.
Done when: the status shows Online. If it stays on “Connecting” or “Offline”, see Troubleshooting.
W3. Bind your own WeCom account
- In the Bind my WeCom account area on the same page, click Generate binding code.
- In WeCom, search for the bot name, open the direct chat, and send only the binding code with no other text.
- When the bot replies that binding succeeded, return to DataScaler and confirm the account is bound.

The code is valid for 10 minutes and works once, and it binds the WeCom account that sends it. If it expires, generate a new one; do not resend the old one.
Done when: the bot replies that binding succeeded and welcomes you to DataScaler.
W4. Try it, and subscribe to questions you want regularly
Ask a question in the direct chat, for example “What do users care about most in the last 30 days?”. The answer streams in as it is written. When it is complete, a conclusion card appears below:

- Statistics rows appear only when the question involves countable post sentiment; qualitative questions show just the title and buttons.
- Explain this insight asks the bot to explain the evidence behind the conclusion.
- Subscribe daily / weekly / monthly refreshes this question on the chosen schedule and pushes the newest answer here. A subscribed question shows Subscribed weekly; click it to manage My subscriptions.
- New conversation / History start a new topic or return to an earlier one.
Useful commands (just send the text):
| Send | Effect |
|---|---|
菜单 (menu) | Open the quick-button card |
新会话 / 新会话:your question | Start a new topic |
历史会话 | View and resume earlier conversations |
品牌 | View or switch authorized brands |
我的订阅 | View question subscriptions |
帮助 | Full feature help |
Timing
The bot has to fetch data first, so there is a “thinking” phase before the answer starts; complex questions can take tens of seconds, and one answer finishes within 10 minutes. If an answer is very long or WeCom's message-rate limit is reached, the final content is sent as a new message instead, so nothing is lost.
W5. Bind a group, or add colleagues
Using it in a group
- Open the brand report, click Configured · Manage pushes, choose WeCom under Brand push accounts, and click Bind group to generate a group binding code.
- Add the bot to the target group (add a member, search for and select the smart bot; it must be in the bot's available members).
- In the group send @bot binding-code.

Once bound, every member of the group can use the authorized brands with @bot + question. The bot never reads or writes anyone's personal chat, and ordinary group messages do not trigger it.
- On a card in a group, only the person who asked can act. Anyone else who clicks sees “Only the asker can do this; @ me to ask your own question”, and nothing is posted to the group.
- To subscribe to a group, click subscribe on an answer card and choose this group; pushes are sent only after you choose the group.
Adding colleagues
No need to recreate the bot or share the Secret:
- Make sure the colleague is in the bot's available members (WeCom admin console → Smart Bot → the bot → available members).
- The brand creator clicks Add recipient in Brand push accounts, chooses WeCom, and privately sends the invitation text to the colleague.
- The colleague sends the binding code in the bot's direct chat (valid for 10 minutes, one use).
The rules are the same as Add recipients: after binding, the colleague gets access to this brand and can receive its pushes.
Advanced: group bot push (push only, no questions)
If you only want subscriptions, daily briefs, keyword and negative-review alerts pushed to a group, without asking questions there, use the group's message push bot (Webhook):
- In the WeCom group: Group settings → Message push → Add bot, then copy the Webhook URL, shaped like
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=…. - In DataScaler OA integration → WeCom, click Add group bot in the Group bots area, enter a group name, paste the Webhook URL and tick the authorized brands. Ticking Send a test message to the group before saving is recommended.
- When a brand creator subscribes, choose this group as the push target.
Webhooks push only
A group bot can only receive pushes: no questions in the group, no buttons or menu. The Webhook URL works like the group's send password; it is stored encrypted and only the last 4 characters are shown afterwards. If the URL stops working (for example the bot was removed in WeCom), DataScaler shows “URL invalid” and you need to add it again. This feature is rolled out per organization; if you do not see the Group bots area, contact support.
Troubleshooting
If the status never becomes “Online”, the binding code is rejected, or the bot does not respond, see Troubleshooting · WeCom.

