
Project
kotib-dialogue
Telegram marketing automation platform built from three services. A REST backend holds companies, products, scenarios, bots, chats and analytics; a Telegram bot handles secure account linking, taking a member through a deep link and OTP flow and storing the resulting session; and a supervisor service starts one managed worker per linked account, each listening only to its assigned groups. When a message hits a trigger word the worker calls the language model with the scenario prompt and replies after a configurable human-like delay, subject to daily limits, writing everything back to the backend over a pub/sub channel. Conversations, sentiment topics and AI usage surface in the dashboard, with metrics and dashboards on system health.
Three-service split: REST API, Telegram linker bot, worker supervisor
Secure account linking via deep link and OTP into a stored session
One supervised worker process per linked account
Trigger-word scenarios with per-scenario prompts and daily limits
Model replies with a configurable human-like delay
Messages written back over a pub/sub channel
Conversation, sentiment-topic and AI-usage analytics
Metrics and dashboards for health monitoring