{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/lark-integration",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lark-integration",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/api-formats.md",
      "references/setup-guide.md",
      "scripts/bridge-webhook.mjs",
      "scripts/package.json",
      "scripts/setup-service.mjs"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/lark-integration",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Lark Integration",
        "body": "Connect Lark (Feishu) to OpenClaw for bidirectional messaging with full rich content support."
      },
      {
        "title": "Quick Start",
        "body": "# 1. Set credentials\necho \"FEISHU_APP_ID=cli_xxx\" >> ~/.openclaw/workspace/.env\nmkdir -p ~/.openclaw/secrets\necho \"your_app_secret\" > ~/.openclaw/secrets/feishu_app_secret\n\n# 2. Start bridge\ncd skills/lark-integration/scripts\nnode bridge-webhook.mjs\n\n# 3. Configure Lark webhook URL in developer console\n# https://open.larksuite.com → Your App → Event Subscriptions\n# URL: http://YOUR_SERVER_IP:3000/webhook"
      },
      {
        "title": "Architecture",
        "body": "Lark App ──webhook──► Bridge (port 3000) ──WebSocket──► OpenClaw Gateway\n                           │                                   │\n                           ◄────────── Reply ──────────────────┘"
      },
      {
        "title": "Supported Message Types",
        "body": "TypeDirectionFormattext↔ BothPlain textpost→ ReceiveRich text with images, linksimage→ ReceiveSingle imageReply← SendText (cards via feishu-card skill)"
      },
      {
        "title": "Platform Detection",
        "body": "The bridge auto-detects platform from URLs:\n\n*.larksuite.com → https://open.larksuite.com (International)\n*.feishu.cn → https://open.feishu.cn (China)"
      },
      {
        "title": "Environment Variables",
        "body": "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)"
      },
      {
        "title": "Lark App Permissions",
        "body": "Enable these scopes in Lark Developer Console → Permissions & Scopes:\n\nMessaging:\n\nim:message - Send and receive messages\nim:message:send_as_bot - Send messages as bot\nim:resource - Download message resources (images)\n\nDocuments (optional):\n\ndocx:document:readonly - Read documents\nwiki:wiki:readonly - Read wiki spaces\nsheets:spreadsheet:readonly - Read spreadsheets\nbitable:bitable:readonly - Read bitables\ndrive:drive:readonly - Access drive files"
      },
      {
        "title": "bridge-webhook.mjs",
        "body": "Main webhook bridge. Receives Lark events, forwards to OpenClaw, sends replies.\n\nFEISHU_APP_ID=cli_xxx node scripts/bridge-webhook.mjs"
      },
      {
        "title": "setup-service.mjs",
        "body": "Install as systemd service for auto-start:\n\nnode scripts/setup-service.mjs\n# Creates /etc/systemd/system/lark-bridge.service"
      },
      {
        "title": "Image Handling",
        "body": "Images in messages are:\n\nDetected from post content or image message type\nDownloaded via Lark API using message_id and image_key\nConverted to base64\nSent to OpenClaw Gateway as attachments parameter\n\nattachments: [{ mimeType: \"image/png\", content: \"<base64>\" }]"
      },
      {
        "title": "Group Chat Behavior",
        "body": "In group chats, the bridge responds when:\n\nBot is @mentioned\nMessage ends with ? or ？\nMessage contains trigger words: help, please, why, how, what, 帮, 请, 分析, etc.\nMessage starts with bot name\n\nOtherwise, messages are ignored to avoid noise."
      },
      {
        "title": "Reading Documents",
        "body": "Use the feishu-doc skill to read Lark documents:\n\nnode skills/feishu-doc/index.js fetch \"https://xxx.larksuite.com/docx/TOKEN\"\n\nSupported URL types:\n\n/docx/ - New documents\n/wiki/ - Wiki pages (auto-resolves to underlying doc)\n/sheets/ - Spreadsheets\n/base/ - Bitables (multi-dimensional tables)\n\nPermission Note: Documents must be shared with the bot, or the bot must have tenant-wide read permission."
      },
      {
        "title": "\"forBidden\" error when reading docs",
        "body": "Document not shared with bot → Add bot as collaborator\nMissing scope → Enable docx:document:readonly in console"
      },
      {
        "title": "No messages received",
        "body": "Check webhook URL is accessible: curl http://YOUR_IP:3000/health\nVerify webhook in Lark console shows \"Verified\"\nCheck bridge logs: journalctl -u lark-bridge -f"
      },
      {
        "title": "\"must be string\" error",
        "body": "Old bridge version → Update to use attachments for images"
      },
      {
        "title": "Images not received",
        "body": "Missing im:resource scope → Enable in Lark console\nToken expired → Bridge auto-refreshes, restart if stuck"
      },
      {
        "title": "Service Management",
        "body": "# Check status\nsystemctl status lark-bridge\n\n# View logs\njournalctl -u lark-bridge -f\n\n# Restart\nsystemctl restart lark-bridge"
      },
      {
        "title": "References",
        "body": "Lark Developer Console (International)\nFeishu Developer Console (China)\nSee references/api-formats.md for message format details\nSee references/setup-guide.md for step-by-step setup"
      }
    ],
    "body": "Lark Integration\n\nConnect Lark (Feishu) to OpenClaw for bidirectional messaging with full rich content support.\n\nQuick Start\n# 1. Set credentials\necho \"FEISHU_APP_ID=cli_xxx\" >> ~/.openclaw/workspace/.env\nmkdir -p ~/.openclaw/secrets\necho \"your_app_secret\" > ~/.openclaw/secrets/feishu_app_secret\n\n# 2. Start bridge\ncd skills/lark-integration/scripts\nnode bridge-webhook.mjs\n\n# 3. Configure Lark webhook URL in developer console\n# https://open.larksuite.com → Your App → Event Subscriptions\n# URL: http://YOUR_SERVER_IP:3000/webhook\n\nArchitecture\nLark App ──webhook──► Bridge (port 3000) ──WebSocket──► OpenClaw Gateway\n                           │                                   │\n                           ◄────────── Reply ──────────────────┘\n\nSupported Message Types\nType\tDirection\tFormat\ntext\t↔ Both\tPlain text\npost\t→ Receive\tRich text with images, links\nimage\t→ Receive\tSingle image\nReply\t← Send\tText (cards via feishu-card skill)\nPlatform Detection\n\nThe bridge auto-detects platform from URLs:\n\n*.larksuite.com → https://open.larksuite.com (International)\n*.feishu.cn → https://open.feishu.cn (China)\nConfiguration\nEnvironment Variables\nVariable\tRequired\tDescription\nFEISHU_APP_ID\tYes\tApp ID from Lark Developer Console\nFEISHU_APP_SECRET_PATH\tNo\tPath to secret file (default: ~/.openclaw/secrets/feishu_app_secret)\nWEBHOOK_PORT\tNo\tWebhook listen port (default: 3000)\nFEISHU_THINKING_THRESHOLD_MS\tNo\tDelay before \"Thinking...\" placeholder (default: 2500)\nFEISHU_ENCRYPT_KEY\tNo\tEncryption key if enabled in Lark\nOPENCLAW_AGENT_ID\tNo\tAgent to route messages to (default: main)\nLark App Permissions\n\nEnable these scopes in Lark Developer Console → Permissions & Scopes:\n\nMessaging:\n\nim:message - Send and receive messages\nim:message:send_as_bot - Send messages as bot\nim:resource - Download message resources (images)\n\nDocuments (optional):\n\ndocx:document:readonly - Read documents\nwiki:wiki:readonly - Read wiki spaces\nsheets:spreadsheet:readonly - Read spreadsheets\nbitable:bitable:readonly - Read bitables\ndrive:drive:readonly - Access drive files\nScripts\nbridge-webhook.mjs\n\nMain webhook bridge. Receives Lark events, forwards to OpenClaw, sends replies.\n\nFEISHU_APP_ID=cli_xxx node scripts/bridge-webhook.mjs\n\nsetup-service.mjs\n\nInstall as systemd service for auto-start:\n\nnode scripts/setup-service.mjs\n# Creates /etc/systemd/system/lark-bridge.service\n\nImage Handling\n\nImages in messages are:\n\nDetected from post content or image message type\nDownloaded via Lark API using message_id and image_key\nConverted to base64\nSent to OpenClaw Gateway as attachments parameter\nattachments: [{ mimeType: \"image/png\", content: \"<base64>\" }]\n\nGroup Chat Behavior\n\nIn group chats, the bridge responds when:\n\nBot is @mentioned\nMessage ends with ? or ？\nMessage contains trigger words: help, please, why, how, what, 帮, 请, 分析, etc.\nMessage starts with bot name\n\nOtherwise, messages are ignored to avoid noise.\n\nReading Documents\n\nUse the feishu-doc skill to read Lark documents:\n\nnode skills/feishu-doc/index.js fetch \"https://xxx.larksuite.com/docx/TOKEN\"\n\n\nSupported URL types:\n\n/docx/ - New documents\n/wiki/ - Wiki pages (auto-resolves to underlying doc)\n/sheets/ - Spreadsheets\n/base/ - Bitables (multi-dimensional tables)\n\nPermission Note: Documents must be shared with the bot, or the bot must have tenant-wide read permission.\n\nTroubleshooting\n\"forBidden\" error when reading docs\nDocument not shared with bot → Add bot as collaborator\nMissing scope → Enable docx:document:readonly in console\nNo messages received\nCheck webhook URL is accessible: curl http://YOUR_IP:3000/health\nVerify webhook in Lark console shows \"Verified\"\nCheck bridge logs: journalctl -u lark-bridge -f\n\"must be string\" error\nOld bridge version → Update to use attachments for images\nImages not received\nMissing im:resource scope → Enable in Lark console\nToken expired → Bridge auto-refreshes, restart if stuck\nService Management\n# Check status\nsystemctl status lark-bridge\n\n# View logs\njournalctl -u lark-bridge -f\n\n# Restart\nsystemctl restart lark-bridge\n\nReferences\nLark Developer Console (International)\nFeishu Developer Console (China)\nSee references/api-formats.md for message format details\nSee references/setup-guide.md for step-by-step setup"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/boyangwang/lark-integration",
    "publisherUrl": "https://clawhub.ai/boyangwang/lark-integration",
    "owner": "boyangwang",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}