Sergey Klyuykov

AI Lead Bot

An AI Telegram bot that answers from a knowledge base and passes leads to a manager

Task

Leads that come in at night and on weekends get lost, and the manager spends the whole day answering the same questions about prices, warranty and timelines.

Solution

The bot replies to the customer right away, and only from the company's knowledge base. Prices are taken from the price list as is, so it cannot invent a price or overpromise. If the knowledge base has no answer, the bot doesn't guess — it hands the question to a manager.

What was done

  • Answers are found by searching a text knowledge base; the LLM only rephrases the matching passage, and any answer containing a number that isn't in the base is discarded.
  • The bot collects the lead itself: name, job, area and budget, timeline, and a phone number with format validation.
  • The lead is saved to the database and a Google Sheet, and the manager is notified immediately with a short summary of the conversation.
  • The customer can ask for a human at any time: the manager gets the full chat history and the bot goes quiet.
  • The /leads and /stats commands show the latest leads and the share of questions the bot answered on its own.

Screenshots

  • The customer asks “What warranty do you give?” and “How much is a bathroom renovation?”: the bot answers with a fact from the knowledge base and the price-list line “from 95,000 ₽ per room”.
  • “Do you offer installments?”: the bot replies “there's no exact answer in the knowledge base, I won't guess — I've passed it to a manager”. Next to it, the notification the manager received.
  • “I'd like to leave a request” → 5 questions, an invalid phone “123” → the bot asks for the +7 format → “Request #1 received”. Next to it, the lead card in the manager's chat (and a row in the Google Sheet when Sheets is shown).
  • “Get me a manager”: the manager receives the history and the bot goes quiet. Then the manager runs /leads and /stats (“answered from the knowledge base: 80%”).

Need something similar?

Tell me what needs to be built — I'll reply with how to approach it for your case and how long it will take.