Demo
Home » Blog » Integrations and CRM » Where the chatbot and CRM integration breaks

Where the chatbot and CRM integration breaks

Marichka in the evening at her cosmetics shop desk, a smartphone with a chat, a laptop with order cards, a shelf with jars

CRM chatbot integration works when, after a conversation, a ready-made order is created in the CRM: the customer's contact details, items with quantities, delivery method, the channel the person came from, and the entire chat history. If only “Name, phone number, comment” falls into the card, the manager still reads the dialogue and compiles the order by hand. Such a connection most frequently breaks in four places: on customer recognition, on inventory levels, on webhooks, and on statuses.

Let's go through all four on a single shop. A small online cosmetics shop: a website, Instagram as the main channel, regular female customers writing on Telegram. There is a CRM, and orders in it are managed by one female manager until 19:00.

Chatbot integration with a CRM for a single order

At 21:40 a female client messages on Direct: will the niacinamide serum suit oily skin and how long does delivery to Vinnytsia take. The manager is already gone. The AI manager replies.

The conversation consists of three parts, and each leaves a trace in the CRM. First, the consultation: the bot takes the product description from the catalogue and replies that the serum is suitable, but it is better to combine it with a light cream. Then the choice: the female customer takes the serum and cream, and asks if there is a smaller volume. Finally, the checkout: name, telephone number, city, branch, cash on delivery.

After the third part, the bot creates an order in the CRM. The morning manager sees it in the new orders queue, just like any order from the website. It can only be distinguished by the “source” field, which says Instagram.

This is what chatbot-to-CRM integration looks like when it is fully set up. In practice, any of these steps can quietly break, and you won't notice straight away. Usually, a female manager is the first to hit the problem when she looks for a female client from yesterday morning and finds two.

Which fields should be coming through and where each one breaks

Before connecting, list which fields the manager fills in when creating an order manually. The bot must fill in the same ones. Here is what it looks like for a cosmetics shop.

What the bot transmitsWhere does it go in the CRMWhere does it usually break
Name and telephone numberCustomer cardNew client instead of existing one because the phone number is saved in a different format
Goods and quantityOrder contentsItem not found by name, the order comes in empty or with text in the comment
City, branch, paymentDeliveryBranch in one line in the comment, the waybill has to be filled out by hand
Channel and chatSource, historyThe channel is not being transferred, the manager doesn't know where to reply
Order statusFunnel stageThe bot sets “new”, but the CRM is waiting for a different stage, so the order does not enter the queue

The second line happens most often. The name written by the client means nothing to the CRM: the bot must pass the product by its identifier from the CRM, that is, by the SKU. If the bot's catalogue and the product directory in the CRM live separately, the names diverge within a week. What should be set up in the system itself before the bot, we discussed in the article about, how to choose a CRM for an online store.

Where do the duplicates come from when an Instagram customer doesn’t have a mobile phone?

When a person writes in a direct message, Instagram does not pass the phone number to the bot. According to the Instagram Messaging API documentation, the notification about a new message contains the sender's Instagram-scoped ID and the text. This is an internal identifier, and the CRM knows nothing about it.

Therefore, a regular customer who has been buying through the website for a year looks like a new person in the direct message for the CRM. The bot creates a second card, the purchase history is broken, and the loyalty discount does not apply.

This is fixed with two settings: the bot requests the phone number before creating the order, and the integration searches for the customer in the CRM by phone number prior to card creation and, if found, adds the order to the existing card.

Next, it all comes down to the format. “0671234567”, “+38 067 123 45 67” and “380671234567” are the same phone number, but for a simple string comparison, these are three different clients. Ask if the integration standardises the number to a single format before searching. It is easy to check: message the bot from a phone that is already in the CRM, and enter the number without “+38”.

Close-up of a female manager's hands in the morning by a cosmetics shop counter: on the tablet are two identical textless customer cards, next to a smartphone with chat bubbles and a jar of serum

The serum is already out of stock, but the bot is still selling it

The bot replies using the catalogue that has been uploaded to it. If the last serum was sold through the website at lunchtime, and the bot's catalogue updates once a day, in the evening it will happily place another order for it, and in the morning the manager will call the female client to apologise.

Here it is important where the bot gets its product range from. According to the product description, Marichka AI knows the catalogue from website pages or imported PDF and Excel files, and updates prices and stock levels automatically. Clarify how often the update occurs and from which source: the website, a file, or the CRM itself. For a shop with several hundred items and fast promotional products, the difference between “once an hour” and “once a day” is noticeable.

The second point is prices. If a CRM has a discount for regular female customers, and the bot only sees the price from the website, the amount in the order and in the chat will not match. Decide in advance who fixes the final amount: the bot according to the catalogue or the CRM according to its rules, and write this in the bot's knowledge base so that it does not promise a female customer a price that will not later be on the invoice.

