微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Create a new agent in FeiShu

Create a new agent in FeiShu · v1.0.0
安全 unknown 级 作者 tinywatermonster 公开目录收录
979 下载 0 安装 3.5k 收藏 0 浏览

简介

Create a new agent in FeiShu

原始描述

Configure OpenClaw multi-agent routing for Feishu multi-account setups. Use when users need two or more Feishu bots (different appId/appSecret) to run on iso...

通过你的 Agent 添加

安装目录:openclaw-feishu-multi-agent-setup/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/create-a-new-agent-in-feishu/
Codex CLI~/.codex/skills/create-a-new-agent-in-feishu/
DeepSeek Harness~/.agents/skills/create-a-new-agent-in-feishu/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: openclaw-feishu-multi-agent-setup description: Configure OpenClaw multi-agent routing for Feishu multi-account setups. Use when users need two or more Feishu bots (different appId/appSecret) to run on isolated agents/workspaces with distinct system prompts, or when troubleshooting wrong-agent routing, shared persona, open_id cross-app errors, contact scope warnings (99991672), or card streaming permission errors.

Openclaw Feishu Multi Agent Setup

Overview

Set up and verify that each Feishu account is routed to the intended OpenClaw agent with isolated workspace and prompt files. Apply deterministic checks so routing, persona, and channel health are provable from logs.

Required Inputs

  • Target agent ids (example: main, assistant)
  • Target workspace paths (example: ~/.openclaw/workspace, ~/.openclaw/workspace-assistant)
  • Feishu account ids (example: default, backup)
  • App credentials per account (appId, appSecret)

Workflow

1. Inspect current state first

Run:

openclaw agents list --bindings
openclaw agents bindings --json
openclaw config get channels.feishu

Detect these issues before changing anything:

  • backup/default both mapped to same agent
  • missing agent in agents.list
  • missing account in channels.feishu.accounts
  • duplicated agentDir across agents

2. Back up config before edits

cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak.$(date +%Y%m%d-%H%M%S)

3. Ensure agents are isolated

Prefer non-interactive creation when adding a new agent:

openclaw agents add assistant \
  --non-interactive \
  --workspace ~/.openclaw/workspace-assistant \
  --model minimax-portal/MiniMax-M2.5

Ensure agents.list[] has unique workspace and agentDir per agent.

4. Configure Feishu multi-account block

Ensure this shape exists in ~/.openclaw/openclaw.json:

{
  "channels": {
    "feishu": {
      "enabled": true,
      "defaultAccount": "default",
      "accounts": {
        "default": { "appId": "cli_xxx", "appSecret": "xxx", "enabled": true },
        "backup": { "appId": "cli_yyy", "appSecret": "yyy", "enabled": true }
      }
    }
  }
}

Never echo secrets back to users in plaintext.

5. Bind account to agent deterministically

Use one binding per account:

{
  "bindings": [
    { "agentId": "main", "match": { "channel": "feishu", "accountId": "default" } },
    { "agentId": "assistant", "match": { "channel": "feishu", "accountId": "backup" } }
  ]
}

Or use CLI for simple cases:

openclaw agents bind --agent main --bind feishu:default
openclaw agents bind --agent assistant --bind feishu:backup

6. Ensure prompts are truly different

Update the non-main workspace files so system prompts diverge:

  • AGENTS.md
  • SOUL.md
  • IDENTITY.md
  • USER.md

Remove stale bootstrap template when persona setup is complete:

  • BOOTSTRAP.md

7. Validate and restart

openclaw config validate
openclaw gateway restart
openclaw gateway status
openclaw channels status --probe

8. Prove routing with log evidence

Ask user to send route-check to each bot. Then inspect logs:

openclaw channels logs --lines 300 | rg "feishu\\[(default|backup)\\].*dispatching to agent"

Expect:

  • feishu[default] -> session=agent:main:...
  • feishu[backup] -> session=agent:assistant:...

9. Handle common Feishu errors

open_id cross app:

  • Cause: target open_id belongs to a different app account.
  • Fix: send via matching --account, keep allowFrom scoped per account.

99991672 contact scope warning:

  • Platform fix: grant one contact read scope in Feishu app.
  • Config fallback: set channels.feishu.resolveSenderNames=false.

cardkit:card:write streaming error:

  • Platform fix: grant cardkit:card:write.
  • Config fallback: set channels.feishu.streaming=false and channels.feishu.blockStreaming=false.

Output Contract

When finishing, report:

  1. What changed (files + key fields).
  2. Validation outputs (config validate, gateway status, channels status --probe).
  3. Routing evidence lines for both accounts.
  4. Any residual warnings and whether they are blocking.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill