Install
openclaw skills install create-telegram-agentCreate a new Telegram agent in OpenClaw with proper configuration. Use when user wants to create a new Telegram bot agent, including setting up agent workspa...
openclaw skills install create-telegram-agentThis skill helps create a new Telegram agent with complete configuration.
Before starting, ensure you have:
Ask the user for:
Agent Name (required)
healthman, news-bot, task-managerAgent Purpose (required)
Telegram Bot Token (required)
1234567890:ABCdefGHIjklMNOpqrSTUvwxyzIf user doesn't have a token, provide these steps:
How to Create a Telegram Bot Token:
- Open Telegram and search for @BotFather
- Start a chat with BotFather and send
/newbot- Follow the prompts:
- Enter a name for your bot (display name, e.g., "CookMaster")
- Enter a username for your bot (must end in 'bot', e.g., "cookmaster_bot")
- BotFather will send you a message containing your HTTP API token
- Copy the token (format:
1234567890:ABCdefGHIjklMNOpqrSTUvwxyz)Important: Keep your token secure. Anyone with your token can control your bot.
Based on user input, prepare the following configurations:
{
"id": "<agent-id>",
"name": "<Agent Name>",
"workspace": "/Users/<user>/.openclaw/workspace-<agent-id>",
"agentDir": "/Users/<user>/.openclaw/agents/<agent-id>/agent"
}
{
"agentId": "<agent-id>",
"match": {
"channel": "telegram",
"accountId": "<bot-id>"
}
}
"<bot-id>": {
"enabled": true,
"dmPolicy": "pairing",
"botToken": "<full-bot-token>",
"groupPolicy": "allowlist",
"streamMode": "partial"
}
CRITICAL: DO NOT MODIFY openclaw.json DIRECTLY
Present the following to the user in a clear format:
The following changes will be made to openclaw.json:
{
"id": "<agent-id>",
"name": "<Agent Name>",
"workspace": "/Users/<user>/.openclaw/workspace-<agent-id>",
"agentDir": "/Users/<user>/.openclaw/agents/<agent-id>/agent"
}
{
"agentId": "<agent-id>",
"match": {
"channel": "telegram",
"accountId": "<bot-id>"
}
}
"<bot-id>": {
"enabled": true,
"dmPolicy": "pairing",
"botToken": "<full-bot-token>",
"groupPolicy": "allowlist",
"streamMode": "partial"
}
Based on the provided purpose, generate a responsibility description covering:
Please confirm to proceed with the modifications. Any adjustments needed?
Only proceed after user explicitly confirms (e.g., "confirm", "proceed", "execute", "go ahead").
Once confirmed:
Create directories:
mkdir -p /Users/<user>/.openclaw/workspace-<agent-id>
mkdir -p /Users/<user>/.openclaw/agents/<agent-id>/agent
Update openclaw.json:
agents.listbindingschannels.telegram.accountsCreate agent files:
AGENTS.md - Work responsibilities and workflowSOUL.md - Agent personality and valuesReport completion: