
AI bots and mini apps in Telegram
We build AI bots for Telegram: scenarios with buttons and commands, answers from the knowledge base and order history, a mini app with a cart and payment, and operator handoff with a transcript. A pilot on one queue takes two weeks.
A Telegram bot answers from your documents and orders, moves the customer to payment in a mini app, and hands a complex dialog to an operator with context.
Pricing
from ₽300,000
per project
This is the lower bound of a project. We scope the exact quote after a brief: it depends on volume and the number of integrations.
Capabilities
A bot with scenarios
The bot takes commands, buttons, and free text, walks the customer through scenario branches, and stores the dialog step. State lives in Redis, so the conversation continues after a service restart.
Answers from documents and orders
The bot looks for a fact in the knowledge base and order history: pgvector finds close fragments, and PostgreSQL returns the purchase status. The bot attaches a source link to every answer, and an operator checks the basis in one click.
A mini app inside Telegram
A button opens the storefront right inside Telegram: the customer browses the catalog, fills a cart, and pays. It runs on iOS and Android from one Web App.
Operator handoff
When a dialog moves past the scenario edge, the operator gets the transcript, the reason, and the next step. The customer continues from the same place, and the operator's answer joins the knowledge base as a candidate.
From request to result
1
Channel and topic audit
We read a month of conversation exports, count daily requests, and measure the share of recurring questions. We find the topics scenarios can close and estimate the operator load.
2
Scenarios and knowledge base
We build the scenario map, edit documents for answers, and assign a knowledge owner. Here we fix auto-answer boundaries, operator handoff points, and the list of topics for manual review.
3
Bot, mini app, and payment
We connect the Bot API, the CRM, and the knowledge base, set up webhooks, and sync orders. For the storefront we build a mini app, connect the payment gateway, and set access rights to customer data.
4
Pilot and launch
For two weeks the bot runs on dialogs from one queue. We compare auto-answers with operator ratings, fix scenarios, and roll the bot out to the whole channel.
Check if it fits you
Good fit
A Telegram audience and repetitive requests
You have a channel or chat with subscribers, and support gets hundreds of similar questions about orders, payment, and delivery. The bot takes that load, and operators handle complex topics.
Content and order sources with an owner
You have documents, price lists, and order history, plus a person who approves edits and keeps them current. The bot answers precisely from this data and shows the source.
Not a fit
No content owner and no moderation
Documents update at random and contradict each other. We assign a knowledge owner and a review process first, then build scenarios and answers.
Payment and legal terms without a legal entity
Taking payments requires a legal entity, a provider contract, and tax accounting. Before that stage we launch the bot with consultations and orders, and add payment later.
What you get
82%
requests without an operator
In an online store support project, the agent handled chat and email requests, pulled orders from the CRM, and answered on status. Operators took non-standard cases, and processing time fell by 70%.
1
1 bot in the base
The base launch includes one Telegram bot with scenarios and answers from the knowledge base. We quote extra bots and modules as separate items in the calculator.
2 wks
A two-week pilot
The pilot runs for two weeks on one request queue: we collect auto-answer statistics, fix scenarios, and show the economics on your dialogs.
mini app
A mini app as a separate layer
The storefront and payment connect to a ready bot as a separate layer: catalog, cart, and payment gateway appear in the Telegram interface.
What the delivery includes
A Telegram bot
A Telegram bot with a menu, commands, scenarios, and dialog state, connected to your channel, CRM, and knowledge base.
Knowledge base and scenarios
Marked-up documents, a scenario map, and answer rules with operator handoff points and an edit queue.
A metrics dashboard
A dashboard with the auto-answer share, escalation count, payment conversion, and a list of topics for scenario work.
How the system is built
Message intake in the bot
A Bot API webhook takes a message and passes it to the bot service, which detects the topic and the scenario step. Dialog state lives in Redis, so the customer continues the conversation from the same place, even after a restart.
RAG over documents and orders
The bot looks for an answer in the knowledge base and order history: pgvector finds close document fragments, and PostgreSQL returns the order status and contents. The model builds the answer from the facts it finds and attaches a source link, and the operator checks the basis in one click.
Mini app and payment
A button opens a mini app inside Telegram: the customer builds an order in the storefront and pays through the connected gateway. The payment event goes to Kafka, the CRM updates the status, and the bot sends a receipt and the next order step.
Where the solution pushes back
- 01
Telegram Bot API limits
Bot API limits: about 30 messages per second and files up to 50 MB. We put a queue in Kafka and split broadcasts into batches, so the bot keeps pace on a base of 100,000 subscribers.
- 02
Content moderation
The knowledge owner approves new answers and retires outdated documents. We set up a moderation queue in the dashboard and rules for topics that need a person.
- 03
Payment and legal terms on the business side
The payment provider contract, legal entity, and tax accounting stay with you. We connect the chosen gateway and pass payment events to the CRM and accounting.
Technologies
The technologies we use in our work and their role in a project.
Channel, knowledge, and event queue
The bot runs through Telegram Bot API, keeps orders and dialog history in PostgreSQL, searches the knowledge base through pgvector, holds conversation state in Redis, and sends payment events to Kafka.
Cost calculator
This is an indicative range, not a quote. We scope the exact estimate after a brief: it depends on volume and the number of integrations.
Bots
Mini app
Payments
Add-ons
Support
Year one: updates and monitoring, a reply within 2 business days.
Service
AI bots and mini apps in Telegram
The estimate covers our team's work. Hardware, third-party service licences and travel are added on request.
Estimated cost
₽400,000
Timeline
3 wk
Frequently asked questions
How is a Telegram bot different from a bot in another channel?
In Telegram the bot works through the Bot API and gets access to buttons, payments, and mini apps. Other channels are separate projects: each has its own API, its own limits, and its own scenario.
What can a mini app do?
It is a storefront inside Telegram: catalog, product card, cart, and payment. The customer opens it with a button in one tap and stays in a familiar messenger.
Can the bot take payments?
Yes. We connect a payment gateway to the bot or the mini app: Telegram Pay, YooKassa, or another provider. The contract, legal entity, and taxes stay with the business.
How long does the launch take?
A pilot on one queue takes two weeks. A full launch with a mini app and payment starts at four weeks and depends on the number of integrations.
What teams add to this service
Part of Solutions
Implementation Examples
−70%
Request handling time
Ready to discuss your task?
Leave a request – we'll get back with a proposal and a preliminary estimate.
Contact us