All articles
Integrations
CRM and integrations9 min

VoIP and AI: How a Call Recording Becomes a Transcript and a Completed CRM Record

The call ends, your sales rep picks up the next line, and the CRM record shows nothing more than "call, 6 minutes". What was agreed sits in one person's head, and if that person is off sick or leaves, someone has to replay the whole recording. Connecting your phone system, speech recognition and CRM closes that gap: shortly after each call, the record holds a summary, updated fields and a follow-up task. This guide covers the technical side of that connection: what to check in your PBX first, how to attach a call to the right deal, what AI may write on its own, and how the system should behave when something fails.

We are not covering how to assess reps here. Scoring criteria and metrics are in our guide to AI sales call analysis. This article is about getting data into the CRM reliably.

Start with the record you want to see

Before choosing any service, open a real deal and decide what your team should see a few minutes after a conversation. Five elements usually cover it:

  • a three-to-five-line summary of what the customer wants and what was agreed;
  • the fields reps tend to skip, such as product, volume and city;
  • a dated task for the next step;
  • open questions;
  • a link to the recording and the full transcript, so any conclusion can be verified.

If nobody uses a field, don't fill it with AI either. Each extra field is one more place for errors to land.

The path from PBX to CRM

There is rarely a direct "AI connection" to your phone system. A separate handler sits between the PBX and the CRM and works through six steps.

StepWhat the system doesWhat stays with people
EventReceives a call-ended signal with number, direction, duration and employeeDecide which lines to connect
FilterDrops internal, unanswered and very short callsSet the duration threshold and exceptions
RecordingFetches the file and keeps it in temporary storageAgree the retention period
TranscriptionConverts speech to text and separates the speakersChoose a service by testing on your own calls
ExtractionThe model receives the text, call date and field list, and returns data in a fixed structureDefine fields and allowed values
CRM writeFinds the deal and writes the note, fields and taskReview the task and correct mistakes

Always pass the call date and time zone to the model. Otherwise "call me on Friday" becomes an arbitrary date. If a date is ambiguous, the right behaviour is to leave the field empty and raise the question in the note.

What to check in your telephony first

What your PBX can and can't do shapes the rest of the design, so go through this list with your PBX provider:

  1. Events. Can the PBX push a notification when a call ends? If not, you will have to poll the call log on a schedule, and records will update with a delay.
  2. Recording access. Is every call recorded, can you fetch the file through an API, and how long does a link stay valid? Recordings are often not ready the moment a call ends, so the handler must be able to wait.
  3. Two channels. When customer and employee are on separate tracks, speech recognition identifies who said what far more reliably. Asterisk recordings are often mono by default, and separate tracks are enabled through MixMonitor options such as D. Edits to configuration generated by FreePBX can be overwritten during updates, so plan for that.
  4. Who spoke. Does the event carry the employee's extension or only the shared line? Without it, the task goes to the wrong person.
  5. Transfers. What happens when a call moves to a colleague: one recording or two, one ID or several?
  6. Mobiles. Calls from personal numbers never reach the PBX. You need work lines or an app that routes through it.

Linking a call to a deal: amoCRM (Kommo) and Bitrix24

This is where connections fail quietly. Everything appears to work, but the recording lands on the wrong record.

amoCRM (Kommo). Calls are added with POST /api/v4/calls, and the request body is always an array. The system looks for a contact or company using the last 10 digits of the number. The Kommo documentation then sets these rules:

  • one active lead: the call goes to that lead;
  • several active leads or none: the call goes to the contact or company;
  • no contact with that number: the call is not added at all.

Three practical points follow. For a new number, the handler must create the contact first, ideally only after filtering, or your database fills with spam and wrong numbers. With several open leads, the AI should not guess: put the summary on the contact and give the rep a task to choose the lead. And number formats matter: an Uzbek number stored without its country code has only nine digits, so it may not match. Normalise your database to the full +998 format, and test it with real calls. The way an agent handles leads and stages is covered in our article on amoCRM and AI.

Bitrix24. The sequence differs: telephony.externalCall.register creates the call and returns its ID, finish closes it, and attachRecord adds the recording. The method documentation sets some conditions: only wav and mp3 are accepted, local network URLs are blocked, and calling it again replaces the existing recording. If your PBX runs on an internal network, send the file itself instead of a link.

What AI writes alone, and what it doesn't

Here is an illustrative exchange with a packaging supplier. The conversation is invented.

Customer: We need boxes for our bakery, about two thousand a month.

Rep: Do you know the size yet?

