DataScaler Logo

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

StepWhat to doTime
W1. Create the bot in WeComAdmin console → Smart Bot → create an “API mode · long connection” bot and get the Bot ID and Secret10 min
W2. Enter it in DataScalerOn the OA integration page choose WeCom and enter Bot ID, bot name and Secret3 min
W3. Bind your own accountGenerate a binding code and send it to the bot in WeCom2 min
W4. Try it and subscribeAsk a question, use the card buttons, subscribe to questions you want regularly5 min
W5. Bind a group or add colleagues (optional)Let group members @ the bot, or invite colleagues to bindabout 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.

Permission Management: you need to be in both Bot creation permission and API mode management (member names masked)

Then create the bot:

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

Click New bot on the Smart Bot page

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

Create smart bot: choose API mode and long connection, generate the Bot ID and Secret (Bot ID masked)

  1. 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.

Bot detail page: Bot ID, Secret, available members (sensitive information masked)

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

  1. In DataScaler open Organization settings → OA integration and click 企业微信 (WeCom) under Choose a platform.
  2. In Connect the WeCom smart bot, fill in:
FieldWhat to enter
Bot IDThe Bot ID from W1
Bot nameExactly the name shown in WeCom
SecretThe Secret from W1
  1. Click Save and connect. About 30 seconds later, Bot connection status shows Online.

Choose WeCom on the OA integration page

Enter Bot ID, bot name and Secret; after saving the 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

  1. In the Bind my WeCom account area on the same page, click Generate binding code.
  2. In WeCom, search for the bot name, open the direct chat, and send only the binding code with no other text.
  3. When the bot replies that binding succeeded, return to DataScaler and confirm the account is bound.

Send the binding code in the direct chat; the bot replies with success and a feature overview

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:

The conclusion card under an answer: statistics, explain and subscribe buttons

  • 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):

SendEffect
菜单 (menu)Open the quick-button card
新会话 / 新会话:your questionStart 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

  1. Open the brand report, click Configured · Manage pushes, choose WeCom under Brand push accounts, and click Bind group to generate a group binding code.
  2. 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).
  3. In the group send @bot binding-code.

@ the bot with the binding code in the group; the bot replies that the group is bound

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:

  1. Make sure the colleague is in the bot's available members (WeCom admin console → Smart Bot → the bot → available members).
  2. The brand creator clicks Add recipient in Brand push accounts, chooses WeCom, and privately sends the invitation text to the colleague.
  3. 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):

  1. 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=….
  2. 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.
  3. 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.

WeCom integration