Making sure customer enquiries are not missed

How we repaired an automation for an Auckland property services business, so one unwanted email no longer stops real customer enquiries getting through.

Industry
Trades and field services
Client
Auckland property services business
Area
Sales and customer enquiries
Work done
Designing and repairing the email-to-customer-record automation

One unwanted email

BeforeStops the whole batch
AfterOthers carry on

Several contacts

BeforeFirst one decides
AfterEach checked alone
21automated tests of the two repaired parts
1 of 4emails in a saved batch was a real enquiry. The old version lost it; the fixed one kept it
3contacts each matched to their own result in a mixed test

The problem

Customer enquiries arrived in a shared inbox, mixed with internal messages, website form alerts, newsletters and replies. Each real enquiry had to be spotted, copied into Brevo (the customer record system), marked as “Quote Requested” and acknowledged. Doing this by hand meant someone had to keep watching and judging every email.

An automation built in a tool called n8n was already sorting emails and creating records. Two faults could hide a real enquiry or send it the wrong way. First, rejecting one unwanted email could stop the whole batch. Second, with several contacts, only the first one’s check for an open sales record could decide what happened to all of them. It worked when everything was simple. The risk was in mixed batches and in avoiding duplicate records.

How it works

New email arrives in the inbox. Fixed rules first remove known system messages, form alerts, replies and forwarded emails. AI then decides whether what is left is a real customer enquiry, and picks out contact and service details.

For a real enquiry, the automation finds or creates the contact and checks for an open sales record. If there is one, the new details are added to it. If not, it creates one marked “Quote Requested”, with “Direct Email” as the source. The customer receives a branded acknowledgement. The sales team still decides whether the lead is a fit and replies to it.

What we fixed

We repaired the part that reads the AI’s answer, so a rejected email skips only itself instead of returning nothing for the whole batch. Each accepted or failed item keeps its original place, and any backup details come from the matching email. A garbled AI answer shows up as an error instead of passing as a real enquiry.

We also changed the open-record check so every contact gets its own matching result. Won and lost sales are still ignored. For each contact, the first open record in that contact’s own results decides whether to add a note or create a new record.

We kept the change small. Only the reading and routing logic changed. Logins, AI instructions, filters, contact and sales rules, outgoing messages and the inbox position stayed as they were. We read the published version back to confirm the intended one was live.

What changed, and what is not proven

We replayed a saved batch of four emails. The old version returned nothing, even though the third email was a real enquiry. The repaired version kept that enquiry in its original place.

A second mixed test combined a contact check that returned nothing, a contact with an open record and a contact needing a new one. The old fault appeared again. The repaired version then gave three separate results, each correctly adding a note or creating a record. All 21 automated tests of the two repaired parts passed.

The repaired automation is running, but a new live run with several contacts has not yet confirmed it from start to finish. We make no claim about time saved, faster replies or extra revenue from these offline tests.