Customer: Not yet, our production lead will confirm on Thursday.

Rep: Then I'll call you on Friday morning with some options.

That produces a note: "Boxes for a bakery, about two thousand a month, size to be confirmed". It also produces a task: "Call the customer", Friday morning, assigned to the rep on the call. The deal value stays empty because nobody stated it. The general rules look like this:

ElementRule
Summary noteAlways written, marked "AI draft", with a link to the recording
TaskCreated only when both an action and a deadline were stated
Product, volume, cityFilled only if empty; anything a person entered is never overwritten
Deal value and budgetMentioned in the note only, since a misheard number is costly here
Pipeline stageNot changed automatically; the AI may suggest a move
Closing or losing a dealPeople only

Numbers, names and addresses are the riskiest parts of any transcript, especially when speakers switch between languages mid-sentence. Our piece on Uzbek voice messages explains how to test recognition on your own material.

Failures to plan for

What happensHow the system should respond
The PBX sends the event twiceStore the call ID and skip repeats, or you get two tasks
The recording isn't readyRetry with pauses and a time limit, then alert the owner
Speech recognition is downQueue the call rather than losing it
The transcript is empty or garbledDon't pass it to the model; flag the record for listening
The model returns the wrong structureValidate against the schema; on failure, write only the summary
The CRM rejects the writeKeep the result, read the reason and retry; a batch can be partly accepted

Keep a simple log with the status of every call and compare two numbers daily: calls through the PBX and calls that reached the CRM. Without that check, you notice losses only when someone can't find a conversation.

Recordings and personal data

If you operate in Uzbekistan, note that the 2026 amendments keep mandatory in-country storage for biometric data and for data about users of telecom operators. Our guide to Uzbekistan's personal data law has more detail. This is not legal advice: ask a lawyer how to notify customers about recording and whether audio may go to a foreign recognition service. In the UK or the Gulf, local rules apply and need their own review. A simpler design helps everywhere: delete the audio after a set period, keep only the fields you need, and mask passport and card details before anything reaches the CRM.

FAQ

Do we need to replace our phone system?

Not necessarily. The minimum is call recording with programmatic access to the files. If your PBX offers that, keep it and test the checklist above on one line.

How quickly does the record update?

It depends on when the PBX releases the recording and how long the call was. For post-call tasks, a few minutes is usually enough. Live prompts during a call are a different architecture and a separate project.

Does the rep still need to do anything?

Yes. They review the summary and task and correct mistakes. That takes less time than writing from scratch, but the record remains their responsibility.

Can we start with one line?

Yes, and it is the better route: one line, one pipeline, three or four fields. Once the log shows calls reliably reaching the CRM, add the rest. More connection patterns are in our integrations section, and our approach is on the AI agents page.

What does it cost?

That depends on call volume, languages, your PBX and your CRM. A first conversation is the way to work it out.

Subscribe to AI Insights

Case studies, tips and AI automation trends — weekly

Want similar results?

Get a free consultation and ROI calculation for your company

Free Consultation

Related Articles

Integrations

Electronic Document Exchange and AI: How an Agent Drafts Invoices and Delivery Notes, Checks Them Against the Order, and Only Then Sends Them to a Counterparty

Accountants cross-check invoices, acts and delivery notes by hand before sending them through an EDI system. Here is what an AI agent can take over, and what it cannot.

Integrations

Instagram API Limits in 2026: What a DM Bot Can and Cannot Do, and How to Plan Around It

A map of what the official Instagram API allows a bot to do: when you may message a customer, why long replies fail, and what to check before going live.

Integrations

Telegram Mini Apps for Business: Catalog, Booking and Payments Inside the Messenger

What a Telegram Mini App does better than a chat bot, how to connect it to your stock, calendar and an AI agent, and what to test before launch.

Integrations

Telegram Business: How to Connect a Bot to Your Company's Personal Account So It Replies to Customers in Your Name

Customers message your manager directly, not your bot. Here is how Telegram Business lets a bot answer from a personal account, what it can and cannot do, and how to keep it from embarrassing you.

Integrations

Legacy CRM Without an API: How to Connect AI When There Is No Integration

Your in-house or ageing CRM will not share data with anything. Here are five workarounds, where each one breaks, and how to pick the safe one for your system.

Integrations

Shared inbox triage: how AI reads incoming email and routes it to the right person

A shared info@ inbox is where leads and complaints get lost. Here is how AI reads each email, sets topic and urgency, and hands it to the right owner.

VoIP and AI: Call Transcription and CRM Records | UNIKA