Install
openclaw skills install @lcz5221-svg/feishu-duogeAutomated setup and configuration of Feishu/Lark bots with OpenClaw. Use when creating multiple Feishu bots with independent workspaces, memories, and dedicated agents. Handles agent creation, Feishu channel configuration, credential management, and routing bindings. Supports customizable roles, responsibilities, and personalities. Supports both WebSocket and webhook connection modes.
openclaw skills install @lcz5221-svg/feishu-duogeAutomated setup and configuration of Feishu/Lark bots with OpenClaw.
This skill automates the creation and configuration of multiple Feishu bots, each with:
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": "🙋"
}
}
]
}
| Field | Description | Example |
|---|---|---|
role | Bot's role name | "数据分析助手" |
tagline | Short tagline | "你的数据专家" |
style | Working style | "严谨、高效" |
styleDescription | Detailed style | "注重数据准确性,逻辑严密" |
responsibilities | List of duties | ["数据分析", "报表生成"] |
description | Self-introduction | "我是数据分析专家..." |
motto | Signature motto | "让数据说话" |
emoji | Bot emoji | "📊" |
You can define ANY role you need - customer service, sales, HR, finance, legal, etc.
python3 /root/.openclaw/workspace/skills/feishu-bot-setup/scripts/setup_bots.py /path/to/config.json
openclaw gateway restart
If you need more control, follow these manual steps:
openclaw agents add <agent-id> --workspace /path/to/workspace --non-interactive
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
}
openclaw agents bind --agent <agent-id> --bind feishu:<bot-name>
Create these files in the agent workspace:
SOUL.md - Role definition and personalityIDENTITY.md - Identity informationAGENTS.md - Workspace documentationTOOLS.md - Tool usage notes (optional)HEARTBEAT.md - Scheduled tasks (optional)openclaw gateway restart
You can create bots for ANY purpose. Here are some examples:
{
"role": "客服专员",
"tagline": "你的贴心客服",
"style": "耐心细致、专业友好",
"responsibilities": ["问题解答", "投诉处理", "订单查询", "售后服务"],
"emoji": "🎧"
}
{
"role": "销售顾问",
"tagline": "你的销售专家",
"style": "热情主动、洞察需求",
"responsibilities": ["产品咨询", "方案推荐", "报价生成", "客户跟进"],
"emoji": "💼"
}
{
"role": "HR助手",
"tagline": "你的人力资源伙伴",
"style": "专业严谨、保密可靠",
"responsibilities": ["政策解答", "请假审批", "入职指引", "福利咨询"],
"emoji": "👔"
}
{
"role": "法务顾问",
"tagline": "你的法律助手",
"style": "严谨审慎、依法依规",
"responsibilities": ["合同审核", "法律咨询", "风险提示", "合规建议"],
"emoji": "⚖️"
}
dmPolicy: open, allowlist, pairing, disabledgroupPolicy: open, allowlist, disabledrequireMention: true or falseopenclaw gateway statusopenclaw agents bindingsopenclaw logs --followscripts/setup_bots.py - Automated setup scriptreferences/example-config.json - Example configurationreferences/agent-templates/ - Agent configuration templates