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

Feishu app setup

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

Your workspace's Feishu integration uses one self-built app for both sign-in and notifications. Create and connect a new app directly, or connect an existing app.

Before you start

  • You need admin access to your organization's Feishu/Lark console (open.feishu.cn for Feishu, open.larksuite.com for Lark).
  • You need owner or admin rights in the Wujie workspace that will use the app.
  • Know the public URL of your Wujie deployment (e.g. https://wujie.example.com). Feishu will only redirect to URLs you register in advance.

Recommended: create and connect a new app

  1. Open Settings → Integrations → Feishu → Workspace app and choose One-click setup.
  2. Confirm the requested availability: everyone in your Feishu enterprise. Use the enterprise where your team works. This does not add those people to your Wujie workspace.
  3. Select Prepare creation link, then Open Feishu to create and authorize. Set the app name and confirm authorization in Feishu.
  4. Return to Wujie and select Check connection. Wujie registers the deployment's /auth/callback, configures availability, and submits a release.
  5. Once Connected — version online appears, enable login and notifications as needed. Members still bind their identities and enable personal notifications individually.

Automatic creation supports mainland Feishu. The deployment needs a correct frontend URL in WUJIE_APP_URL (or FRONTEND_ORIGIN) and app credential encryption configured. Login and notifications remain off until explicitly enabled.

Team availability and approval

Feishu app availability and Wujie workspace membership are separate. Enterprise-wide availability does not grant access to a workspace: sign-in still requires existing workspace membership and a bound Feishu identity. To restrict the app to selected people or departments, use Manual setup and configure its availability in Feishu.

  • Awaiting authorization: finish the Feishu flow and return to check. The authorization link has its own expiry; cancel and restart if it expires.
  • Waiting for approval / publication: ask your Feishu enterprise administrator to approve, then check again. Progress survives page closure; approval waiting does not continuously poll.
  • Action required: follow the permission, callback, or release diagnostic. An uncertain publication result is reconciled against version 1.0.1 to avoid duplicate submissions. If you manually publish a different version, use Manual setup instead.
  • Connected — version online: the target version is online, permissions are granted, the callback is registered, and the published version requests enterprise-wide availability. Enterprise administrators can impose further availability restrictions, so actual member login and notification delivery still need acceptance testing.

Setup can be resumed for seven days. Cancelling setup or connecting an existing app clears this automatic setup; it does not delete an app already created in Feishu. One workspace administrator creates the app; members share it and bind their own identities.

Automatic setup additionally requests application:application:self_manage and application:application:patch to manage the new app's own configuration and release. Login uses user scope contact:user.base:readonly; notifications use tenant scope im:message:send_as_bot. Enterprise policies determine whether approval is required.

Connect an existing app or create manually

The credential-based connection remains available. Complete the following configuration in Feishu, then choose Manual setup in Wujie.

Create the app

Open the Feishu open platform console → Developer Console → Create app → choose Custom app (企业自建应用). Give it a name like "Wujie – your team". After creation, copy the App ID and App Secret from the app's Credentials page — you will paste them into Wujie later.

Enable the bot capability

In the app, open App capability (应用能力) → Add capability → enable Bot (机器人). Notifications are delivered by this bot in Feishu private chat.

Register the redirect URL

Open Security settings (安全设置) → Redirect URL (重定向 URL) and 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, Feishu rejects the sign-in authorization with a redirect_uri error. The URL must match your domain exactly — scheme, host, and path.

Grant permissions

Open Permissions & scopes (权限管理) and enable:

PermissionScopeNeeded for
Get basic user infocontact:user.base:readonlyIdentifying the member who signs in
Send messages in private chat (获取与发送单聊、群组消息)im:message:send_as_botDelivering notifications via the bot

Publish the app

Open Version management (版本管理与发布) → Create version → submit for release. A custom app is inert until its first version is published — permissions and the bot do not take effect for organization members before that.

Connect it in Wujie

  1. In your workspace, open Settings → Integrations → Feishu (飞书) → Workspace app.
  2. Paste the App ID and App Secret.
  3. Click Validate credentials — Wujie verifies the pair against Feishu before saving.
  4. Save, then enable the switches you need:
    • Private notifications — Feishu bot delivery for mention/task events;
    • Feishu sign-in — lets members sign in with Feishu.

Members who want notifications or Feishu sign-in must also bind their Feishu identity under Settings → Integrations → Feishu → 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

  • Feishu sign-in is scoped to the workspace: members authorize against this workspace's app.
  • On the login page, choose Sign in with Feishu. 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 Feishu.

Changing or removing the app

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

The App Secret is encrypted at rest with the deployment's workspace-secret encryption key; it is never displayed again after saving.

The deployment administrator must configure WUJIE_WORKSPACE_SECRET_KEY (a base64-encoded 32-byte key) to encrypt workspace App Secrets. Keep this key persistent. WUJIE_LARK_SECRET_KEY belongs to the separate agent Bot integration and does not replace it.

Install AI coding tools

Install, authorize, and connect an AI coding tool on your runtime machine.

DingTalk app setup

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

On this page

Before you startRecommended: create and connect a new appTeam availability and approvalConnect an existing app or create manuallyCreate the appEnable the bot capabilityRegister the redirect URLGrant permissionsPublish the appConnect it in WujieHow sign-in worksChanging or removing the app