When you need this
- Leads arrive from several places: a channel, a bot, a website, WhatsApp.
- There is more than one manager and it matters who took the client first.
- The same buyer writes again a week later and a second deal appears in the CRM.
- The head of sales wants to see every lead in Kommo, not only those the manager remembered to transfer.
What the options are
| Method | How it works | Pros | Cons |
|---|---|---|---|
| A manager transfers by hand | Writes to the client in Telegram, then creates a deal | Nothing to set up | Leads get lost, especially at night and on weekends |
| A ready integration from the Kommo marketplace | Connects the Telegram chat to Kommo | Fast | Usually moves the conversation, not the enquiry about a specific property; duplicates remain |
| A builder (Make, n8n) | A workflow "message arrived → create deal" | No code of your own | Duplicate matching and property parsing have to be built by hand, and workflows break when fields change |
| Your own API integration | The bot or Mini App creates the deal with a contact itself | Full control: property, source, duplicates, task | Needs a developer |
How to do it, step by step
- Collect the whole lead. Name, contact, property (ID, project, price), source (channel, bot, website) and a comment. If the lead came from a Mini App inside Telegram, the user's name and handle are already in the signed launch data, so asking for a phone is optional.
- Find the contact. Search by phone in one format (digits only, with the country code) and by Telegram handle. Inconsistent phone formats are the main cause of duplicates.
- Create the deal with the contact in one request. Kommo has
POST /api/v4/leads/complexfor this: the deal, contact and company go together. The response has amergedfield showing whether Kommo's duplicate control kicked in. - If the contact already has an open deal, do not create another. Add a note "repeat enquiry about such-and-such property" and raise a task.
- Set a task and notify the manager. A "get in touch" task for the responsible person and a message in the working Telegram chat with a link to the deal.
- Keep the lead on your side. If Kommo is unavailable, the lead must not disappear: write to your own database first, then send to the CRM with retries.
Common mistakes
- Phone in different formats:
+995 555 12 34 56and995555123456are two different people to a CRM. - The property does not reach the deal, and the manager has to ask the client what they were looking at.
- No retry: Kommo returned an error and the lead stayed only in the logs.
- The source is not recorded, so a month later nobody knows which channel brings buyers.
How we built it
For a realtor in Batumi I built a property catalog in Telegram: a showcase with filters, a bot and a web admin panel. Leads from the showcase go to Kommo on their own: a deal is created in the pipeline together with a contact and a "get in touch" task, and repeat enquiries from the same client merge into one deal. You can see what the buyer sees in the demo catalog (in Russian).
Questions
Can I do it without code of my own?
Yes, if leads are few and duplicates do not bother you: a ready integration or a workflow in Make or n8n will do. Your own code pays off when you need the property in the deal, duplicate protection and tasks by the agency's rules.
Do I need the client's phone number?
Not inside Telegram: the Mini App gets the name and handle from the signed launch data, and you can reach the client in Telegram. Ask for a phone if you continue in WhatsApp or call.
What about leads from WhatsApp?
The logic is the same: find the contact by phone, create or update the deal. Automatic replies in WhatsApp fall under Meta's separate rules for business bots.
Sources
- Kommo API: complex lead creation with contact and company
- Kommo: Lead Capture guide, Duplicate control section
- Telegram Mini Apps: documentation
Read us in Google? Add flavrushko.dev as a preferred source.