# Leads from Telegram and Instagram straight to amoCRM and Bitrix24: how an AI agent sends orders to your CRM

URL: https://ai-xodim.uz/en/blog/ai-agent-crm-amocrm-bitrix24
Published: 2026-11-27

The Ai Xodim AI agent collects leads on Telegram and Instagram by itself — name, phone, what's needed — and sends them to amoCRM and Bitrix24: deal, contact, pipeline, owner, your fields.

- The Ai Xodim AI agent writes down a lead right in the conversation — the name, the phone, what the customer needs and where they came from — and sends it to amoCRM or Bitrix24 at once.
- In amoCRM a lead becomes a deal with a linked contact — in the right pipeline and stage, with a responsible user and a tag; in Bitrix24 it becomes a lead or a deal with a contact.
- Fields map to yours: the name and phone to the contact, what's needed to the title or a field of your own, the channel and profile link wherever you say. It connects with a key — no marketplace apps.
- Every send is in a delivery log together with the CRM's response, and one that didn't arrive can be sent again with one click. A lead goes to the CRM once — no duplicates.

A customer wrote on Instagram, the order was agreed, the manager wrote the phone number down… in the notes on their phone. A week later nobody will find it. Another customer wrote on Telegram at night — by morning the chat had sunk under forty new ones. Half the leads make it into the CRM, and the owner doesn't know how many customers social media really brings.

**The Ai Xodim AI agent** fixes this from both ends: it collects the lead in the conversation and sends it to the CRM itself — that very second, with no copying by hand.

## How the agent collects a lead

The agent's instructions say what an order takes for you: say, a name, a phone and a delivery address — or a service, a date and a time for a booking. The agent asks for it in the conversation, one or two questions at a time, and as soon as the customer gives a phone number or clearly says what they need, it writes down a lead:

- **name** — as the customer introduced themselves;
- **phone** — only the one the customer gave; in a Telegram bot, through the "Share my phone number" button. The number is brought to the +998… format;
- **what's needed** — briefly, in the language of your instructions: "blue dress M, delivery tomorrow";
- **where the customer came from** — "Instagram @your_account", "Telegram" or "Telegram @your_bot" — and a link to their profile.

The agent never makes up a name or a phone number. If the customer adds something later — an address, say — the lead in the dashboard is filled in rather than duplicated.

![A chat lead goes straight to the CRM: in the conversation the agent collects the name, phone, what's needed and where the customer came from; amoCRM gets a deal with a contact — with pipeline and stage, responsible user, tag and your fields; Bitrix24 gets a lead or a deal with a contact — with direction and stage, responsible user and your fields; every send is in the log, and a failed one can be retried](/images/infographics/lead-to-crm-en.png)

## amoCRM: a deal with a contact

In amoCRM the agent creates **a deal with a linked contact** in a single request. You can set:

- the **pipeline and stage** the deal lands in;
- the **responsible user**;
- a **tag** — say, "AI agent" or "Instagram";
- the **deal name** — from a template, like "Lead: {customer name}";
- **fields** — any fields of the deal and the contact, phone and custom ones included.

It connects with your subdomain and a long-lived token, which you create in amoCRM: Settings → Integrations → Create integration → "Keys and scopes" → "Long-lived token". No marketplace listing or review is needed.

## Bitrix24: a lead or a deal

In Bitrix24 a lead becomes a **lead** or a **deal with a contact** — whichever way you work. You can set:

- the deal's **pipeline and stage**, or the lead's status;
- the **responsible user**;
- **fields** — your fields of the lead, the deal and the contact.

It connects through an inbound webhook with the CRM permission: Applications → Developer resources → Other → Inbound webhook. No local app has to be written.

## Which fields the agent sends

| Lead field | Example | Where it usually goes |
|---|---|---|
| Customer name | Dilnoza | contact → name |
| Customer phone | +998 90 ••• •• 67 | contact → phone |
| What the customer needs | blue dress M, delivery tomorrow | deal name or a comment |
| Channel | Instagram @shop.demo | a "Source" field |
| Customer profile | @dilnoza | a field of your own |
| Profile link | instagram.com/dilnoza | a field of your own |

You can also send a fixed value to any field — for example "Source: AI agent", to see in your CRM reports how many leads it brought. Values are converted to the field's type by themselves — a phone or a date, for instance.

## Reliability: nothing gets lost

- **A delivery log.** Every attempt is visible in the dashboard: what went out, what the CRM answered, the error if there was one. The "Retry" button sends the lead again.
- **Automatic retries.** If the CRM is down for a minute, the send is repeated by itself — several times, with pauses.
- **A pause when a key is revoked.** If the token or webhook stops working, the integration pauses instead of knocking on the CRM with every lead. The log shows why.
- **The chat doesn't suffer.** Even if the CRM breaks, the agent keeps answering customers, and the leads wait in the dashboard.
- **No duplicates.** A lead goes to the CRM once. Additions after it was sent — an address the customer wrote later, say — show in the dashboard, and a manager adds them in the CRM.

## Without a CRM

A CRM isn't required. Every lead arrives anyway as a "New lead" notification in the Ai Xodim app and is kept in the dashboard — with the statuses New, In progress, Won and Lost, the channel, and a phone number you can call with one tap. For a small business that's often enough.

Working in another CRM? Message us — we'll tell you what can be done.

## How we connect it

1. You give access: for amoCRM, the subdomain and a long-lived token; for Bitrix24, the inbound webhook address. Don't know where to find them? We'll do it together.
2. We check the connection, pick the pipeline, stage and responsible user, and map the fields.
3. We send a test lead and see how it lands in the CRM.

> Want leads from Telegram and Instagram to land in your CRM by themselves? [Message us on Telegram](https://t.me/coderuzb?text=Hi%21%20I%27d%20like%20an%20AI%20agent%20for%20my%20business%20%28from%20the%20ai-xodim.uz%20blog%29) — we'll connect the agent and the CRM together. Trying it is free.

## Videos

- **The Ai Xodim AI agent in 40 seconds** (in Uzbek): [Instagram](https://www.instagram.com/reel/DgO1U-tSRyv/).
- Lessons on Instagram and Telegram are on the [@aixodim YouTube channel](https://www.youtube.com/@aixodim).

## FAQ

### Which CRMs does the Ai Xodim AI agent work with?

amoCRM and Bitrix24. In amoCRM a lead becomes a deal with a contact; in Bitrix24, a lead or a deal with a contact.

### Do I need to install an app from the amoCRM or Bitrix24 marketplace?

No. amoCRM connects with a long-lived token, Bitrix24 with an inbound webhook. It works straight away, with no review.

### Can I choose the pipeline, stage and responsible user?

Yes. For each CRM you set the pipeline or direction, the stage or status, the responsible user, a tag in amoCRM and the mapping to your own fields.

### What happens if the CRM is down?

The send is retried automatically, and every attempt is in the log with a Retry button. Meanwhile the agent keeps answering customers.

### Will leads be duplicated?

No. The agent keeps one open lead per conversation for a week and fills it in, and it goes to the CRM once.

### Can I work without a CRM?

Yes. Leads arrive as a notification in the Ai Xodim app and are kept in the dashboard — with statuses, the channel and the customer's phone.
