Back to Templates
AI AgentEN

OpenClaw Custom Agent

Deploy your own AI agent on Telegram with a fully customizable identity, personality, and behavior rules.

What You Get

  • An OpenClaw AI agent running on Willform cloud with your own personality
  • Telegram DM integration for conversing with the bot
  • Web-based Control UI for managing the agent
  • Web search and fetch tools for real-time information
  • Persistent memory that saves conversation history and user preferences

Prerequisites

VariableHow to GetPurpose
YOUR_TELEGRAM_BOT_TOKENSend `/newbot` to @BotFather. DocsConnects the bot to Telegram
YOUR_TELEGRAM_USER_IDSend any message to @userinfobot and copy the numeric IDAdds you to the DM allowlist
YOUR_GATEWAY_TOKENChoose any password you like — this is your own secretAuthenticates access to the web Control UI
YOUR_OPENROUTER_API_KEYCreate at OpenRouter. Add credits at Credits.LLM inference — 200+ models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.
YOUR_OPENAI_API_KEYCreate at OpenAI Platform. Add credits at Billing.LLM inference — OpenAI models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.
YOUR_ANTHROPIC_API_KEYCreate at Anthropic Console. Add credits at Billing.LLM inference — Claude models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.
YOUR_GEMINI_API_KEYCreate at Google AI Studio.LLM inference — Gemini models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.
YOUR_IDENTITY_MDWrite your own (see guide below)Defines the agent's name, emoji, and role
YOUR_SOUL_MDWrite your own (see guide below)Defines the agent's personality, expertise, and tone
YOUR_AGENTS_MDWrite your own (see guide below)Defines the agent's behavior rules and constraints

Deploy to Namespace

Connects the bot to Telegram

Adds you to the DM allowlist

Authenticates access to the web Control UI

LLM inference — 200+ models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.

LLM inference — OpenAI models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.

LLM inference — Claude models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.

LLM inference — Gemini models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.

Defines the agent's name, emoji, and role

Defines the agent's personality, expertise, and tone

Defines the agent's behavior rules and constraints

Tags:openclawtelegramaicustom
OpenClaw Custom Agent | Willform