XISLABS

Case study · Construction · Proposal mirror and AI document builder

Proposal Mirror: every closed deal's proposal pulled out of a tool with no export, automatically

A US commercial construction contractor kept every proposal in a third-party document tool that had no export. Staff pulled each one out by hand when a deal closed. We built a mirror that copies every proposal into the company's own storage and billing tracker, then an AI agent that builds new proposals from reference material.

Document toolWorkspaceWorkspaceWorkspaceNo exportDeal closesFixedEditableCompany storageBilling trackerOn deal close, or on demand from the console
Illustration
Client
A US commercial construction contractor
Engagement
Three months
What we built
A proposal mirror, an admin console and an AI document builder
Stack
Python, FastAPI, PostgreSQL, React and TypeScript
Status
Live in production across two hosting platforms
  • 914commits across four repositories
  • 163test files: 90 backend, 73 frontend
  • 4repositories in production

The problem

Every opportunity in the pipeline linked to a proposal held in a third-party document tool. When a deal closed, a billing record was created further down the line. It needed the actual proposal, so it could be read automatically and turned into line items.

The document tool had no export for this. Proposals were pulled out by hand, one at a time, on every closed deal. That manual step sat right inside the revenue process.

What we built

A mirror of every proposal.

The system walks every workspace in the document tool and retrieves each proposal in both formats: fixed and editable. It copies them into the company's own storage and billing tracker.

On deal close, or on demand.

The mirror runs by itself when a deal closes. An admin can also run it from a console and watch the log live.

A document-builder agent.

A second phase added generation. The agent assembles new proposals from reference material and brand tokens, so nobody copies an old one. It reads images attached to a request, within set limits on size and count.

Output checked against a schema.

The agent returns structured proposal data, validated against a schema. When the model returns something malformed, it is retried and repaired, not shown as an error. Build jobs queue in the database and a background worker drains them, so a slow build never blocks the interface.

We also built OuterDocs for the same contractor.

From a closed deal to line items

5 steps. Use the arrows to go through them.

How the AI is kept in check

  • Images within limits. Attached images are accepted only within set bounds on size and count.
  • Output must match a schema. Proposal data is validated before it is used.
  • Bad output is repaired. A malformed reply triggers an automatic repair retry.

Results

MeasureResult
Code914 commits across four repositories over three months
In productionLive across two hosting platforms
Tests163 test files, 90 backend and 73 frontend. CI runs lint, format, browser tests and build on every change
MirroringProposals in fixed and editable formats, on deal close and on demand
GenerationValidated against a schema, with an automatic repair retry for malformed output

Every figure is taken from the delivered system. There is no client-verified business outcome, so we report what was built and measured.

Under the hood: stack and engineering notes

Stack: Python, FastAPI, PostgreSQL, SQLAlchemy and Alembic on the back end. React, TypeScript and Vite on the front end. A multimodal model for generation.

Background work: build jobs queue in the database and a background worker drains them.

Licences: the PDF library was chosen to avoid copyleft obligations on server-side use. Dependency licences were treated as a design constraint from the start.

Is someone copying documents out of a tool by hand?

Tell us which tool holds your documents and where they need to go on a 30-minute call. You leave with a plan and a cost, in writing.

Book a discovery call