← 返回
未分类 Key

多个飞书

Automated setup and configuration of Feishu/Lark bots with OpenClaw. Use when creating multiple Feishu bots with independent workspaces, memories, and dedica...
使用 OpenClaw 自动设置和配置 Feishu/Lark 机器人。适用于创建具有独立工作空间、记忆和专属配置的多个 Feishu 机器人。
lcz5221-svg
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 295
下载
💾 0
安装
1
版本
#latest

概述

Feishu Bot Setup

Automated setup and configuration of Feishu/Lark bots with OpenClaw.

Features

  • Flexible Role Definition - Customize role, style, and responsibilities for each bot
  • Batch Configuration - Set up multiple bots with one command
  • Independent Workspaces - Each bot has isolated storage and memory
  • Auto-generated Configs - Automatically creates SOUL.md, IDENTITY.md, AGENTS.md
  • WebSocket/Webhook - Support both connection modes

Overview

This skill automates the creation and configuration of multiple Feishu bots, each with:

  • Independent agent workspace
  • Dedicated memory and configuration files
  • Feishu channel integration
  • Proper routing and bindings

Prerequisites

  • OpenClaw installed and running
  • Gateway configured and accessible
  • Feishu app credentials (App ID, App Secret, Encrypt Key, Verification Token)

Quick Start

1. Prepare Bot Configuration

Create a configuration file with bot details. All fields under personality are customizable:

{
  "bots": [
    {
      "name": "general-assistant",
      "agentId": "feishu-bot-1",
      "appId": "cli_xxx",
      "appSecret": "xxx",
      "encryptKey": "xxx",
      "verificationToken": "xxx",
      "connectionMode": "websocket",
      "personality": {
        "role": "通用助手",
        "tagline": "你的第一接待入口",
        "style": "温和简洁、快速响应",
        "styleDescription": "态度友好,回答简洁明了,快速响应",
        "responsibilities": [
          "常识问答",
          "轻量办公",
          "需求分流",
          "日常兜底"
        ],
        "description": "我是你的全能基础助理,快速响应你的各种需求。",
        "motto": "有问必答,有求必应,做你最贴心的第一入口。",
        "emoji": "🙋"
      }
    }
  ]
}

Personality Fields (All Optional, Customizable)

FieldDescriptionExample
-----------------------------
roleBot's role name"数据分析助手"
taglineShort tagline"你的数据专家"
styleWorking style"严谨、高效"
styleDescriptionDetailed style"注重数据准确性,逻辑严密"
responsibilitiesList of duties["数据分析", "报表生成"]
descriptionSelf-introduction"我是数据分析专家..."
mottoSignature motto"让数据说话"
emojiBot emoji"📊"

You can define ANY role you need - customer service, sales, HR, finance, legal, etc.

2. Run Setup Script

python3 /root/.openclaw/workspace/skills/feishu-bot-setup/scripts/setup_bots.py /path/to/config.json

3. Restart Gateway

openclaw gateway restart

Manual Setup Steps

If you need more control, follow these manual steps:

Step 1: Create Agent

openclaw agents add <agent-id> --workspace /path/to/workspace --non-interactive

Step 2: Configure Feishu Channel

Edit ~/.openclaw/openclaw.json and add to channels.feishu.accounts:

"<bot-name>": {
  "appId": "cli_xxx",
  "appSecret": "xxx",
  "encryptKey": "xxx",
  "verificationToken": "xxx",
  "domain": "feishu",
  "connectionMode": "websocket",
  "webhookPath": "/webhook/feishu/<bot-name>",
  "dmPolicy": "open",
  "groupPolicy": "open",
  "requireMention": false,
  "reactionNotifications": "off",
  "typingIndicator": true,
  "resolveSenderNames": true
}

Step 3: Bind Agent to Feishu Account

openclaw agents bind --agent <agent-id> --bind feishu:<bot-name>

Step 4: Create Agent Configuration Files

Create these files in the agent workspace:

  • SOUL.md - Role definition and personality
  • IDENTITY.md - Identity information
  • AGENTS.md - Workspace documentation
  • TOOLS.md - Tool usage notes (optional)
  • HEARTBEAT.md - Scheduled tasks (optional)

Step 5: Restart Gateway

openclaw gateway restart

Role Examples

You can create bots for ANY purpose. Here are some examples:

Customer Service Bot

{
  "role": "客服专员",
  "tagline": "你的贴心客服",
  "style": "耐心细致、专业友好",
  "responsibilities": ["问题解答", "投诉处理", "订单查询", "售后服务"],
  "emoji": "🎧"
}

Sales Assistant Bot

{
  "role": "销售顾问",
  "tagline": "你的销售专家",
  "style": "热情主动、洞察需求",
  "responsibilities": ["产品咨询", "方案推荐", "报价生成", "客户跟进"],
  "emoji": "💼"
}

HR Assistant Bot

{
  "role": "HR助手",
  "tagline": "你的人力资源伙伴",
  "style": "专业严谨、保密可靠",
  "responsibilities": ["政策解答", "请假审批", "入职指引", "福利咨询"],
  "emoji": "👔"
}

Legal Advisor Bot

{
  "role": "法务顾问",
  "tagline": "你的法律助手",
  "style": "严谨审慎、依法依规",
  "responsibilities": ["合同审核", "法律咨询", "风险提示", "合规建议"],
  "emoji": "⚖️"
}

Configuration Reference

Connection Modes

  • websocket (default): Long-lived connection, no public URL needed
  • webhook: Requires public URL for Feishu to send events

Policies

  • dmPolicy: open, allowlist, pairing, disabled
  • groupPolicy: open, allowlist, disabled
  • requireMention: true or false

Troubleshooting

Bot Not Responding

  1. Check gateway status: openclaw gateway status
  2. Verify bindings: openclaw agents bindings
  3. Check logs: openclaw logs --follow
  4. Ensure Feishu app is published and events are subscribed

Credential Issues

  • Verify App ID and App Secret match Feishu Open Platform
  • Check Encrypt Key and Verification Token are correct
  • Ensure app has required permissions (robot, im:message)

Resources

  • scripts/setup_bots.py - Automated setup script
  • references/example-config.json - Example configuration
  • references/agent-templates/ - Agent configuration templates

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 00:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,369 📥 319,536
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,861
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,222 📥 267,235