AI Manager in Telegram: A Bot That Sells 24/7
This guide is based on a real project. The AI manager is running in production, serving customers and closing sales without human involvement.
The Problem
You have an online store or service. Clients message you on Telegram at any time. You can't respond 24/7. Hiring a manager is expensive. A regular button-bot annoys customers and doesn't close deals.
Result: lost orders at night and on weekends, slow responses, customers leave for competitors.
Solution: AI Manager
An AI manager is not a button-bot. It's a full-fledged salesperson that understands natural language, knows your entire catalog, and can carry on a conversation like a real person.
Architecture (how it works)
Client → Telegram
|
Telegraf Bot (Node.js)
|
Express Server (API)
|
OpenAI GPT-4o-mini
+ SOUL.md
+ Product DB (Supabase)
|
Response → Client5 Setup Steps
Create a SOUL file
SOUL.md is the instruction file for the AI. It defines who it is, how it communicates, and what it must NOT do.
Upload your product catalog
The bot needs to know what you sell. Load products into a database (Supabase, PostgreSQL, or even a JSON file to start).
Minimum fields: name, price, description, availability. The bot searches these when responding to clients.
Connect the Telegram bot
Create a bot via @BotFather, get the token. Telegraf (Node.js) is the simplest way to handle messages.
Each incoming message goes to the API → AI generates a response using SOUL + catalog → response goes to the client.
Set up context and memory
The AI needs to remember conversation history. Store the last 10-15 messages per chat and pass them as context with each request.
This lets the bot carry coherent conversations: "What size?" → the bot remembers which product they're discussing.
Launch and monitor
PM2 for production — auto-restart on crashes. Log all conversations for analysis and SOUL file improvement.
Read logs the first week and adjust instructions. By week's end, the bot will respond better than any human manager.
Results (real numbers)
| Metric | Without AI | With AI Manager |
|---|---|---|
| Response time | 30 min — 12 hours | < 3 seconds |
| Availability | 10-12 h/day | 24/7/365 |
| Catalog knowledge | ~70% (humans forget) | 100% (database) |
| Cost/month | €500-1500 (manager) | ~€15 (API + server) |
| Scalability | 1 chat at a time | Unlimited |
Tech Stack
Important
An AI manager doesn't replace sales strategy. It replaces the routine of answering. If you have a bad product or no traffic — a bot won't help. Business first, then automation.
Want one like this?
We set up AI managers turnkey: from SOUL file to production launch. In 2 weeks you'll have a bot that knows your business better than any employee.