A custom CRM with AI agents inside
The CRM we use every day at FT Mercati: an assistant that carries out operations, plain-language filters, AI checks on quotes and contracts.
Case study
The program we issue our e-invoices with: AI reads orders, CIG codes and declarations of intent from the notes, and a person confirms every invoice.
In brief
This is the program the accounts department of FT Mercati and FT Support uses every month to issue e-invoices for the contracts recorded in the CRM. Artificial intelligence (AI) does just one thing, tedious and delicate: it reads the administrative notes written by people and extracts the purchase order, the CIG code and the declaration of intent. Every failed reading is counted and flagged; every invoice is ticked and confirmed by a person.
Every month the accounts department issues the invoices for the contracts in force. Many of them have to carry information that sits outside the contract: the number and date of the customer’s purchase order, the CIG code (Italy’s identification code for public contracts) for public bodies and for the companies that ask for it, the details of the declaration of intent (in Italian, dichiarazione d’intento) of customers who buy without VAT, the agreed fee increases. A missing or wrong item means a disputed invoice and a payment that slips.
This information sits in the customer’s administrative notes, in the CRM: free text, written by different people in different years, or written by the CRM itself in a canonical form when an order is confirmed. Copying it by hand into many invoices, every month, is the kind of work in which mistakes are made precisely because it is easy.
A Windows program, for internal use, that reads the contracts from the CRM, prepares the list of the month’s invoices, generates the XML file in the format of the Agenzia delle Entrate (Italy’s revenue agency) and the PDF, validates them and records invoices, invoice lines and instalments. It has three modules, for invoices from contracts, for recurring invoices on fixed terms and for free-form invoices, and all three go through the same XML generator: a single rule for the special VAT cases (split payment, reverse charge, exempt transactions), a single validation.
The language model reads each customer’s notes and returns structured fields, not text:
Fee increases, which the CRM records in a fixed form, are read by a rule, without AI.
For the declaration of intent, the number returned is compared with the digits present in the note: if the model “sees” a number that is not in the text, the reading is discarded. For the order and the CIG, the model must return “no data” when the label is missing from the note, and the person always has the original note to hand. The model is chosen from a menu, with the list kept up to date from the provider, and at start-up the program checks that it is still on offer.
It is the simplest use of AI in administration: a repetitive task, free text to be turned into fields, a check that is never skipped. It applies to orders and CIG codes, but also to order confirmations, delivery notes, customers’ emails and salespeople’s notes. The rules are those of our agents that write to the ERP (the company’s management software): the AI reads and proposes, the code verifies, the person confirms, and every missed reading is visible.
To find out more: the guide on the AI assistant on company documents and the one on how to connect an agent to the ERP. If you have an administrative step that lives on copy and paste, let’s talk.
Frequently asked questions
Because the notes are free text, written by different people in different years: "Purchase order 4521 of 3 March", "PO no. 4521/2026", the electronic receipt of the declaration of intent pasted in as it is. A fixed rule gets them wrong; a language model reads them and returns the fields in a structured format, which the program checks before using them.
The row is marked and excluded from bulk selection, with a button that shows the original note so that the data can be copied by hand; at the end of the list a warning says how many readings failed and for which customers. The program no longer leaves a field empty in silence: that is the lesson learned when a model retired by its provider was returning empty fields, identical to a note with no data.
No. The AI fills in the fields; the person ticks and confirms. Issuing each invoice is a single operation: before writing the XML, the PDF and the records, the program re-reads the customer's notes and, if they have changed, stops the row and removes the values read from the outdated note; those entered by hand stay.
Yes, if the notes or the documents can be read by the program. The real work is not the call to the model: it is deciding what to read, how to verify it, what to do when the reading fails and how to coordinate with whoever writes the notes. Those are the four things this program does.
The CRM we use every day at FT Mercati: an assistant that carries out operations, plain-language filters, AI checks on quotes and contracts.
FT News: five AI agents find, write, review, approve and translate news on metals and commodities for FT Mercati's archive.
The engine that makes FT Mercati's PDF reports: charts and tables from the databases, the model's text on the data, a guardrail that stops what is wrong.
The CRM's Trade Fairs module: from any online exhibitor list to the visit, with an AI agent that collects, screens and matches against customer records.
FT Rottami: seven ML.NET algorithms read the merchants' contributions and determine each week the changes in the prices recorded at the scrap yards.
An AI assistant that knows the whole project interviews the customer: it gathers requirements, explains the version under test, records the observations.
An AI adviser for senior management: it reasons on the organisation chart, strategic plan and company know-how, alongside FT Mercati market data.
The FT Mercati platform that changes the way commodity data is used: questions in plain language, answers with numbers, comparisons and charts.
Tell us about it in a first conversation, with no obligation: together we work out whether and where AI brings a measurable benefit, and which step to start with.