BYstudio
RU/EN

Telegram AI bot and CRM: handing a conversation to a person

A Telegram-to-CRM handoff works when an agent receives the customer’s request, verified facts, unanswered questions and the context needed to continue. A “new lead” notification alone is insufficient. Once a person is requested, autonomous bot replies should stop, ownership should be acknowledged, and later messages should join the same history without creating another record.

Check the CRM’s built-in channel first

For a shared inbox and agent assignment, start by checking the CRM’s existing channel. Custom work addresses a missing rule: a source-backed AI summary, a request spanning several systems, or a particular handoff process.

Existing channel
Check message delivery, history, routing and permissions. Use one conversation to verify that an agent has actually accepted the request.
AI alongside the channel
Add fact extraction and drafts where someone can review the result. Agent routing and permissions follow explicit system rules.
Telegram boundary
This example uses a separate bot that a customer messages first. It imports no personal account history. A Telegram Business connection needs separate configuration and an agreed access scope.

Bitrix24 documents Open Channel queues, forwarding to an agent and disconnecting a bot after handoff. Check ownership of existing CRM items separately: its documented automatic ownership change on manual forwarding concerns a new item created from the chat. Verify features and the plan in the actual account.

What the agent should receive

A brief summary helps someone begin, but they also need access to relevant source messages within their permissions. An unsupported inference must not become a CRM fact.

Request and facts
“We need a landing page for an installation service.” Preserve a source-message reference. Budget stays unknown unless the customer provides it.
Open questions
Are materials ready? Who approves the result? What follow-up has actually been agreed? These remain questions until answered.
Reason and handoff state
The customer requested a person, no permitted answer was found, or an individual estimate is needed. “Waiting for an agent” and “accepted by an agent” are separate states.
Owner and next step
A record has one current owner. The next step follows an agreed rule; delivering a notification does not mean the agent accepted responsibility.
History and access
Share only the relevant context. Agree retention, roles, attachments and what may be sent to an external model before launch.

A matching name or username does not establish that two contacts are the same customer. Cross-channel merges need a reliable link and review of uncertain matches.

One current mode for each conversation

This is a proposed acceptance model for a custom integration. These labels are not universal fields in every CRM.

Bot handles the conversation
Only agreed replies are permitted. A new message changes the current context version.
Waiting for an agent
Autonomous replies have already stopped. The queue, waiting time and person responsible for delayed requests are visible. The handoff request is recorded.
Accepted by an agent
The agent handles replies. A late bot draft must not be sent even if the model began preparing it earlier.
Closed
The outcome and closing reason are recorded. A new independent question follows an agreed rule for opening a new request.

Before applying any draft, the system checks the current mode and context again. Returning control to the bot requires a separate authorized action, rather than an arbitrary timeout.

Fictional replay: two conversations and a late draft

BYstudio prepared fictional events and a local replay script. It connects to no Telegram chat, CRM or model. The run checks handoff and retry rules; AI fact extraction requires a separate evaluation set.

Conversation A: first message
“We need a website for an installation service.” One sample record is created. Redelivery of that event adds neither a second record nor a duplicate message.
Conversation A: a person is requested
The state becomes waiting for an agent. “A landing page. We have not set a budget yet” is added to the same history.
Agent A accepts
A second attempt to assign agent B is rejected. A bot draft prepared earlier fails the mode check. A later customer message remains available to the agent.
Conversation B
“We need to connect a CRM to a form.” This creates a separate record and history. It inherits neither ownership nor facts from conversation A.
Replay the entire batch
The second pass keeps two records and four source messages. It creates no additional handoff or draft.

The set contains 12 events, including one redelivery. It checks stale context, paused bot replies, assignment conflicts and conversation isolation. One permitted draft is only a local readiness flag; nothing is sent to a customer.

Download the events, replay script and expected result, ZIP

What happens when something fails

The CRM or messaging channel may be temporarily unavailable. Receiving a message, saving a record, assigning an agent and delivering a reply need separate acknowledgements.

CRM unavailable
Keep the message in a protected queue. Show the pending handoff and retry with the same operation key. Do not say an agent accepted until that is true.
Repeated Telegram update
Check the source key. A delivery identifier and a business-request identifier solve different problems. A new message in an existing conversation is not a duplicate of its earlier message.
Late model output
Recheck the context version and mode before applying it. Hold or discard output prepared from an earlier context.
No available agent
Use the agreed waiting and escalation path. Show an honest status without inventing a response deadline.
Edited messages
Edits and attachments need their own source-update rules. A customer’s text cannot assign an agent, expose another customer’s data or authorize an outgoing action.

Telegram documents update identifiers and redelivery of unconfirmed updates. Acknowledge receipt after durable storage using the selected delivery mechanism. This is not a promise of exactly-once delivery or a guarantee that a CRM record was saved.

What to check before enabling autonomous replies

Start with one channel, one route and a limited set of permitted answers. Each case needs source messages, an expected outcome and an observed result.

Customer asks for a person
The bot stops immediately, the request enters a queue, and an agent separately acknowledges acceptance.
Context changes
A draft based on an older message is not automatically sent. Unknown budget and deadlines stay unknown.
Retry and outage
One event does not create two records. When the CRM returns, the record contains the permitted history.
Two agents and two conversations
Ownership is unambiguous. Another conversation’s data appears in neither the record nor a reply.
Access revoked or conversation closed
An unauthorized colleague cannot read history or attachments. The bot does not restart on its own after closure.

The local replay below covers states and retries only. Telegram delivery, CRM writes, network failure, permissions and model replies also need checks in an agreed test environment before use with real customers.

First phase, cost and ongoing ownership

The initial discussion is free. A full audit, pilot, integration and development have separately agreed scope and price. Describe one route and provide fictional sample messages for an initial assessment.

First-phase scope
A handoff map, minimum context packet, connection to one CRM, failure rules, an evaluation set and acceptance checks.
Cost drivers
An existing messaging connector, CRM fields, roles, context volume, system count, attachments, model requirements and access rules. These inputs are needed before a meaningful estimate.
After launch
Agree who monitors the queue, investigates delays, updates instructions, checks model costs and handles API changes. Support terms are separate.
Measuring value
Track time to agent acceptance, incomplete handoffs, duplicate records and summary-review time. Conversations are not qualified enquiries or sales.

BYstudio’s published example of durable enquiry storage and independent notifications demonstrates an approach to reliable delivery. It uses no studio CRM and is not evidence of a customer’s Telegram AI deployment.

Prepare a handoff route

Describe the channel, CRM, reason for handoff and the person who accepts a request. State what must not be sent to an external model. Do not submit passwords, tokens or real conversations through the public form.

Download the handoff brief and acceptance checklist, TXT

Official sources

Checked on 8 November 2026. BYstudio prepared the proposed workflow, fictional events and checklist. This example measures no model accuracy, response-time improvement or financial outcome.

Tell us what
you need to build.

The initial task discussion is free. Describe it in your own words. A BYstudio specialist or Yan Bunin will respond.

For example: @username, a phone number or name@company.com

For example, a customer asks for an estimate. An agent needs the conversation facts and the bot must pause replies.

Add a detail (optional)

Please do not send passwords, tokens, customer databases or bank files.

What happens after you send it

We read the description, clarify the goal and suggest a first-phase scope. A few sentences are enough to start.