当前位置: 首页 > Skill >

Multi-Agent Create

Multi-Agent Create

Multi-Agent Create

创建 OpenClaw 代理并连接到各消息渠道(Telegram、Discord、Slack、飞书、WhatsApp、Signal、Google Chat),包括工作区脚手架

1.1.0 2026.11.26 137
获取Skill文件查看使用说明
作 者:陆澄 许可证: 更新时间:2026.11.26
本文目录展开

Multi-Agent Create

⚡ One-line install:

clawhub install multi-agent-create

Add a new AI agent to your OpenClaw gateway and connect it to any messaging channel.

Interactive Workflow

When the user triggers this skill (e.g. "create a new agent", "add a bot"), follow this guided flow:

Step 1: Ask for Agent Name & Channel

Prompt the user:

🤖 Let's create a new agent! First, tell me:

  1. Agent name — What should this agent be called? (e.g. Luna, Marketing Bot)
  2. Which channel do you want to connect it to?

Supported channels:

# Channel Description
1 Telegram Telegram Bot
2 Discord Discord Bot
3 Slack Slack App
4 Feishu / Lark 飞书 / Lark Bot
5 WhatsApp WhatsApp (QR scan)
6 Signal Signal (QR scan)
7 Google Chat Google Workspace Bot

Reply with the agent name and channel number (or name), e.g. "Luna, Telegram"

Wait for the user's reply before proceeding.

Step 2: Guide Credential Setup (per channel)

Based on the user's chosen channel, provide the specific credential instructions:

Telegram

🔑 Get your Telegram Bot Token:

  1. Open Telegram and search for @BotFather
  2. Send /newbot and follow the prompts to name your bot
  3. BotFather will give you a Bot Token like 123456789:ABCdefGHI...
  4. Paste that token here

Required: botToken

Discord

🔑 Get your Discord Bot Token:

  1. Go to Discord Developer Portal
  2. Click New Application → name it → go to Bot tab
  3. Click Reset Token and copy the token
  4. Under Privileged Gateway Intents, enable Message Content Intent
  5. Paste the token here

Required: token

Slack

🔑 Get your Slack App credentials:

  1. Go to Slack API → Create New App
  2. Enable Socket Mode → copy the App-Level Token (starts with xapp-)
  3. Go to OAuth & Permissions → install to workspace → copy the Bot Token (starts with xoxb-)
  4. Paste both tokens here

Required: appToken, botToken

Feishu / Lark

🔑 获取飞书机器人凭证:

  1. 打开 飞书开放平台 → 创建企业自建应用
  2. 在应用的 凭证与基本信息 页面找到 App ID 和 App Secret
  3. 在 机器人 功能页启用机器人能力
  4. 把 App ID 和 App Secret 发给我

For Lark (international): same steps at Lark Developer

Required: appId, appSecret (add "domain": "lark" for Lark international)

WhatsApp

📱 WhatsApp uses QR code login:

  1. I'll run the login command for you
  2. A QR code will appear — scan it with your WhatsApp app
  3. That's it!

Ready? Just say "go" and I'll start the QR scan.

Action: run openclaw channels login --channel whatsapp --account {name}

Signal

📱 Signal uses QR code login:

  1. I'll run the login command for you
  2. A QR code will appear — scan it with your Signal app (Settings → Linked Devices)
  3. That's it!

Ready? Just say "go" and I'll start the QR scan.

Action: run openclaw channels login --channel signal --account {name}

Google Chat

🔑 Get your Google Chat Service Account:

  1. Go to Google Cloud Console → create/select a project
  2. Enable the Google Chat API
  3. Create a Service Account → download the JSON key file
  4. Send me the path to the JSON file on this server

Required: serviceAccountPath

Wait for the user to provide credentials before proceeding.

Step 3: Create Workspace

Run the helper script or create manually:

./scripts/setup-agent.sh {name} {channel}

This creates a workspace at workspace-groups/{name}/ with standard files:

  • IDENTITY.md — Name, role, emoji
  • SOUL.md — Personality and behavior
  • AGENTS.md — Startup instructions
  • USER.md — Owner info
  • HEARTBEAT.md, TOOLS.md

Step 4: Register Agent

openclaw agents add {name}-agent

Step 5: Configure Channel

Add account entry and binding to the gateway config.

Binding format (all channels):

{
  "agentId": "{name}-agent",
  "match": {
    "channel": "{channel}",
    "accountId": "{name}"
  }
}

Use accountId in the match block — not account.

Channel account config reference:

Channel Config Path Required Fields
Telegram channels.telegram.accounts.{name} botToken
Discord channels.discord.accounts.{name} token
Slack channels.slack.accounts.{name} mode: "socket", appToken, botToken
Feishu channels.feishu.accounts.{name} appId, appSecret
WhatsApp channels.whatsapp.accounts.{name} QR scan via CLI
Signal channels.signal.accounts.{name} QR scan via CLI
Google Chat channels.googlechat.accounts.{name} serviceAccountPath

Step 6: Verify & Restart

openclaw gateway restart
openclaw agents list --bindings
openclaw channels status --probe

Step 7: Pairing

For DM-based channels, the owner sends /start (or first message) to the bot, then approves:

openclaw pairing approve {channel} {CODE}

Report completion:

✅ Agent {name} is live on {channel}!

  • Workspace: ~/.openclaw/workspace-groups/{name}/
  • All agents share your existing model API keys — no extra keys needed
  • Add more channels anytime by running this skill again

Notes

  • All agents share existing model credentials — no extra API keys needed
  • One channel is enough to bring an agent online
  • Add more channels later by repeating the workflow

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,016
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,003
Apache开启.htaccess及使用方法详解

本文介绍如何在本地Apache环境中启用.htaccess文件,主要涉及修改httpd.conf中的AllowOverride参数。同时详细解析.htaccess的多种实用功能,包括自定义错误页面、目录密码保护、IP访问限制、URL自动转向、默认首页设置以及防止图片盗链等配置方法,并分析了使用.htaccess对服务器性能和安全性的潜在影响。

2026.05.09 1,001
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,001
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,000
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,000
Skill 文件
  • SKILL.md
    • Multi-Agent Create
    • Interactive Workflow
      • Step 1: Ask for Agent Name & Channel
      • Step 2: Guide Credential Setup (per channel)
        • Telegram
        • Discord
        • Slack
        • Feishu / Lark
        • WhatsApp
        • Signal
        • Google Chat
      • Step 3: Create Workspace
      • Step 4: Register Agent
      • Step 5: Configure Channel
      • Step 6: Verify & Restart
      • Step 7: Pairing
    • Notes
  • 项目或源文件

相关 Skill

更多
New Agent New Agent 创建新的OpenClaw代理并将其连接到消息渠道(Telegram、Discord、Slack、飞书、WhatsApp、Signal、Google Chat),支持单条和批量操作。
Gws Chat Gws Chat Google Chat:管理聊天空间和消息
Gateway Notify Gateway Notify 在OpenClaw网关启动时自动发送通知,支持Telegram、WhatsApp、Discord、Slack、Signal、iMessage、IRC、Google Chat、Line、微信。
Google Chat Google Chat 通过 Webhook 或 OAuth 向 Google Chat 空间和用户发送消息。适用于向 Google Chat 频道发送通知、警报,或向特定用户发送私信。支持传入 Webhook(用于预定义频道)和 OAuth 2.0(用于向任意空间或用户动态发送消息)。
Recipe Send Team Announcement Recipe Send Team Announcement 通过Gmail和Google Chat空间发送团队公告