How to Build a Telegram AI Chatbot in 10 Minutes
This guide walks you through deploying a GPT-4 or Claude-powered AI support bot on Telegram — from creating the bot to handling your first customer message. No coding required.
What You'll Need
- A Telegram account
- An OpenAI, Anthropic, or OpenRouter API key (takes 2 minutes to create)
- A free OpenHelix account
Step 1: Create a Bot with @BotFather
Every Telegram bot starts with @BotFather — Telegram's official bot for creating bots. Open Telegram and search for @BotFather.
- 1Send the command: /newbot
- 2Choose a display name (e.g. "Acme Support")
- 3Choose a username — must end in "bot" (e.g. AcmeSupportBot)
- 4BotFather sends you a token. Copy it — you'll need it in Step 5.
Step 2: Get Your AI API Key
OpenHelix uses your own API key so AI costs pass through at cost — no markup. You can use OpenAI, Anthropic, or OpenRouter (which gives access to 50+ models from one key).
Step 3: Create Your OpenHelix Instance
Sign up at openhelixai.com — it's free, no credit card required. Once inside:
- 1Click "New Instance" on the dashboard
- 2Give it a name (e.g. "Customer Support Bot")
- 3Go to Credentials tab → add your API key
- 4Choose your AI model (GPT-4o is a good default)
Step 4: Write Your System Prompt
The system prompt defines your agent's personality, role, and boundaries. This is the most important step — a good prompt means accurate, on-brand answers.
Pro tip: You can also upload a knowledge base — PDFs, FAQs, product docs — and the AI will reference them when answering.
Step 5: Connect Telegram and Go Live
In your instance dashboard, click the Deploy tab. Under Telegram, paste the bot token you got from BotFather. Click Connect.
That's it. Open Telegram and send your bot a message — it should reply instantly with an AI response.
Every message your Telegram bot receives will now get an AI response — 24/7, in any language, based on your system prompt and knowledge base.
What Happens Next
After you go live:
- All conversations are logged in your Manager dashboard
- You get daily digest emails with unanswered questions
- Analytics show response times, message volume, and top topics
- You can update the system prompt and knowledge base at any time
Tips for Better Results
- 1Be specific in your prompt: The more context you give (business name, hours, products, tone), the better the answers.
- 2Use the knowledge base: Upload your FAQ doc or product catalogue. The AI uses it as a reference for accurate answers.
- 3Test with edge cases: Try questions the AI might get wrong — then refine the prompt to handle them correctly.
- 4Review daily digests: The manager dashboard flags unanswered or unsatisfactory responses. Use these to improve your prompt.
Ready to build yours?
Free plan · 2,000 messages · GPT-4 or Claude · 3-minute setup
Create Your Telegram Bot