If your evening orders are currently waiting until morning and then taking another half an hour to be manually transferred into the CRM, that is precisely where you should test the integration first.

Webhooks and retries when the server is silent at night

A messenger message reaches the bot via a webhook: the platform sends a request to the server, and the server must quickly acknowledge receipt. If the server is silent, the platform retries for a while and then gives up. Each messenger has its own rules.

Instagram and Facebook

According to the documentation Meta for Messenger Platform webhooks, the server must respond to each notification within 5 seconds. If delivery fails, Meta immediately retries it several times, sends a warning to the developer after 15 minutes of failures, and if the failure continues for an hour, it unsubscribes the app from webhooks of the page or Instagram professional account, and new messages stop arriving altogether.

At the same time, Meta warns that a single notification may arrive twice, and multiple messages may arrive out of order. Without checking for duplicates, a single order will appear twice in the CRM.

Telegram

The Telegram Bot API stores incoming updates on the server until the bot retrieves them, but for no longer than 24 hours. If the webhook does not respond, Telegram repeats the request and stops trying after a “reasonable number”, as stated in the documentation: a message sent on Friday evening may not survive until Monday if the failure goes unnoticed.

For you as a shop owner, there is one practical question here for the bot provider: who monitors webhook delivery at night and on weekends, and how will you find out about an outage. The answer “we will see it in the logs” without notifications is not acceptable.

Statuses and handover to the manager following registration via a CRM agent

In the simplest setup, the integration is one-way: the bot creates an order and its involvement ends there. Two days later, a female customer writes “where is my parcel?”, and the bot cannot see that the female manager has already dispatched the order and entered the consignment note number, so it either replies with a generic response or passes the query to a human.

A proper AI agent for a CRM is able to read the status and answer such questions itself. Ask whether a two-way connection is provided and which fields the bot can read: status, waybill number, amount due. The AI part of the CRM has its own assistants inside the system, but they work for the manager and do not reply to a female client in direct messages.

The second half of the section relates to handover to a human. Marichka AI responds solely from the knowledge base, and if a question is not answered there, it hands it over to an operator along with the entire chat history. For a cosmetics shop, a typical case is when a female customer asks about allergies or pregnancy, and the bot does not provide advice on such matters. In the morning, the manager sees the dialogue and picks up from where it left off. Check where exactly such a handover arrives: into the CRM, the manager's messenger, or to email. If it is in the CRM, it should be visible in the queue, rather than just in the customer's history. If you keep records in Odoo, it has its own particularities, and we have described them separately, how AI agents in Odoo CRM work together with an AI manager.

Six checks to verify integration the evening before launch

The most reliable way to test the integration is to go through the female client's journey yourself. Ask a female acquaintance to write from her personal accounts and go through the following scenarios:

  1. New order from Direct with two items and delivery to a branch.
  2. Order from Telegram from a number already in the CRM, entered without “+38”.
  3. Enquiry about an out-of-stock item.
  4. The same message sent twice in a row.
  5. A question for which there is no answer in the knowledge base (for example, about drug compatibility).
  6. The “where is my order” question regarding an already dispatched order.

In the morning, open the CRM and calculate: how many orders have appeared, whether there are any customer duplicates, whether the warehouse and branch are correct, and where the handoff to a human went. Every discrepancy is a point where the chatbot-to-CRM integration will break on a live customer.

A ready-made integration in the product description does not yet guarantee that orders will arrive intact: this is only evident on your goods and with your female customers. Marichka AI has a free 7-day trial, and those six messages on the first evening of testing will be enough to see whether orders reach the CRM without manual transfer.

Ready to connect Marichka to your channel?

Marichka AI will help you automate communication, reply to clients 24/7 and increase sales.

Frequently asked questions

How long does it take to integrate a chatbot with a CRM?

It depends on whether the bot has a ready-made connection to your CRM. If it does, the setup comes down to an access key, field mapping and test orders. If it doesn't, work with the API or an intermediary service is added, and the timeframe is determined by whoever carries it out. Separately, allow a few days for testing on real conversations.

Do you need a programmer to connect a bot to a CRM?

For a ready-made integration, usually no: you need administrator rights in the CRM and a list of fields that the bot should fill in. A programmer will be needed when the CRM accepts orders only via API without a ready-made module or when you need to transfer non-standard fields.

What should I do if my CRM doesn't have a ready-made integration with the bot?

Ask CRM support if there is an open API or incoming webhook for creating orders and customers. If there is, the bot can be connected directly or via an intermediary service. If the CRM only accepts data from its own forms, a full integration will not work, and the manager will have to transfer orders manually.

Can the bot see that the order has already been dispatched?

Only if the integration is bidirectional and the bot can read the status from the CRM. In a unidirectional setup, the bot only creates orders, and a manager answers the question “where is my parcel”. This is worth clarifying before connection if clients frequently ask about delivery.