Case study · Business systems & CRM

Connecting the ERP to the CRM

Ten years of Alifood's customer history sat in an invoicing system the sales team couldn't use. I specified the link to the Brevo CRM, cleaned the data first and built the automations that now flag customers going quiet.

Company
Alifood S.r.l., Genoa
Role
Business analyst, product owner and CRM admin
Period
Feb 2026 – now
Systems
Mago4 ERP, Brevo CRM, Python
1,750+Client and supplier records analysed before design
V1Destructive connector design caught before it shipped
LiveTiering and alerts in daily use by the sales team

One handwritten page to start from

Every client, supplier and invoice lived in Mago4, Alifood's ERP. It records transactions well and tells the sales team nothing about which accounts are drifting away. The requirements for connecting it to Brevo were one handwritten page in Italian. There was no off-the-shelf connector and no in-house engineering team.

An external developer built the connector from the specifications I wrote. I set up Brevo, built the automations and checked his output against both systems.

Cleaning the data first

I audited every client record before anything moved. Missing emails went to the salesperson who knew the account, as a short list they could work through from their inbox. The business decided which records had no commercial future, and those were archived. Only data someone would act on went to the CRM.

Deciding who owns each field

Key decision

Every Brevo field has exactly one owner. Mago4 pushes facts such as revenue and last order date. Brevo keeps judgements such as a client's tier and pipeline stage, and the sync never touches them.

Field ownership: Mago4 pushes eight company fields and seven contact fields into Brevo through the connector, matched by ID and updated in place. Brevo owns the tier, last scored date, pipeline stage, main contact and client category, which the sync never writes. Automations in Brevo write the tier and send alerts to a central inbox. Mago4 owns Brevo owns Mago4 ERP Company name and type Country and city Last order date 12-month revenue Contact name, email, phone, language 15 FIELDS PUSHED Connector MATCH AND UPDATE Brevo CRM Client tier Last scored date Pipeline stage Main contact Client category NEVER SYNCED Brevo automations Score tiers, alert a central inbox
IllustrativeThe ownership rule at the heart of the integration. Field names are simplified and no client data is shown.

That rule caught a serious problem before go-live. Reviewing the first connector design, I found that every sync would delete and recreate each Brevo record, wiping every tier and campaign history on each run. The design moved to updating records in place.

Later, some clients never appeared in Brevo. I reconciled the two systems record by record and found the cause: several companies shared one email address, and Brevo kept only one of them. The connector now matches on stable IDs.

Telling sales who to call

I worked out a tiering rule with the sales manager and built it as a Brevo automation. Clients are banded by twelve-month revenue, and any account silent for too long becomes Dormant, whatever it bought before. Further automations alert a shared inbox when a client starts going quiet. When I compared the tiers with the manager's own judgement of a sample of clients, they agreed closely.

To get the team using it, I designed the pipeline stages and task framework and wrote a staff manual with annotated screenshots, a quick card and an Italian edition.

Looking back

I'd agree with the developer how both companies and individual contacts are identified before any connector code is written. My specification covered companies well and contacts less, and that gap showed up as missing clients in production. I'd also check the live systems against the specification on a schedule from day one.

New trade fair prospects now reach the same Brevo through the AI lead scanner I built afterwards, marked as prospects so the client tiering leaves them out.

← BackAll selected work Next case →Getting trade fair leads into the CRM