Smart Lead Capture Bot

An AI Telegram bot that turns sales conversations into structured CRM leads — accurate, duplicate-free records, under human control.

Lead Intake Bot

Industries

Country

United States

What we did

Sales

·

AI Automation

·

LLM

·

CRM Integration

·

Speech-to-Text

·

Lead Management

·

Multilingual

·

Workflow Automation

Stack

TypeScript

·

Node.js

·

grammY

·

Nest.js

·

Temporal

·

PostgreSQL

·

Prisma

·

Redis

·

OpenAI GPT-4o

·

OpenAI Whisper API

·

GPT-4o-mini Vision

·

Google Drive API

·

Google Sheets API

·

Docker

Client

The client is a US B2B sales team that runs its pipeline on fast, high-volume outreach — the kind of operation where managers close more by talking to more prospects. Their deals start in conversation: calls, chats, voice notes, forwarded threads. The friction was in what came after each one — getting that conversation into the CRM, accurately, before the next call started.

Key Highlights

1

4+ input types merged into one lead — voice, text, forwarded chat, attachments.

2

3 duplicate-match keys — email, phone, or name + company.

3

Admin-configurable checklist — required fields changeable with no developer.

4

2 auto-extensions per accepted lead — a follow-up task and a shared-sheet entry.

Challenge

The client’s lead-registration process was time-consuming and fragmented. Lead details arrived from different sources, in different formats and languages, so keeping CRM records accurate took real manual effort — effort that came straight out of selling time.

The core challenge was turning unstructured sales conversation into organized, accurate CRM records, while the manager stayed in control of what gets saved.

Three things made it harder than a simple form-filler. The input was genuinely unstructured and multilingual, so there was no template to parse against. Records needed a way to catch missing required fields before they were saved, or they’d come out incomplete. And the same prospect could be entered twice, so the tool had to recognize an existing contact rather than quietly create a duplicate.

Solution

We built an AI-powered Telegram bot integrated with the client’s CRM, with each decision aimed at speed without losing accuracy or control:

  • Why Telegram. Managers already talk in it, so capture happens inside the conversation — no switching to a CRM form at the exact moment selling momentum matters most.
  • Why human review before save. The CRM is the source of truth for the whole team, so a wrong budget or deadline is costly. We made the AI propose a field-by-field summary and the manager approve it — correct any field in plain text, then accept or reject, before anything is written.
  • Why a configurable checklist. Required fields change over time, and routing that through developers would make the tool brittle. We put field requirements in the admin’s hands, so the checklist evolves without a release.
  • AI-powered processing. Voice is transcribed (mixed-language included), and the model extracts contact, company, requirements, budget, deadlines, and next steps, mapping them to the matching CRM fields.
  • Session-based capture and duplicate safety. Consecutive messages about one prospect combine into a single lead until it’s approved, and before a record is created the bot checks for an existing contact by email, phone, or name + company — offering to attach a new deal instead of duplicating.

Process

A team of three (Full-stack, DevOps, PM) built the product in clear stages:

  1. Requirements & scope. We mapped the sales intake routine and the CRM field schema, and set review-before-save as a non-negotiable principle.
  2. Architecture. We designed the pipeline around Temporal sessions, so consecutive messages about one prospect stay in context until approval or a new session.
  3. Bot & ingestion. We built the grammY Telegram interface, mixed-language voice transcription, and attachment handling.
  4. Extraction & mapping. We built the extraction that maps informal input to the configurable CRM fields, with a revision step for field-level corrections.
  5. Validation, duplicates & CRM write. We implemented the checklist, duplicate detection, and record creation through the CRM API with attachments and return links.
  6. Testing, deployment & support. We tested across input types and languages, containerized with Docker, deployed with Telegram-ID access control and error logging, and support it ongoing.

Result

  • Logging a lead stopped competing with selling — managers capture a prospect in the conversation they’re already in, instead of stopping to fill a form after each call.
  • Fewer details slip through — voice notes, chats, and attachments become one structured record at the moment of the conversation, not hours later from memory.
  • The CRM got more consistent — standardized field mapping and a configurable checklist mean leads arrive complete and comparable.
  • Duplicates stopped multiplying — existing-contact checks catch a repeat prospect before a parallel record is created.
  • The team kept the final say — nothing reaches the CRM until a manager has reviewed and approved it.

Technologies: Telegram Bot · grammY · Temporal · CRM API · Docker.

Follow Us

Have a project in mind?

Explore more case studies

Explore all

Have a product that needs to impress from the first second?

Premium look and speed don't have to compete. ZentixSoft builds sites that convey the full value of your product - and open instantly on any device.

Calendly

calendly icon

Contact Us