RU
All work

B2B-продажи · Telegram-бот

AGGA BOT

A Telegram system for parts selection, personalised pricing, Excel order processing and PDF quotation generation.

My roleArchitecture, business logic, Telegram bot, pricing, document generation and server deployment
FormatB2B Telegram system for the sales team and customers
AGGA BOT — project screen 1
AGGA BOT — project screen 2
AGGA BOT — project screen 3

Deliverables

Catalogue search, personalised pricing, Excel orders and quotations operate in one protected Telegram workflow.

  • Search by article, cross-reference and free-text query
  • YandexGPT support for complex and ambiguous requests
  • Customer price categories and fixed individual prices
  • Calculations in CNY, USD, EUR, RUB and other currencies
  • Automatic Bank of Russia rates and manual administrator rates
  • Recognition of different customer Excel order structures
  • Processed Excel output with statuses, prices and error reasons
  • Cart, mandatory quantity input and item confirmation
  • PDF invoices and quotations with customer details
  • Market-price checks with uncertain-match warnings
  • ADMIN, MANAGER and CLIENT roles
  • Tax-ID authorisation and purchase-cost protection

Challenge

Parts sales relied on multiple Excel catalogues, customer-specific agreements, currency calculations and manually prepared documents. Employees had to reconcile article variants, keep purchase costs hidden, apply each customer’s pricing rules and exclude ambiguous items before producing an invoice.

Solution

I developed a Telegram bot with ADMIN, MANAGER and CLIENT roles, tax-ID-based client authorisation and a unified SQLite catalogue. Search works by article, cross-reference and free text; for complex requests, YandexGPT identifies likely positions and asks for clarification when a match is ambiguous. The pricing engine combines purchase cost, product coefficient, currency, markup, customer category and fixed individual prices. Exchange rates can be loaded from the Bank of Russia API or set manually by an administrator.

Outcome

The bot covers the complete journey from request to finished document. A user can upload an Excel order with varying column structures, receive matched positions, personalised prices, totals, statuses and reasons for unmatched rows, then assemble a request and generate a PDF invoice or quotation. Mandatory quantity and ambiguity confirmation reduces costly mistakes, while internal pricing remains visible only to employees.

Tools and integrations

Pythonaiogram 3SQLiteopenpyxlReportLabaiohttpYandexGPTAPI ЦБ РФExcelPDFDockerBeget

Have a similar project?

Discuss a project