How to Collect Leads from Email and Messengers in One CRM

Vladimir Lomtev•
How to Collect Leads from Email and Messengers in One CRM

To collect inquiries from email and messengers in one CRM, keep three links: the message with the delivery event, the sender with the contact, and the inquiry with the deal. A repeated copy of the same message does not create a record again. A new message from the same customer can be added to the current deal when it continues the same task.

Step 1. Map all channels to a shared event record

The email processor and the bot receive different fields. In the CRM, they need a common minimum: channel, connection ID, stable message label, time, and a link to view the original. For email, a thread ID is useful; for chat, chat and message IDs are useful. Store the normalized record separately from attachments. The manager sees what the draft is based on, while access to the original is controlled by roles.

Field Email Messenger
Delivery key Email connection and stable message ID Connection, chat, and message ID
Thread key Thread ID or confirmed reply link Chat ID and link to the original message
Contact Sender address and verified details Channel ID and verified details
Content Subject, snippet, and link to the original Text snippet and link or internal ID
Link to inquiry Confirmed request number or manager selection Request number, previously approved link, or manager selection

The Telegram Bot API distinguishes between the update ID and the message ID within a chat. One helps process delivery, the other links later events to the original text. An email system may have its own ID and a separate Message-ID header. Choose the key based on the source guarantee and take into account at what level it is unique. Description of Update and Message in the Telegram Bot API

Step 2. Exclude duplicate delivery

The same incoming item may arrive again after a timeout. Before creating a deal, save the event by its unique key in the integration store. A uniqueness constraint will not allow two processors to start handling the same duplicate at the same time. For an event that has already been accepted, consider the status: a saved completed event returns the result, while an incomplete one resumes work using the agreed mechanism.

Handle failures between the CRM and the integration store. If the CRM managed to create the deal but the response was lost, search for the card by the external key before writing again. When the API does not guarantee duplicate protection, limit concurrency for the key and, after an ambiguous response, send the event for reconciliation. Confirm receipt to the channel only after reliable storage, if the protocol allows acknowledgment to be separated from completion of actions.

Step 3. Identify the contact and the inquiry

One contact can have several open deals. An address and a phone number help determine who wrote. An order number and confirmed history help determine which deal it refers to. A shared procurement department email address can belong to several people at once. Bitrix24 documents contact search by contact details when working with a duplicate lead. Based on that, you can retrieve candidates in a specific CRM. Bitrix24 example

For cross-channel linking, use a verified identifier that is already tied to one contact. If the company name and subject match without confirmation, show candidates to the manager. AI can extract the number and suggest a category. Validation of the number’s uniqueness and the deal’s availability is performed using CRM data. Store verified details alongside a short summary.

Step 4. Reconcile email and chat on the same order

Suppose the email “We need two boxes of samples” comes from a known contact. A request is created with an external key. The manager assigns it number R-018. Later, the customer writes in messenger, “For R-018, change it to three.” The confirmed contact and the exact link to the open inquiry make it possible to attach the message to R-018. The quantity is shown as a proposed change until it is confirmed in the accounting system.

Event in the test input Expected resolution
Email received for the first time Create an inquiry draft, save the email ID
The same webhook with the same key was repeated Return the previously saved result
Chat with R-018 from a confirmed contact Attach to the open deal, send the change to the manager
“About the order” message without a number when there are two open deals Create a clarification task with two candidates
A new email from the same customer about a different order Open a separate inquiry

This is a project scenario. In a test environment, send two messages, repeat one event, and check the number of cards, the preservation of originals, and assignment of the owner. Record expectations in advance. If the task does not arrive, a retry should restore it while preserving the already created card. An end-to-end run in the live CRM is not claimed here.

Step 5. Send ambiguous matches to a manager

In the queue, keep the channel, time, short description, link to the original text, candidates, and the reason for stopping. The manager links the request to one of the deals or opens a separate one. Save the decision next to the event. If the bot responded to the customer, the response record should also appear in the thread. Check cases with multiple contacts under one phone number, an attachment, and a temporarily unavailable CRM.

Additional materials cover email handling and the inquiry flow for a wholesale supplier.

Preparing a pilot with the studio

Vladimir Lomtev’s AI studio helps describe the record for an incoming event, connect two channels with the CRM, and route ambiguous matches to the manager’s queue. To get started, take one fictional message each from email and chat, the structure of the record, and an example of a new inquiry from a repeat customer.

Discuss the task

Bottom line

First, control duplicate deliveries, then identify the contact, and only after that choose the inquiry. Recreate one email and one message, repeat the delivery, and verify that the manager sees both originals in the expected record. Send ambiguous links to a person.

Official sources verified 2026-11-23.

Request an audit

Share your contact details and we will follow up.

← All articles

Comments (0)

Loading comments…

Leave a comment
No registration required

Book a strategy call
for agentic operations

Tell us which workflow you want to improve. We will map feasibility, risks, and the fastest MVP path.

By submitting, you agree to our privacy policy

Contacts

Global Operations

Serving U.S. clients remotely
with private cloud and on-prem options

Strategy calls by request

We respond after reviewing your workflow context.

info@agentsunrise.pro

For partnership inquiries

Have a proposal?

Write to us in messengers

© 2026 AgentSunrise