Telegram bot for an environmental testing laboratory
An environmental testing laboratory in Saint Petersburg. Before our bot, a manager spent about an hour putting together a commercial quote: working out exactly which tests were needed, copying them from the price list with the right prices, adding 3% for issuing the test reports, adding 5% VAT, writing the total out in words and formatting it in Word.
Now a client writes in Telegram "we need wastewater tested for petroleum products and heavy metals", and the bot picks the services from the catalogue (209 items in 8 categories). Then comes a 7-step quote form: tax ID with checksum validation, company details pulled automatically via DaData, KPP code, address, contact person, phone, sampling location. Press "Confirm" and you get a finished docx.
Inside, LangGraph orchestrates three agents: Supervisor routes requests, Intake asks clarifying questions, Proposal builds the quote. Everything runs on GigaChat 2, because for laboratories working with government clients this is critical. Protection: anti-flood, a regex-based jailbreak detector, service ID validation (so the model can't "invent" a test), and a fallback to MemoryStorage if Redis is unavailable. 77 tests.




