Case study · Lead agent · Services
A lead agent in n8n
It answers the customer from the price list, collects the request and passes it to a manager for approval.
The company installs and services air conditioners, and requests come in through the website chat. Now an agent answers the customer right away: quotes prices from the price list, collects the request and passes it to a manager. The lead reaches the CRM only after the manager clicks “Accept”. It is all built in n8n, so the workflow can be read and edited without a programmer.
- Platform
- n8n on the client’s server
- Channels
- website chat · Telegram
- AI model
- any OpenAI- or Anthropic-compatible model
- Checks
- 77 automated tests
- Status
- live at the client
- 77 of 77automated tests pass on a live n8n instanceCRM and model failures are simulated for real
- 3tools for the model — none of them writes to the CRMprice list, request to manager, own request status
- 12workflows, each with one job
The problem
Answer right away — and promise nothing extra
Customers ask in the chat how much an installation or a cleaning costs and when a technician can come. In the evening and at weekends they wait until morning, and go wherever answered first. A no-code bot can be put together in an evening, but in real life it breaks exactly where a mistake costs money.
- The model confidently quotes a price that isn’t in the price list.
- The CRM didn’t respond — the lead is gone, but the customer was already told “confirmed”.
- A customer talks the bot into “confirming without a manager”, and the bot agrees.
- Nobody knows what the bot did yesterday, or why.
The goal was an agent that answers the customer right away and leaves the decision on the request to a manager.
How it works
Three steps from a question to a lead in the CRM
- 01
The customer writes in the chat
Asks about prices and terms or wants to book a technician. The main channel is the website chat; Telegram plugs in as a second entry point to the same agent.
- 02
The agent answers and collects the request
Prices come from the price list; what isn’t there, it honestly leaves to the manager. It asks for what’s missing — the service, address, time and phone — reads the request back and waits for the customer’s consent.
- 03
The manager approves
The lead arrives on a page with “Accept” and “Reject” buttons. Only after “Accept” is it written to the CRM, and the customer gets a confirmation and a status link.
What it does
What sets it apart from an evening build
- 01
Doesn’t make up prices
The price tool tells the model what isn’t in the list. After the model, a plain-code check reviews the answer: a price that’s neither in the list nor in the customer’s message is replaced with an honest “the manager will confirm the price”.
- 02
Checks the data itself
Phone numbers are normalised and an address without a house number is rejected. A repeated call doesn’t create a second request — it returns the number of the first one.
- 03
A decision happens exactly once
A double click, a second manager or “Reject” after “Accept” change nothing, and the CRM record is never duplicated.
- 04
Reports the status
The customer asks in the chat or opens the page from the link and sees the status of their request. The agent can’t see anyone else’s requests, even by number.
- 05
The model is swapped in one place
Any OpenAI- or Anthropic-compatible model works, on the company’s own key. When the model changes, the checks and logic stay the same.
Trust
Why the agent can be trusted with leads
- The agent doesn’t write to the CRM. The model has three tools: read the price list, pass a request to the manager and check the status of its own request. It physically can’t create a deal, even if someone talks it into it.
- Customer text is data, not commands. The customer’s message reaches the model in a separate wrapper that can’t be “closed” from inside. Even a deceived model can’t write a lead to the CRM or see other people’s requests — that’s how the tools are built.
- A model failure doesn’t lose the customer. No key, a timeout, a rate limit — the customer gets a polite reply, the message is saved to the log and the manager gets an alert.
- A CRM failure doesn’t lose the lead. The manager’s decision is saved, the lead waits in a queue and is retried every minute. The customer gets a confirmation only after the CRM write has actually gone through.
- Everything is logged. Every tool call, every manager decision, every failure and every replaced model answer. You can see what the agent did yesterday and why.
By the numbers
What has been tested
- 77 of 77automated tests pass on a live n8n instance68 without the model, 9 for the agent-to-tools link on a stub model
- 12n8n workflowsentry, core, tools, manager, log, retry, error handler
- 3tools for the modelnone of them writes to the CRM
- 3n8n traps where a no-code tool silently loses datafound during development, confirmed by automated tests and fixed
- 1 minretry interval if the CRM rejects a leadthe manager is alerted on the third failure
- 1 commandsets everything up from scratchcontainer, tables, price list, workflows
What we found
Where a no-code tool silently loses data
Three traps in n8n itself, found during development. A test run doesn’t show them: everything works until something breaks. That’s why the automated tests break the storage for real — they rename a table column instead of setting a “failure” flag in code.
The table node silently swallows write errors
With “continue on error” on, a storage failure goes out of the “success” output. In the first version the CRM rejected the write, yet the customer was told “confirmed” — now every important write is followed by a check that the row really exists.
Looking up a table by name matches a substring
A table called “crm_backup” would have captured writes meant for “crm”. The setup pins the exact table IDs.
A wrong data type crashes a sub-workflow
With “continue on error” on, it happens silently. Only an automated test catches it.
Status
What the company got
The agent runs at the client, on the client’s own server: it answers in the website chat from the price list, collects the request and passes it to a manager for approval.
Done
- An instant answer at any time of day: in the evening and at weekends customers get a reply from the price list and leave a request without waiting for the morning
- The request reaches the manager fully collected — service, address, time, phone — and the decision takes one click
- A model or CRM failure loses neither the customer nor the request: everything is logged and the manager gets an alert
- One-command setup on the client’s server; the model is swapped in a single node while the checks and logic stay
We don't disclose client names: every case study is described by industry only.
More case studies
All case studies-
Content agentAward manufacturer
Content agent for a product catalog
Prepares photos of new products for the catalog the way the designer does: a square crop around the item, a clean background, the logo and recipients’ names swapped for placeholders. In the trial, 24 of 25 shots matched the designer’s work by 70% or more.
24 of 25shots matched the designer’s work by 70% or more25 of 25with the whole item in the agent’s frame3 of 3people’s names on awards found and replaced by the agent
TrialRead more
-
Aurora · AI finance agentAward manufacturer
AI finance agent for a manufacturing company
Aurora works in the company’s books every day. In 10 days we launched three channels, 14 skills and 50 accounting tools. It takes 15 seconds from an employee’s message to a ready-to-approve edit.
84%transaction categorization accuracy15 secondsfrom a chat message to a ready edit≈ $8,000duplicated deposit found in week one
Live at the clientRead more
Tell us what work to hand over to an agent
In 30 minutes we'll review your process and send you a plan with a price. We work under a contract and NDA.