Contract generated from the form

Submitting the details form renders the builder's contract template with the customer, project and estimate facts substituted, and freezes the result.

What it is

A server step that loads the tenant's active contract template, builds a substitution context from customer, builder, project and estimate data, renders the body, extracts which sections require initials, and writes a contracts row with the rendered body frozen on it. It also mirrors the form fields back onto the contact record so future invoices and contracts use the latest legal information.

Also called: auto contract · build the agreement automatically · contract template tokens

See it
Contract generated from the form
Prepared for
Gideon Alt
1140 Ridge Line Rd · Fair Play
Shell package$36,530
Concrete & site$10,606
Doors & windows$7,070
Trim & finish$4,714
Total
$58,920
Signature
Split: the submitted form on the left, the rendered agreement with the customer's details in place on the right. src/app/api/client-portal/submit-form/route.ts. Sample data — no customer information appears here.
How it works
  1. 1The active template for the tenant is looked up, falling back to the default body
  2. 2buildContractContext assembles the substitution values including payment schedule lines
  3. 3extractRequiredSections freezes the list of clauses that must be initialed
  4. 4The rendered body, required sections and contract id are stored and stamped on the link
  5. 5Stage automation, attention automations and builder notifications fire
Why we built it

Between a signed estimate and a signed contract sat a builder rewriting a template by hand — retyping names, addresses and figures that were already on file, and getting one wrong often enough to matter. Submitting the details form generates the agreement from the builder's own template with every value filled in, ready for the customer to sign and the builder to counter-sign. The finished wording is frozen onto the record at that moment, so editing the template later can never change what somebody has already signed.

The problem
  • Manual contract drafting per job
  • Template edits retroactively altering signed agreements
  • Contract figures drifting from the approved estimate
Sound familiar?
What you get
A ready-to-sign agreement seconds after the form is submitted
Signed contracts are immutable records of what was agreed
Contract figures come from the approved estimate, not retyping

See it on your own jobs

Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.

or keep browsing features →