# Telegram AI Agent

> Turn a free OpenRouter model into your own Telegram bot with the Hermes agent: install it, configure the model as a dict (the gotcha that breaks plain-string configs), create the bot with BotFather, connect the gateway, and verify end to end. Keys stay in a mode-600 env file, never printed.

Telegram AI Agent is a paid AI agent skill on Agensi by Faisal. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $10 (one-time purchase)
- Creator: [Faisal](https://www.agensi.io/creators/faisalridhomp)
- Version: 1.0
- Last updated: 2026-12-05
- Security: scan passed (2026-12-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/telegram-ai-agent
- Tags: telegram, ai-agent, hermes, openrouter, chatbot, botfather

## What it does

- Sets up a Telegram bot using free models from OpenRouter
- Prevents common connection errors by formatting the model configuration correctly
- Provides a step-by-step guide for creating your bot through Telegram's BotFather
- Secures your sensitive keys using protected environment files
- Verifies the connection with a smoke test before you go live

## Who it's for

- **Tech-savvy users wanting a personal assistant:** Get an AI assistant you can talk to on Telegram for free. Try: "Help me set up a Telegram bot using a free OpenRouter model."
- **Small business owners needing basic automation:** Create a simple bot to handle messages without paying for API credits. Try: "Guide me through connecting a free AI model to my Telegram bot."

## About this skill

If you want your AI agent to live in your pocket rather than a browser tab, this skill is for you. It helps you take a free AI model and plug it into a Telegram bot so you can chat with it anywhere. You will not need to pay for the AI model, and the setup stays within the free tiers of the tools you use.

### How it works
1. You ask your AI agent to start the Telegram bot setup.
2. The skill guides you through getting a free API key and creating your bot inside Telegram.
3. You follow the specific instructions to format your configuration file so the connection does not break.
4. You start the gateway on your computer and send a test message to your new bot.
5. You receive a reply on Telegram, confirming your personal AI is live.

### Frameworks & tools
This skill uses the Hermes agent and OpenRouter to connect to free AI models. It uses Telegram's BotFather to create the bot and a YAML configuration file to link everything together.

### Why this beats prompting it yourself
Setting up these bots often fails because of one tiny detail: the AI model must be written as a "dictionary" in the code, not a simple line of text. Most people get a "valid model ID" error and get stuck. This skill knows that specific trap and ensures your configuration is correct the first time, saving you hours of troubleshooting.

### Use cases
- Chatting with a large-context AI model while you are away from your computer
- Building a private bot to summarize notes or ideas you send via Telegram
- Testing AI behaviors in a real chat app without spending money on tokens
- Setting up a permanent AI contact in your Telegram chat list

### Known limitations
The bot requires a computer that stays turned on to keep the gateway running. Free models have daily limits that reset at midnight UTC.

## Technical details

Built for the Hermes agent using OpenRouter API. Configures YAML files with specific dictionary structures for model endpoints to avoid HTTP 400 errors. Manages environment variables for API keys and uses a gateway service to bridge Telegram webhooks to the local agent. Requires numeric Telegram chat_id and user_id mapping.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Telegram AI Agent skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Why should I use this instead of just chatting with an AI in my browser?

This skill helps you move your AI conversations from a browser window to a Telegram chat. It solves the common problem where setting up these bots fails because the AI model is formatted incorrectly in the background settings.

### What accounts or equipment do I need to get this running?

You will need a Telegram account, a free OpenRouter account for the AI model, and a computer that can stay turned on to act as a gateway. The skill uses the Hermes agent to manage the connection between these tools.

### What specific files or instructions will I receive to help me avoid setup errors?

The skill provides a specific configuration template that formats the AI model as a dictionary rather than a simple text line. This prevents the common error that stops most DIY bots from working and ensures your bot can actually reply to your messages.

### Are there any times when the bot might stop responding to my messages?

The bot only works while your gateway computer is running and connected. Since it uses free AI models, you will also be subject to daily usage limits that reset every night at midnight UTC.

### How do I tell my AI agent to start building this for me?

You can start by telling your AI agent to begin the Telegram bot setup process. It will then guide you through creating your bot with BotFather and configuring your free API keys safely.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
