> For the complete documentation index, see [llms.txt](https://www.openclawbook.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.openclawbook.xyz/en/ch08-regional-platforms-and-deployment/8.1-feishu-dingtalk-and-wecom.md). Agents can also search and read this documentation through its [MCP server](https://www.openclawbook.xyz/~gitbook/mcp).

# 8.1 Feishu, DingTalk, and WeCom Integration

> **Generated by**: Claude Opus 5 (claude-opus-5\[1m]) **Token usage**: Input \~186,000 tokens, Output \~8,000 tokens (this section) **Source baseline**: `v2026.3.9` (`v2026.3.8-170-g665f67726`)

***

These three dominate workplace messaging in China, and Feishu (Lark internationally) is used well beyond it. All three connect through extension packages rather than being built into core (§19.4.4's "everything is a plugin").

## 8.1.1 Feishu / Lark

Feishu has the most complete OpenClaw integration of the three — `extensions/feishu` is 12,286 lines, the largest extension in the repository, supporting card messages and message editing.

### Creating the app

1. Go to the [Feishu Open Platform](https://open.feishu.cn) and create a **custom app**;
2. Under **Credentials & Basic Info**, note the **App ID** and **App Secret**;
3. Under **Permissions**, add at minimum:

```
im:message
im:message:send_as_bot
im:chat:read
```

4. Under **Events**, subscribe to `im.message.receive_v1`;
5. Under **Version Management**, publish the app.

### Connection mode

Feishu supports both webhook callbacks and a **long connection** (WebSocket). OpenClaw uses the long connection, which **requires no public address** — the same advantage as Telegram long polling and Slack Socket Mode.

### Configuration

```json5
{
  plugins: {
    allow: ["feishu"],
  },
  channels: {
    feishu: {
      enabled: true,
      appId: "${FEISHU_APP_ID}",
      appSecret: "${FEISHU_APP_SECRET}",
      allowFrom: ["ou_xxxxxxxxxx"],    // open_id
    },
  },
}
```

Install the extension first:

```bash
openclaw plugins install @openclaw/feishu
```

> **Note `plugins.allow`.** It defaults to empty, meaning "discovered equals loaded" (§32.6.5's known weakness). Setting it explicitly is worth doing — it's the cheapest hardening available, and once you're listing one plugin you're listing all of them.

### Getting your open\_id

Feishu user IDs aren't visible in the UI. Easiest path: send the bot a message and use the pairing flow (§3.1.2) — `openclaw pairing approve feishu <CODE>` writes you into the allowlist without needing to look anything up.

## 8.1.2 DingTalk

### Creating the app

1. Go to the [DingTalk Open Platform](https://open-dev.dingtalk.com) and create an **enterprise internal app**;
2. Note the **AppKey** and **AppSecret**;
3. Add permissions for message sending and receiving;
4. Configure the message-receiving mode — **Stream Mode** avoids needing a public address.

### Configuration

```json5
{
  plugins: { allow: ["dingtalk"] },
  channels: {
    dingtalk: {
      enabled: true,
      clientId: "${DINGTALK_APP_KEY}",
      clientSecret: "${DINGTALK_APP_SECRET}",
      allowFrom: ["userid"],
    },
  },
}
```

### One DingTalk quirk

DingTalk's group robots and enterprise internal apps are **different things** with different capabilities. A group robot webhook can only send; receiving requires an enterprise internal app. If you only want outbound notifications, the webhook is simpler; for conversation you need the full app.

## 8.1.3 WeCom (Enterprise WeChat)

### Setup

1. In the [WeCom admin console](https://work.weixin.qq.com), create a **self-built app**;
2. Note the **CorpID**, **AgentID**, and **Secret**;
3. Configure the receiving API — this **does require a public callback address**, unlike the other two;
4. Add the server IP to the allowlist.

### Configuration

```json5
{
  plugins: { allow: ["wecom"] },
  channels: {
    wecom: {
      enabled: true,
      corpId: "${WECOM_CORP_ID}",
      agentId: "${WECOM_AGENT_ID}",
      secret: "${WECOM_SECRET}",
      token: "${WECOM_TOKEN}",
      encodingAesKey: "${WECOM_AES_KEY}",
    },
  },
}
```

**WeCom requires a public HTTPS callback**, which means exposing your gateway. Read §5.2.1's guidance before doing that — the HTTP surface is a full operator-access surface, and the safe options are Tailscale Serve or a reverse proxy you control.

## 8.1.4 Choosing Between Them

| Platform          | Public address needed? | Capability surface        | Setup burden |
| ----------------- | ---------------------- | ------------------------- | ------------ |
| **Feishu / Lark** | No (long connection)   | **Best** — cards, editing | Medium       |
| **DingTalk**      | No (Stream Mode)       | Good                      | Medium       |
| **WeCom**         | **Yes**                | Basic                     | Higher       |

If you're choosing and have a free hand, **Feishu is the easiest to run and the most capable**. WeCom's public-address requirement makes it meaningfully harder to deploy safely for personal use.

### Shared behavior

All three go through the same shared layer as any other channel (§19.4.5), so once connected they get the same treatment:

* Pairing and allowlists (§32.6.2)
* Group policy and mention gating (§14.5.2)
* Status panel (`openclaw channels status`)
* Agent tools and command handling

**Nothing platform-specific needs configuring for those** — that's the point of the plugin contract.

***

## Section Summary

1. **All three connect through extension packages**, not core — install with `openclaw plugins install` and **set `plugins.allow` explicitly** (it defaults to empty, meaning "discovered equals loaded").
2. **Feishu has the most complete integration** (12,286 lines, the largest extension), supporting cards and message editing, over a **long connection needing no public address**.
3. **DingTalk's Stream Mode also avoids a public address**; note that **group robots and enterprise internal apps are different things** — webhooks can only send.
4. **WeCom does require a public HTTPS callback** — read the exposure guidance in §5.2.1 first, since the HTTP surface is a full operator-access surface.
5. **Use the pairing flow rather than hunting for user IDs** — these platforms don't surface them in the UI anyway.
6. **Once connected, all three get identical treatment from the shared layer** — pairing, allowlists, group policy, status, tools — with nothing platform-specific to configure.
