APC Engineering is an authorized distributor of Petro-Canada Lubricants in Mexico, based in Nuevo León. It sells hydraulic fluids, greases, engine and turbine oils to plants, fleets, mines and food producers. A sale there starts with a technical question and ends with a quote and an invoice.
I built the platform that carries that path, from April to November 2026: the public site, the quote form, the team's CRM, the client portal, a technical assistant and an MCP server, all in one application. In November I handed it over, and the team now changes it with its own AI agent. The figures here come from Search Console, from the request records and from the code. Where nothing was measured, I say so at the end.
One application in place of a site, a spreadsheet and an inbox
In May the published site was static, and its sitemap listed eleven pages. The price list and the exchange rate lived in a spreadsheet.
The first version of the CRM ran on Airtable, because it could be working in days. Between August and September it moved to a Postgres database, one piece at a time: price tiers first, then the client portal and invoicing, then the catalog.
What exists now is a single Next.js application. A visitor, a salesperson and an assistant all reach the same records through different doors.
A request becomes a quote, and an accepted quote becomes an invoice draft

A buyer fills in the quote form in a few steps. The request lands in the CRM as an opportunity and the team gets a notice.
The salesperson builds a pre-quote and then the quote, with the price tier of that account, in pesos or in dollars. The quote goes out by email as a PDF with a link to the client portal. A corrected quote keeps its number, so the client never holds two documents that claim to be the same one.
In the portal the client accepts or rejects. On acceptance they leave their billing details and upload their tax certificate. The CRM then prepares the invoice lines for CFDI 4.0, with the tax authority's catalog codes, and exports the package for the accountant.
The platform does not stamp the invoice. The accountant does, and the team records the fiscal folio. The boundary is deliberate: the platform prepares, and the person accountable for the invoice issues it.
The technical assistant answers from the data sheets and cites them

A button on every page opens a technical assistant. It answers questions about viscosity, grades, approvals and brand equivalences, and sends the visitor to the quote form when the question turns to price.
It has no vector store. Retrieval is lexical, over three sources that already lived in the repository: the catalog, the full text of the product data sheets cut into passages, and the guides. Data-sheet passages are limited to the products the first search already chose, because an open match once let a question about steel cable bring back gear oils for steel mills.
Each answer lists the sources it used. Without a model key the route still returns the retrieved sources, so a failure of the provider degrades the assistant and does not break it.
The team's assistants work the CRM through an MCP server
The CRM is also an MCP server. A person connects Codex, ChatGPT or Claude with their own sign-in or a personal key, and the assistant acts as that person: it searches accounts, contacts, products and equivalences, reads an opportunity, creates one, adds a note, produces the quote PDF.
What the server did not cover went through a shared desk between agents. The team's agent wrote a request, mine did the work and reported with evidence, and theirs checked the result in the CRM before closing it. The first request closed the day the desk opened.
Written for a buyer who asks Google, and for one who asks an assistant
The site grew around the questions buyers type. It has 52 guides, pages for nine cities and regions, nine industries and five brand-equivalence pages. Product pages are built from the catalog in the database, so a product the team adds in the CRM becomes a page on the next deploy.
The same content is served for machines: llms.txt lists 47 products with their grades and pages, and a second file carries the full reference. Technical data sheets live on a documentation site of their own.
In November, Search Console counted 180 pages in the sitemap.
The handover: their agent, their pull requests, their account
For seven months nearly every change was mine. By the end of November the hosting, the database and the sign-in service were in the client's own account, and the team's first changes had gone out by pull request.
The repository carries a contract for their agent and an operations manual of twelve chapters. Every change is a branch and a pull request. Each one runs type checks, lint and thirteen test suites that need no secrets, and gets a preview with its own copy of the database. A change to the database is applied by the build, first on the preview and then in production.
Their agent merges only when a person asks for it by pull request number, and only if the checks are green.
Review still mattered. An early change from the team added stock control, and as written it would have stopped every invoice, because no product had a stock count yet. I found it with a query against production data inside a transaction that was rolled back. The version that shipped never blocks an invoice: it deducts what it can and records what was asked.
The numbers in one place
| Measure | Before | After |
|---|---|---|
| Pages in the sitemap | 11 (May) | 180 (November) |
| Search clicks in 28 days | 2 (to May 31) | 110 (to November 10) |
| Search impressions in 28 days | 85 (to May 31) | 5,870 (to November 10) |
| Queries with an impression in 28 days | not recorded | 296 |
| Impressions in Google's generative AI features | not recorded | 779 |
| Requests from the quote form in 30 days | 0 (to July 3) | 17, from 14 companies (to August 2) |
| Where the CRM, the catalog and the prices live | Airtable and a spreadsheet | one Postgres database |
| Who changes the system | I did | the team, by pull request with its own agent |
The May figures came from the Search Console API and the November ones were read on screen, from two types of property. They show the order of magnitude, not an exact ratio. The request count excludes test submissions.
What is not proven yet
I never recorded speed. There is no Lighthouse score and no field data for the site, before or after.
There is no measure of how long a quote takes now against before, and none of what the platform earned. The team has opinions on both, and an opinion is not a number.
The 17 requests are not tied to a channel. The form did not yet record where each visitor came from, so I cannot say how many came from search.
What it adds up to
A distributor that quoted from a spreadsheet now has one system for the whole path: the question, the request, the quote, the acceptance and the invoice draft.
The assistant on the site and the assistants of the team read the same records.
The team changes the system itself, with an agent, inside rules that are written down and checked on every change.
A change no longer needs me to ship. That was the deliverable.
APC is in Nuevo León, close to Monterrey, where I live and work. What companies in the city tend to need from an AI engineer, and how to start, is on the page for Monterrey (en español). This case study is also available in Spanish.

