# Send Lark Integration to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "lark-integration",
    "name": "Lark Integration",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/boyangwang/lark-integration",
    "canonicalUrl": "https://clawhub.ai/boyangwang/lark-integration",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/lark-integration",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lark-integration",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/api-formats.md",
      "references/setup-guide.md",
      "scripts/bridge-webhook.mjs",
      "scripts/package.json",
      "scripts/setup-service.mjs"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "lark-integration",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T10:28:12.515Z",
      "expiresAt": "2026-05-07T10:28:12.515Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lark-integration",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lark-integration",
        "contentDisposition": "attachment; filename=\"lark-integration-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "lark-integration"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/lark-integration"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/lark-integration",
    "downloadUrl": "https://openagent3.xyz/downloads/lark-integration",
    "agentUrl": "https://openagent3.xyz/skills/lark-integration/agent",
    "manifestUrl": "https://openagent3.xyz/skills/lark-integration/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/lark-integration/agent.md"
  }
}
```
## Documentation

### Lark Integration

Connect Lark (Feishu) to OpenClaw for bidirectional messaging with full rich content support.

### Quick Start

# 1. Set credentials
echo "FEISHU_APP_ID=cli_xxx" >> ~/.openclaw/workspace/.env
mkdir -p ~/.openclaw/secrets
echo "your_app_secret" > ~/.openclaw/secrets/feishu_app_secret

# 2. Start bridge
cd skills/lark-integration/scripts
node bridge-webhook.mjs

# 3. Configure Lark webhook URL in developer console
# https://open.larksuite.com → Your App → Event Subscriptions
# URL: http://YOUR_SERVER_IP:3000/webhook

### Architecture

Lark App ──webhook──► Bridge (port 3000) ──WebSocket──► OpenClaw Gateway
                           │                                   │
                           ◄────────── Reply ──────────────────┘

### Supported Message Types

TypeDirectionFormattext↔ BothPlain textpost→ ReceiveRich text with images, linksimage→ ReceiveSingle imageReply← SendText (cards via feishu-card skill)

### Platform Detection

The bridge auto-detects platform from URLs:

*.larksuite.com → https://open.larksuite.com (International)
*.feishu.cn → https://open.feishu.cn (China)

### Environment Variables

VariableRequiredDescriptionFEISHU_APP_IDYesApp ID from Lark Developer ConsoleFEISHU_APP_SECRET_PATHNoPath to secret file (default: ~/.openclaw/secrets/feishu_app_secret)WEBHOOK_PORTNoWebhook listen port (default: 3000)FEISHU_THINKING_THRESHOLD_MSNoDelay before "Thinking..." placeholder (default: 2500)FEISHU_ENCRYPT_KEYNoEncryption key if enabled in LarkOPENCLAW_AGENT_IDNoAgent to route messages to (default: main)

### Lark App Permissions

Enable these scopes in Lark Developer Console → Permissions & Scopes:

Messaging:

im:message - Send and receive messages
im:message:send_as_bot - Send messages as bot
im:resource - Download message resources (images)

Documents (optional):

docx:document:readonly - Read documents
wiki:wiki:readonly - Read wiki spaces
sheets:spreadsheet:readonly - Read spreadsheets
bitable:bitable:readonly - Read bitables
drive:drive:readonly - Access drive files

### bridge-webhook.mjs

Main webhook bridge. Receives Lark events, forwards to OpenClaw, sends replies.

FEISHU_APP_ID=cli_xxx node scripts/bridge-webhook.mjs

### setup-service.mjs

Install as systemd service for auto-start:

node scripts/setup-service.mjs
# Creates /etc/systemd/system/lark-bridge.service

### Image Handling

Images in messages are:

Detected from post content or image message type
Downloaded via Lark API using message_id and image_key
Converted to base64
Sent to OpenClaw Gateway as attachments parameter

attachments: [{ mimeType: "image/png", content: "<base64>" }]

### Group Chat Behavior

In group chats, the bridge responds when:

Bot is @mentioned
Message ends with ? or ？
Message contains trigger words: help, please, why, how, what, 帮, 请, 分析, etc.
Message starts with bot name

Otherwise, messages are ignored to avoid noise.

### Reading Documents

Use the feishu-doc skill to read Lark documents:

node skills/feishu-doc/index.js fetch "https://xxx.larksuite.com/docx/TOKEN"

Supported URL types:

/docx/ - New documents
/wiki/ - Wiki pages (auto-resolves to underlying doc)
/sheets/ - Spreadsheets
/base/ - Bitables (multi-dimensional tables)

Permission Note: Documents must be shared with the bot, or the bot must have tenant-wide read permission.

### "forBidden" error when reading docs

Document not shared with bot → Add bot as collaborator
Missing scope → Enable docx:document:readonly in console

### No messages received

Check webhook URL is accessible: curl http://YOUR_IP:3000/health
Verify webhook in Lark console shows "Verified"
Check bridge logs: journalctl -u lark-bridge -f

### "must be string" error

Old bridge version → Update to use attachments for images

### Images not received

Missing im:resource scope → Enable in Lark console
Token expired → Bridge auto-refreshes, restart if stuck

### Service Management

# Check status
systemctl status lark-bridge

# View logs
journalctl -u lark-bridge -f

# Restart
systemctl restart lark-bridge

### References

Lark Developer Console (International)
Feishu Developer Console (China)
See references/api-formats.md for message format details
See references/setup-guide.md for step-by-step setup
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: boyangwang
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T10:28:12.515Z
- Expires at: 2026-05-07T10:28:12.515Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/lark-integration)
- [Send to Agent page](https://openagent3.xyz/skills/lark-integration/agent)
- [JSON manifest](https://openagent3.xyz/skills/lark-integration/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/lark-integration/agent.md)
- [Download page](https://openagent3.xyz/downloads/lark-integration)