Xpersona
N

New Agent

CLAWHUB · Unverified

Create new OpenClaw agents and connect them to messaging channels (Telegram, Discord, Slack, Feishu, WhatsApp, Signal, Google Chat). Supports single and batc... Skill: New Agent Owner: joansongjr Summary: Create new OpenClaw agents and connect them to messaging channels (Telegram, Discord, Slack, Feishu, WhatsApp, Signal, Google Chat). Supports single and batc... Tags: latest:2.1.0 Version history: v2.1.0 | 2026-03-24T08:59:54.649Z | user feat: 新增批量模式,支持一次创建多个agent,单次config写入+单次gateway重启,解决飞书/Discord WebSocket反复断连问题 v2.0.0 | 2026-03-24T03:37:36.187Z | user fix: bindings放顶层,

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s179qwaq77sed8nzk9y5ng67xs83hp67:new-agent
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-joansongjr-new-agent/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

67,959 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: new-agent
description: Create new OpenClaw agents and connect them to messaging channels (Telegram, Discord, Slack, Feishu, WhatsApp, Signal, Google Chat). Supports single and batch mode. Batch mode creates all agents at once with a single config write and gateway restart to avoid connection churn.
---

# New Agent

Add one or more agents to your OpenClaw gateway with dedicated workspaces and messaging channels.

## When to Use

- User wants to add a new AI agent or bot
- User wants to connect a bot to a messaging platform
- User wants to create a **team of agents** at once (batch mode)

## Modes

| Mode | When | Script |
|------|------|--------|
| **Single** | Add one agent | `scripts/setup-agent.sh` |
| **Batch** | Add multiple agents at once | `scripts/batch-setup.sh` |

> ⚠️ **Always prefer batch mode when creating 2+ agents.** Single-agent creation modifies `openclaw.json` each time, triggering a gateway hot reload per agent. For channels with persistent connections (Feishu WebSocket, Discord gateway), this causes repeated disconnects. Batch mode writes config **once** and restarts **once**.

---

## Single Agent Mode

### Required Information

| Field | Example |
|-------|---------|
| Agent name | "Luna" |
| Channel | telegram / discord / slack / feishu / whatsapp / signal / googlechat |
| Credentials | Bot token, app secret, or QR scan |

### Step 1: Workspace + Registration

```bash
./scripts/setup-agent.sh {name}
```

This creates workspace files and registers the agent with `openclaw agents add --non-interactive --workspace`.

### Step 2: Channel Configuration

Each channel needs **two things** in `openclaw.json`:
1. An **account entry** under `channels.{channel}.accounts`
2. A **binding** in the **top-level `bindings` array**

> ⚠️ The `bindings` array is at the **root level** of `openclaw.json`, NOT under `agents`.

#### Account Entry Templates

Add under `channels.{channel}.accounts.{name}`:

**Telegram:**
```json
{
  "dmPolicy": "pairing",
  "botToken": "YOUR_BOT_TOKEN",
  "groupPolicy": "open",
  "streaming": "partial"
}
```

**Discord:**
```json
{
  "token": "YOUR_BOT_TOKEN"
}
```

**Slack:**
```json
{
  "mode": "socket",
  "appToken": "xapp-...",
  "botToken": "xoxb-..."
}
```

**Feishu / Lark:**
```json
{
  "appId": "YOUR_APP_ID",
  "appSecret": "YOUR_APP_SECRET"
}
```
For Lark (global), add `"domain": "lark"`.

**WhatsApp / Signal** — Use interactive login:
```bash
openclaw channels login --channel whatsapp --account {name}
openclaw channels login --channel signal --account {name}
```

#### Binding (Top-Level)

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

#### Agent-to-Agent (Optional)

Add `"{name}-agent"` to `tools.agentToAgent.allow`.

### Step 3: Verify & Pair

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

For DM channels, send `/start` to the bot, then:
```bash
openclaw pairing approve 

README.md

# New Agent

Create a new OpenClaw agent and connect it to any messaging channel.

## Supported Channels

| Channel | Credentials Needed |
|---------|-------------------|
| Telegram | Bot Token (from @BotFather) |
| Discord | Bot Token (from Developer Portal) |
| Slack | App Token + Bot Token |
| Feishu / Lark | App ID + App Secret |
| WhatsApp | QR code scan |
| Signal | QR code scan |
| Google Chat | Service Account JSON |

## Quick Start

```bash
clawhub install new-agent
```

Or clone from GitHub:
```bash
git clone https://github.com/joansongjr/new-agent.git
```

## Usage

Tell your OpenClaw agent:
> "Create a new agent called Luna, here's the Telegram token: 123456:ABC..."

The skill guides the agent through:
1. Creating a dedicated workspace with identity files
2. Registering the agent in your gateway config
3. Connecting the messaging channel
4. Verifying the setup

## Manual Setup

You can also use the helper script directly:
```bash
./scripts/setup-agent.sh luna telegram
```

## License

MIT-0

_meta.json

{
  "ownerId": "kn7bwe5zrs5ghyr5qzz2byttf980shq8",
  "slug": "new-agent",
  "version": "2.1.0",
  "publishedAt": 1774342794649
}

skill-card.md

## Description:

Create new OpenClaw agents and connect them to messaging channels (Telegram, Discord, Slack, Feishu, WhatsApp, Signal, Google Chat). Supports single and batch mode. Batch mode creates all agents at once with a single config write and gateway restart to avoid connection churn.

This skill is ready for commercial/non-commercial use.

## Publisher:

[joansongjr](https://clawhub.ai/user/joansongjr)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and operators use this skill to create one or more OpenClaw agents, register dedicated workspaces, connect messaging channels, and verify gateway bindings.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The setup scripts can make persistent changes to OpenClaw configuration and restart the gateway.

Mitigation: Review the manifest and scripts before execution, run them in a controlled environment, and keep configuration backups available for rollback.

Risk: Channel credentials may be supplied through manifests or configuration files.

Mitigation: Use only manifests you authored and inspected, avoid placing live tokens in chat or version-controlled JSON, and rotate any secrets that may have been exposed.

Risk: Batch setup can add agents to agent-to-agent permissions automatically.

Mitigation: Grant cross-agent permissions only when explicitly needed and remove automatic allow-list changes from local copies if they are not required.

Risk: Unsafe input handling in setup scripts can affect generated paths, identifiers, and configuration entries.

Mitigation: Validate agent IDs as simple slugs and inspect generated workspace paths and config entries before restarting the gateway.

## Reference(s):


## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with JSON configuration snippets and shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May guide creation of workspace files and OpenClaw gateway configuration updates.]

## Skill Version(s):

2.1.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to New Agent and adjacent AI workflows.