Wujie HarnessDocs
Wujie HarnessDocs
WelcomeGetting started

Basics

Workspaces and membersIssuesChannelsProjectsLabelsWorkflowsInbox and subscriptions

Agents

Meet the agentsCreate and configure an agentAssign issues to agentsChatSquadsSkills

Automation

AutomationsRuntimesInstall AI coding tools

Integrations

Feishu app setupDingTalk app setup

Knowledge

DocumentsExperience LibraryCapability CenterConnectors

Governance

Governance

DingTalk app setup

Create one DingTalk internal app per workspace and use it for both sign-in and notifications.

Your workspace's DingTalk integration uses one enterprise internal app (企业内部应用) for both sign-in and notifications. Two ways to connect:

  • One-click creation (recommended) — the workspace admin clicks once in Wujie and scans to authorize; the app is created in the org of whoever scans. Nothing needs to exist on the DingTalk open platform beforehand.
  • Manual setup — an admin creates the app by hand on the DingTalk open platform and pastes the credentials into Wujie. For teams that want full control over every app setting.

DingTalk internal apps only authorize members of your own organization — exactly the isolation a per-workspace app needs. Each Wujie workspace brings its own app; members sign in against their own org's app.

Option 1: one-click creation (recommended)

Start the creation

In your workspace open Settings → Integrations → DingTalk (钉钉) → Workspace app → click 一键创建钉钉应用 (one-click create), set an app name (defaults to the workspace identifier) and confirm.

Scan to authorize

The page shows an authorization link and a device code. Open it with a DingTalk admin account (any org works — the app is created in that org) and confirm. If the page did not open automatically, use the link.

First time only: open the org channel

Fresh orgs default to denying AI tool access, so the first creation asks you to widen it:

As the DingTalk admin, open the developer console CLI authorization settings (or navigate manually: Developer Console → CLI设置 → Agent管理 → 其他渠道), widen the scope (include yourself or everyone), then click Retry back in Wujie.

Once per org. This is DingTalk's org-level security switch (which AI channels may access org data). After it is open, every later creation in this org is fully automatic — no console visits.

Done

Once the authorization lands, Wujie finishes automatically: create the app → enable its robot → read the credentials and store them encrypted → register the login redirect and contact permission → publish the version → both the notification and QR sign-in switches turn on, with no console visits.

Option 2: manual setup

Create the app

Open the DingTalk open platform console → App Developer Console (开发者后台) → Create app. Give it a name like "Wujie – your team". After creation, copy the Client ID (AppKey / SDKAppID) and Client Secret (AppSecret) from the app's Credentials page — you will paste them into Wujie later.

Enable QR login and the robot

In the app:

  • Sign-in and sharing (登录与分享) — enable QR login (扫码登录) for the web authorization flow, and register the redirect URL (next step).
  • App capability (应用能力) — add Robot (机器人). Notifications are delivered by this robot in DingTalk private chat. Note the robot code (robotCode); Wujie asks for it when enabling notifications.

Register the redirect URL

In Sign-in and sharing (登录与分享) → Redirect URLs (回调域名/重定向 URL) add:

Official environment: Copy this complete URL, including the scheme and path:

https://harness.wujieai.com/auth/callback

Self-hosted deployments: Append /auth/callback to your public Wujie frontend URL. The frontend URL must match the server’s WUJIE_APP_URL, or FRONTEND_ORIGIN when that is unset. For example, a frontend at https://wujie.example.com uses:

https://wujie.example.com/auth/callback

This is the single most-missed step. Without the redirect URL, DingTalk rejects the sign-in authorization with a redirect error. The URL must match your domain exactly — scheme, host, and path.

Grant permissions

Open Permission management (权限管理) and enable the contact scopes needed to identify the signing-in member (for example 读取通讯录基础信息 / Contact.User.Read along with the default openid corpid OAuth scopes). Robot message delivery uses the app access token and needs no extra user-level scopes.

For per-agent DingTalk bots (the one-click binding on an agent's detail page, OPE-10574): also enable 微应用管理 / qyapi_microapp_manage — Wujie anchors on this app's credentials to provision each agent's dedicated bot app inside YOUR org. The operator must have bound their DingTalk identity in this workspace, and their DingTalk account needs org developer rights.

Each dedicated robot receives messages in STREAM mode and needs qyapi_get_member to identify the sender through topapi/v2/user/get. Contact.User.Read alone does not grant this API. One-click creation requests this permission automatically. For an existing HTTPS robot, switch its receiving mode to STREAM, grant the missing permission, and publish the updated app version before testing a conversation. A saved binding or ONLINE robot status alone does not prove messages can reach Wujie.

Publish the app

Submit the app for release in your organization's admin console. Depending on your org's settings, an internal app may need admin approval before members can authorize it.

Connect it in Wujie (manual path)

  1. In your workspace, open Settings → Integrations → DingTalk (钉钉) → Workspace app.
  2. Paste the App Key (Client ID) and App Secret.
  3. Save — Wujie probes the credentials against your org before storing them, which proves the app belongs to your organization.
  4. Enable the switches you need:
    • Workspace notifications (通知开关) — switches this workspace from the legacy account-level channel to your own app for robot DMs;
    • QR sign-in (登录开关) — lets members sign in with DingTalk against this app.

Members who want notifications or DingTalk sign-in must also bind their DingTalk identity under Settings → Integrations → DingTalk → My connection & notifications once the app is configured. The binding applies to the current workspace. To receive notifications, enable personal delivery on the same tab and save. Binding alone does not enable notifications.

How sign-in works

  • DingTalk sign-in is scoped to the workspace: members authorize against this workspace's app, and DingTalk only lets your own organization's members through.
  • On the login page, choose Sign in with DingTalk. The browser remembers the last workspace you visited and starts the authorization against it; otherwise you are asked for the workspace identifier (the segment after the site URL's /, e.g. acme in https://wujie.example.com/acme).
  • Only accounts that already exist and are bound can sign in this way — there is no signup through DingTalk.
  • One DingTalk account can be bound once per workspace: if you are a member of two workspaces run by two different organizations, bind in each workspace with that organization's app.

Changing or removing the app

  • Rotating the App Secret — save the same App Key with the new secret. Bindings keep working.
  • Replacing the App Key — requires confirmation in the dialog; DingTalk identity bindings of the old app are cleared and members must re-bind.
  • Deleting the configuration — both notifications and DingTalk sign-in for this workspace stop until a new app is configured.

The App Secret is encrypted at rest with the deployment's workspace-secret encryption key (WUJIE_WORKSPACE_SECRET_KEY); it is never displayed again after saving. Keep that deployment key persistent — rotating it makes stored secrets unreadable.

Feishu app setup

Create one Feishu app per workspace and use it for both sign-in and notifications.

Documents

The workspace Wiki — pages and folders, Markdown editing, and shared presence.

On this page

Option 1: one-click creation (recommended)Start the creationScan to authorizeFirst time only: open the org channelDoneOption 2: manual setupCreate the appEnable QR login and the robotRegister the redirect URLGrant permissionsPublish the appConnect it in Wujie (manual path)How sign-in worksChanging or removing the app