# AI Consultant in Bitrix24 Open Channels with Operator Handoff

> How an AI consultant handles WhatsApp and Telegram in Bitrix24 Open Channels with knowledge bases, duplicate protection and safe operator handoff.

Title: AI Consultant in Bitrix24 Open Channels | RM Systems
Language: en
article:published_time: 2026-07-20T00:00:00.000Z
article:modified_time: 2026-07-22T00:00:00.000Z

- [Page](https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii)
- [All pages](https://rm-syst.ru/llms.txt)
- [Markdown](https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii.md)
- [Reviews](https://rm-syst.ru/en/about#reviews)
- [Google Maps](https://www.google.com/maps/search/?api=1&query=RM%20SYSTEMS&query_place_id=ChIJezxVyBzuMGYRTQqmSvY1IoM)
- [Yandex Maps](https://yandex.ru/maps/org/192301702611/reviews)

## Page content

1.  [Blog](https://rm-syst.ru/en/blog)
2.  [RM Articles](https://rm-syst.ru/en/blog/articles)
3.  AI Consultant in Bitrix24

Articles

[Close article](https://rm-syst.ru/en/blog/articles)

An AI consultant can answer WhatsApp and Telegram customers inside Bitrix24 Open Channels and stop when an operator takes over. In this project, managing that human handoff was the main technical challenge.

[Roman Mikhailov](https://rm-syst.ru/en/about)July 20, 20265 min read

Contact us [All articles](https://rm-syst.ru/en/blog/articles)

![Otter wearing a headset routes messages from three channels to a human operator](https://rm-syst.ru/_astro/rm-systems-ai-konsultant-bitrix24-otkrytye-linii.DQTYByZ_.webp)

In this article

1.  [Custom integration versus the built-in Bitrix24 AI agent](https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#custom-integration-versus-the-built-in-bitrix24-ai-agent)
2.  [What the AI consultant does in Open Channels](https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#what-the-ai-consultant-does-in-open-channels)
3.  [Message route through Bitrix24](https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#message-route-through-bitrix24)
4.  [Knowledge bases and schedules per channel](https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#knowledge-bases-and-schedules-per-channel)
5.  [Reliable handoff from AI to an operator](https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#reliable-handoff-from-ai-to-an-operator)
6.  [Preventing duplicate and self-generated answers](https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#preventing-duplicate-and-self-generated-answers)
7.  [Testing operator handoff](https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#testing-operator-handoff)
8.  [Result and boundaries](https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#result-and-boundaries)

## Custom integration versus the built-in Bitrix24 AI agent

Bitrix24 provides a built-in [AI agent for Open Channels](https://helpdesk.bitrix24.ru/open/28426770/) that can answer from a knowledge base and transfer a conversation to an operator.

This case describes a custom integration instead. It connects Wazzup, a separate AI gateway, multiple portals and channels, individual knowledge bases and schedules, plus custom logic that stops AI after an operator response.

## What the AI consultant does in Open Channels

Open Channels bring connected messenger conversations into one Bitrix24 interface. The project preserved that existing manager workflow and added AI as a first response layer.

A customer writes in WhatsApp or Telegram. Wazzup sends the message to Bitrix24. AI searches [the knowledge base](https://rm-syst.ru/en/blog/projects/ai-agent-baza-znanii-kompanii) assigned to that channel and returns an answer to the same conversation.

The system had six requirements:

1.  Accept only relevant Open Channel events.
2.  Return the AI answer to the original chat.
3.  Keep the conversation visible to the manager.
4.  Stop AI immediately after an operator replies.
5.  Respect each channel's schedule, time zone and knowledge base.
6.  Manage connections in a web panel without editing server configuration.

## Message route through Bitrix24

The working chain is:

**WhatsApp or Telegram → Wazzup → Bitrix24 Open Channel → bitrix\_bridge → AI gateway → knowledge base → answer to the same conversation.**

The portal connection uses OAuth, a local application, event handlers and the [Bitrix24 Open Channels REST API](https://apidocs.bitrix24.ru/api-reference/imopenlines/openlines/index.html). Every event is checked for portal, channel, source and message type before it reaches AI.

These checks are essential because a single stream includes customer messages, operator replies, bot replies, system events and retries.

## Knowledge bases and schedules per channel

After validation, bitrix\_bridge sends the message, conversation context and channel configuration to the shared AI gateway. Each Open Channel can use a separate knowledge base—for example, one for sales, one for support and one for a specific product.

The control panel can add several portals, store local-app settings and produce an OAuth installation link. Once connected, it loads Open Channels and displays portal, authorisation, bot and channel status.

For every channel, an authorised user can configure:

-   whether AI is enabled;
-   the assigned knowledge base;
-   working hours and time zone;
-   weekly rules;
-   holidays and one-off dates.

## Reliable handoff from AI to an operator

After the first operator message, AI must stop for that exact conversation until the session ends.

Sender identifiers were not reliable enough in the Wazzup workflow because an operator reply from a connected phone could arrive with the identifier also seen in customer events. Inspecting real payloads revealed a service attribute that reliably marked an outgoing human message.

When bitrix\_bridge detects that event, it sets a `human_lock` for the conversation in Redis. While the lock is active, new customer messages stay with the operator and are not sent to AI. The lock clears after the session ends or a new conversation begins, with a safety expiry for incomplete events.

The processing priority is:

**human first, schedule second, AI third.**

## Preventing duplicate and self-generated answers

Open Channels deliver more than new customer questions. The stream also includes the bot's own replies, system messages and repeated events. Processing every item would make the bot answer itself.

The bridge therefore includes:

-   filtering of its own AI messages;
-   exclusion of service events;
-   idempotency for repeated events;
-   retries only for temporary API errors;
-   separate state for portals, channels, conversations and knowledge bases.

This infrastructure is less visible than the answer text, but it makes the integration safe for continued operation.

## Testing operator handoff

The complete workflow was tested separately for WhatsApp and Telegram:

1.  The customer writes in the messenger.
2.  AI answers in the Bitrix24 Open Channel.
3.  The operator replies from Bitrix24 or the connected account.
4.  The conversation receives a `human_lock`.
5.  The customer writes again and AI remains silent.
6.  The lock clears after the session ends.

The bridge logic also has 38 automated checks covering duplicates, self-messages, schedules and operator handoff. All 38 passed when the working workflow was completed.

## Result and boundaries

The implemented system provides the following behaviour:

-   WhatsApp and Telegram messages are handled in Bitrix24;
-   AI answers from the knowledge base assigned to the channel;
-   AI does not interfere after an operator joins the active session;
-   self-generated, service and duplicate events do not trigger extra answers;
-   every channel has its own knowledge base and schedule;
-   portals and channels are configured through one web panel.

This case does not claim a measured sales increase or a specific reduction in response time. The verified result is technical: a message travels through the complete route, AI answers in the correct conversation and a person can safely take control.

Before implementation, define the channels, permitted AI topics, knowledge base for each line, exact handoff conditions and acceptance tests for customers, bots, employees and session closure.

See [RM Systems CRM integration services](https://rm-syst.ru/en/catalog/crm-integratsiya) if you need a similar workflow.

## Read next

-    [![](https://rm-syst.ru/_astro/rm-systems-ai-agent-baza-znanii-kompanii.D2FQYckY.webp)**AI agent for the company knowledge base** May 12, 2026 5 min read ↗](https://rm-syst.ru/en/blog/projects/ai-agent-baza-znanii-kompanii)
-    [![](https://rm-syst.ru/_astro/rm-systems-rag-agent-ai-podderzhka-klientov.CXyt-hoe.webp)**RAG agent for customer support** May 12, 2026 6 min read ↗](https://rm-syst.ru/en/blog/projects/rag-agent-ai-podderzhka-klientov)
-    [![](https://rm-syst.ru/_astro/rm-systems-lending-ai-konsultant-zayavki-crm.DchBmhuQ.webp)**Landing page with an AI consultant** July 10, 2026 8 min read ↗](https://rm-syst.ru/en/blog/projects/lending-s-ai-konsultantom)

[← Previous](https://rm-syst.ru/en/blog/projects/ai-chat-dlya-sayta-bitrix24) [All articles](https://rm-syst.ru/en/blog/articles) [Next →](https://rm-syst.ru/en/blog/projects/seo-dlya-ai-poiska-cifrovoy-sled)

## Structured data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://rm-syst.ru#organization",
      "name": "RM Systems",
      "description": "RM Systems is an AI agency founded by developer Roman Mikhaylov. Business websites, AI agents, Telegram and MAX bots, CRM integrations and automation. Based in Cheboksary, Russia, serving clients remotely across Russia and worldwide.",
      "url": "https://rm-syst.ru",
      "logo": "https://rm-syst.ru/favicons/android-chrome-512x512.png",
      "telephone": "+7 (917) 655-65-56",
      "sameAs": [
        "https://t.me/dAI_lab",
        "https://wa.me/79176556556",
        "https://github.com/Daos0/",
        "https://x.com/Alexandrovich_R",
        "https://max.ru/u/f9LHodD0cOKmBwpsNHTbIlWJdWiNyvXRSYYeAtg1_yCJdD7ORXdp6dVNQkQ",
        "https://yandex.ru/maps/org/192301702611",
        "https://g.page/r/CU0Kpkr2NSKDEBM"
      ],
      "founder": {
        "@id": "https://rm-syst.ru/about#roman-mikhaylov"
      },
      "address": {
        "@type": "PostalAddress",
        "addressLocality": "Cheboksary",
        "addressRegion": "Chuvash Republic",
        "addressCountry": "RU"
      },
      "areaServed": [
        {
          "@type": "City",
          "name": "Cheboksary"
        },
        {
          "@type": "Country",
          "name": "Russia"
        },
        "Worldwide"
      ]
    },
    {
      "@type": "Person",
      "@id": "https://rm-syst.ru/about#roman-mikhaylov",
      "name": "Roman Alexandrovich Mikhaylov",
      "alternateName": [
        "Роман Михайлов",
        "Roman Mikhaylov",
        "Roman Mikhailov"
      ],
      "jobTitle": "Developer and founder of the AI agency RM Systems",
      "description": "Roman Mikhaylov, website and AI developer, founder of the AI agency RM Systems. Author of articles on web development, SEO and AI search. The agency develops websites, AI agents, Telegram and MAX bots and CRM integrations. Based in Cheboksary, Russia, working remotely across Russia and worldwide.",
      "url": "https://rm-syst.ru/en/about",
      "image": "https://rm-syst.ru/_astro/roman_mikhaylov.DjWXYXAH.jpg",
      "homeLocation": {
        "@type": "Place",
        "name": "Cheboksary",
        "address": {
          "@type": "PostalAddress",
          "addressLocality": "Cheboksary",
          "addressRegion": "Chuvash Republic",
          "addressCountry": "RU"
        }
      },
      "worksFor": {
        "@id": "https://rm-syst.ru#organization"
      },
      "sameAs": [
        "https://github.com/Daos0/",
        "https://t.me/M_R_Alexandrovich",
        "https://x.com/Alexandrovich_R",
        "https://productradar.ru/user/rm-syst/",
        "https://dev.to/rmsyst",
        "https://kwork.ru/user/ralexsandrovich",
        "https://www.fl.ru/users/ralexsandrovich/portfolio/",
        "https://freelance.ru/Da0",
        "https://uslugi.yandex.ru/profile/RomanAleksandrovichMikhajlov-2971987",
        "https://career.habr.com/roman03041987",
        "https://www.behance.net/83999fec",
        "https://workspace.ru/id/roman-mihaylov-7/",
        "https://profi.ru/profile/MikhaylovRA19",
        "https://www.linkedin.com/in/роман-михайлов-ab940b420",
        "https://tenchat.ru/5249456",
        "https://www.instagram.com/romanmikhaylov5/",
        "https://vk.com/romansss"
      ],
      "knowsAbout": [
        "Astro",
        "React",
        "Python",
        "FastAPI",
        "RAG",
        "Telegram",
        "MAX",
        "PostgreSQL",
        "pgvector",
        "Bitrix24",
        "amoCRM",
        "API",
        "SEO"
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://rm-syst.ru#website",
      "url": "https://rm-syst.ru",
      "name": "RM Systems",
      "description": "RM Systems launches AI websites, AI agents, Telegram bots and CRM integrations for business.",
      "inLanguage": "en",
      "publisher": {
        "@id": "https://rm-syst.ru#organization"
      }
    },
    {
      "@type": "WebPage",
      "@id": "https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#webpage",
      "url": "https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii",
      "name": "AI Consultant in Bitrix24 Open Channels | RM Systems",
      "description": "How an AI consultant handles WhatsApp and Telegram in Bitrix24 Open Channels with knowledge bases, duplicate protection and safe operator handoff.",
      "image": "https://rm-syst.ru/_astro/rm-systems-ai-konsultant-bitrix24-otkrytye-linii.DQTYByZ_.webp",
      "inLanguage": "en",
      "isPartOf": {
        "@id": "https://rm-syst.ru#website"
      },
      "publisher": {
        "@id": "https://rm-syst.ru#organization"
      },
      "about": {
        "@id": "https://rm-syst.ru#organization"
      },
      "mainEntity": {
        "@id": "https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#entry"
      }
    },
    {
      "@type": "Blog",
      "@id": "https://rm-syst.ru/en/blog#blog",
      "url": "https://rm-syst.ru/en/blog",
      "name": "RM Systems blog: websites, SEO and AI",
      "inLanguage": "en",
      "publisher": {
        "@id": "https://rm-syst.ru#organization"
      },
      "creator": {
        "@id": "https://rm-syst.ru/about#roman-mikhaylov"
      },
      "isPartOf": {
        "@id": "https://rm-syst.ru#website"
      }
    },
    {
      "@type": "BlogPosting",
      "@id": "https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#entry",
      "headline": "AI Consultant in Bitrix24 Open Channels with Operator Handoff",
      "description": "How an AI consultant handles WhatsApp and Telegram in Bitrix24 Open Channels with knowledge bases, duplicate protection and safe operator handoff.",
      "url": "https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii",
      "inLanguage": "en",
      "datePublished": "2026-07-20T00:00:00.000Z",
      "dateModified": "2026-07-22T00:00:00.000Z",
      "mainEntityOfPage": {
        "@id": "https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii#webpage"
      },
      "isPartOf": {
        "@id": "https://rm-syst.ru/en/blog#blog"
      },
      "wordCount": 832,
      "timeRequired": "PT5M",
      "thumbnailUrl": "https://rm-syst.ru/_astro/rm-systems-ai-konsultant-bitrix24-otkrytye-linii.DQTYByZ_.webp",
      "image": {
        "@type": "ImageObject",
        "url": "https://rm-syst.ru/_astro/rm-systems-ai-konsultant-bitrix24-otkrytye-linii.DQTYByZ_.webp",
        "width": 1440,
        "height": 960
      },
      "articleSection": "RM Articles",
      "keywords": "AI consultant, Bitrix24, Open Channels, CRM, Wazzup",
      "publisher": {
        "@id": "https://rm-syst.ru#organization"
      },
      "author": {
        "@type": "Person",
        "@id": "https://rm-syst.ru/about#roman-mikhaylov",
        "url": "https://rm-syst.ru/en/about",
        "name": "Roman Mikhailov"
      }
    },
    {
      "@type": "BreadcrumbList",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://rm-syst.ru/en"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Blog",
          "item": "https://rm-syst.ru/en/blog"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "RM Articles",
          "item": "https://rm-syst.ru/en/blog/articles"
        },
        {
          "@type": "ListItem",
          "position": 4,
          "name": "AI Consultant in Bitrix24 Open Channels with Operator Handoff",
          "item": "https://rm-syst.ru/en/blog/projects/ai-konsultant-bitrix24-otkrytye-linii"
        }
      ]
    }
  ]
}
```
