---
title: 'Build a custom AI site utility takeoff app in Piper'
url: 'https://piper-ai.com/resources/custom-ai-site-utilities-takeoff-app-piper'
description: 'Build a utility run register that separates pipe, trench and payment quantities, links each basis to project sources, and routes revisions back through review.'
contentTypes: [guide]
publishedAt: '2026-11-27T20:03:56.308Z'
author: 'Ido Gedanken, CEO'
readingTime: 12
---

# Build a custom AI site utility takeoff app in Piper

1. Build around utility runs and structure IDs, not a single network total.
2. Keep payment length, physical pipe length and trench extent separate.
3. Split depth bands using the profile rather than assigning an entire run its average depth.
4. Test missing inputs and revisions before adding the tool to company templates.

For a GC estimator checking a site utility package at 100% CDs or preparing a GMP, the first custom tool should be a **utility run register**, not a calculator that multiplies all pipe LF by one trench section. Key each run to its network and endpoint IDs. Keep the measured length, profile elevations, trench detail and payment convention together, then calculate separate quantities for pipe, excavation, bedding and backfill.

The position here is simple: **a utility app should preserve competing quantity bases before it summarizes them.** A pipe LF total is not necessarily the pipe order length, excavation extent or bid-item quantity.

Piper lets teams describe registers, workbooks and workflow automations in plain language, built on the same project documents and takeoff quantities the team uses elsewhere. The [construction app builder workflow](https://piper-ai.com/use-cases/construction-app-builder) supplies that foundation. Your team still defines the utility rules and reviews the result.

## Define the register before asking for calculations

Start with storm and sanitary runs between structures. For water, use identifiable endpoints such as valves, fittings, hydrants, service terminations and tie-ins. Give unnumbered endpoints project-specific IDs that a reviewer can find on the drawing.

Use a network prefix with the endpoint pair, such as \`SAN / MH-12 / MH-13\`. Endpoint numbers alone are not enough if different systems reuse them. Keep branches as separate runs and give structures their own register, so a manhole shared by two runs is not counted twice.

For each run, ask the tool to retain:

- Network, from-ID, to-ID, installation method and new/existing status.
- Drawing page and revision behind the takeoff measurement.
- Material, nominal diameter, class and the source for each assignment.
- Measured plan length, profile station difference and the selected length convention.
- Endpoint surface and invert elevations, intermediate profile breaks and their sources.
- Trench width basis, pipe outside diameter, bedding thickness and embedment detail.
- Depth-band subsegments, associated structures, fittings and connection scope.
- Open questions, reviewer treatment and the quantity basis permitted for the estimate.

These are proposed register fields, not built-in Piper field names. Make them specific enough that another estimator can review one run without reconstructing the whole network.

The drawing information matters as much as the calculations. The drafting notes in [UFGS 33 40 00, Stormwater Utilities](https://www.wbdg.org/FFC/DOD/UFGS/UFGS%2033%2040%2000.pdf) call for new pipe sizes, existing adjacent or connecting utilities, endpoint inverts, pipe-class limits and drainage-structure details. Those are useful inputs for this register, but the UFGS is an editable military guide specification, not a universal requirement for commercial projects.

This tool is not a utility design or trench-protection design tool. Where profiles, trench details or the scope boundary are missing, build an assumptions-and-questions register instead of a deceptively complete quantity report.

## Keep three length bases instead of choosing one too early

Make the tool distinguish **measured route length**, **physical pipe laying length** and **contract payment length**. Add a separate trench extent where it differs from those three. Do not overwrite the source measurement to obtain a downstream quantity.

The distinction is concrete in the official guides:

- UFGS 33 40 00, paragraph 1.1.1, measures storm pipe along its centerline from end to end without deductions for manhole diameter.
- [UFGS 33 11 00, Water Utility Distribution Piping](https://www.wbdg.org/FFC/DOD/UFGS/UFGS%2033%2011%2000.pdf), paragraph 1.1.1, measures water pipe center-of-fitting to center-of-fitting, with other stated endpoints for hydrants and services, and no deduction for valves or fittings.

Neither rule should silently become a pipe procurement rule or a trench-volume rule. Apply a payment convention only if the project's issued contract adopts it. For lump-sum subcontract review, retain it as a comparison basis only when relevant.

**Illustrative length fixture:** suppose a straight run measures 200 LF between structure centers. Assume the reviewed structure geometry occupies 3 feet into the run at each end. Its face-to-face extent is then 194 LF. The register should retain both figures, label their endpoints and leave procurement adjustments subject to review. If an applicable payment clause requires no structure deduction, do not replace that payment quantity with 194 LF.

The important decision is not which number looks more precise. It is which number each downstream formula is allowed to use. Otherwise, a deduction intended for pipe supply can also reduce excavation or testing quantities without anyone deliberately making that decision.

Keep ordinary measurement checks outside this app specification; the companion guide to site utility takeoff mistakes and their checks owns those checks.

## Calculate depth bands from a profile, not a run average

Name the depth basis before calculating anything. A structure depth, pipe cover and trench excavation depth are different fields.

For example, UFGS 33 40 00, paragraph 1.1.3, measures manhole and inlet depth from the top of the grating or cover to the outlet-pipe invert. That is a stated structure-payment convention. It does not establish trench depth along the connecting run.

For the app, ask for surface-to-invert depth along the pipe profile, then derive excavation-bottom depth from the reviewed pipe geometry and bedding detail. An internal invert is not automatically the bottom of the pipe's outside surface. Store outside diameter separately from nominal diameter, and identify how the reviewed section locates the outside bottom relative to the invert.

Rim-minus-invert can provide an endpoint reference at a structure. It cannot substitute for the surface profile between structures where grades change.

**Illustrative depth-band fixture:** assume a 200 LF run has a surface-to-invert depth increasing linearly from 6 feet to 10 feet. The company estimating bands are defined as less than 8 feet and 8 feet or greater. Under this simplified profile, the 8-foot crossing occurs halfway along the run, producing 100 LF in each band.

That split is an example, not a standard banding rule. If the actual profile contains a grade break, divide the run there first. If the estimate uses excavation-bottom depth rather than invert depth, calculate that basis before assigning bands. Ask the tool to retain the subsegments so a changed band definition changes the allocation, not the original measurement.

Use a reviewer-defined tolerance to flag plan length and profile station differences. First confirm that both describe the same endpoints and route. A station difference along an alignment is not an independent check on a branch measured to different endpoints. The proposed flag should show both sources and their endpoint definitions, not simply declare one wrong.

## Build a trench material balance with explicit limits

Separate installation quantities from payable quantities here as well. Ask the tool for two width fields when necessary: the width used for the construction estimate and the width permitted for contract measurement. Do not assume they match.

[UFGS 31 00 00, Earthwork](https://legacy.wbdg.org/FFC/DOD/UFGS/UFGS%2031%2000%2000.pdf), identifies pipe trench details as drawing information and treats bedding, initial backfill and final backfill separately. Its paragraph 3.6.1.3 directs the specification preparer to establish bedding type and thickness and show them on the plans. Use the project's selected detail rather than a company default disguised as a requirement.

For a rectangular estimating section, define the calculations in plain language:

- Excavation volume is trench extent multiplied by width and average excavation-bottom depth, divided by 27 for cubic yards when inputs are in feet.
- Below-pipe bedding volume is extent multiplied by bedding width and thickness, divided by 27.
- Pipe-zone material is the gross selected envelope less the pipe's outside displacement over that same extent.
- Final backfill is the remaining trench volume after the selected pipe-zone envelope and any separately accounted pavement or surface build-up.

These are geometric estimating formulas. They do not select an excavation method, establish safe slopes or determine material suitability. Keep sloped trenches, shared trenches, structure excavations and trenchless work outside the simple rectangular calculation unless the team adds reviewed logic for them.

**Illustrative volume fixture:** for a separate test run, assume a reviewed trench extent of 200 feet, rectangular width of 4 feet and average excavation-bottom depth of 8 feet. Excavation is 6,400 cubic feet, or about 237.04 CY. A 6-inch below-pipe bedding layer over the same extent and width is 400 cubic feet, or about 14.81 CY.

Do not also charge that 14.81 CY as an additional part of a pipe-zone envelope that already includes it. Require the report to show which regions overlap and which are mutually exclusive. Pipe displacement, initial backfill, final backfill, structure pits and surface restoration still need their own inputs.

Keep in-place volumes separate from purchase or haul quantities. Any waste, compaction, bulking or material-reuse assumptions should be named, supplied by the team and applied only to the relevant output. The companion site utility takeoff setup guide covers broader item and formula organization.

## Make connections and acceptance work visible without double pricing

The run register should finish at an identified endpoint with a scope disposition. An existing main is an endpoint, not a reason to make the new connection quantity disappear.

[UFGS 33 30 00, Sanitary Sewerage](https://www.wbdg.org/FFC/DOD/UFGS/UFGS%2033%2030%2000.pdf), paragraph 3.2.1, requires approval before connecting to an existing line and minimum interruption of existing service. Its post-installation inspection provision addresses inspection after connection and before burial. Where the issued project adopts those provisions, the register should link the connection to its approval and inspection scope, not merely record pipe LF.

Create companion outputs for structures by type and reviewed depth basis, cleanouts, fittings, valves, hydrants, existing-system connections and required testing or inspection. Make testing bases selectable from the contract: by run, system, structure or another stated basis. Do not derive a universal test count from pipe LF.

The water guide also illustrates why a scope item and a separate payable line are not the same thing. UFGS 33 11 00, paragraph 1.1.2, includes pipes, joints, specials and fittings in the water-line unit price, while identifying separate unit payments for hydrants, valves and valve boxes. Its payment language includes testing and incidentals. Retain those components for cost and coverage review, but map them to the applicable pay item before totaling the bid.

The tool should also retain the civil/plumbing handoff source. The water guide describes a system beginning 5 feet from buildings; the sanitary guide uses approximately 5 feet unless otherwise indicated. Those provisions do not assign subcontract ownership on every project. Resolve the actual package boundary using the [underground plumbing and site utility scope-boundary review](https://piper-ai.com/resources/plumbing-underground-scope-boundary).

## Choose the data connection before choosing the report format

A spreadsheet can perform all these calculations. The decision is whether the team wants to maintain a separate copy of the project basis or build the register on the project data.

| Decision | Spreadsheet maintained on the side | Tool built on project data in Piper |
| --- | --- | --- |
| Source inputs | Team copies quantities and maintains source and revision references | Reads project takeoff quantities, drawings, specifications and addenda |
| Construction rules | Team defines formulas, inclusions and quantity bases | Team describes the same rules and reviews the generated file |
| Revision handling | Team identifies affected rows and reconciles copied inputs | Team can request an automation when an addendum or other change arrives |
| Review evidence | Team maintains the connection between each number and its source | Numbers link back to source pages within the workspace |
| Reuse | Team manages workbook copies and project-specific changes | Reviewed tools can be added to company project templates |
| Estimating responsibility | Estimator accepts the basis and carry | Estimator accepts the basis and carry |

This is a workflow comparison, not a measured performance test. A separate workbook is reasonable for a limited check with controlled inputs. Building on project data is more compelling when the team wants the same run basis to inform quantity review, scope coverage and revision decisions. Piper's [app builder description](https://piper-ai.com/use-cases/construction-app-builder) supports project-connected registers, workbooks, automations and company templates; it does not prove this proposed utility tool has already been built or tested.

## Describe, test and reuse the utility register in Piper

Use [Piper takeoff](https://piper-ai.com/use-cases/takeoff) as the measurement input. Manual, assisted and agentic work share an editable takeoff file. Assisted tracing or similar-symbol matching proposes candidates for the estimator to inspect and correct. Agentic takeoff starts with a measurement task and produces editable measurements for review. Neither replaces the review of scale, revision, geometry and coverage.

The site utility takeoff walkthrough in Piper covers that measurement workflow; here, the task is to build the register that consumes reviewed quantities.

### Give Piper a construction specification in plain language

The following is an **example request**, not a demonstrated output or a promise that every rule will be resolved on the first attempt:

> Build a site utility run register for storm, sanitary and water. Read this project's takeoff quantities, drawings, specifications, revisions and addenda. Key gravity runs by network and from/to structure IDs. Use identifiable fitting, valve, hydrant, service and tie-in endpoints for water. Keep a separate structure register to prevent duplicate structure totals. >Retain source pages and revisions for lengths, material, diameter, class, surface and invert elevations, and trench details. Preserve measured plan length, profile station difference, physical pipe extent, trench extent and contract payment length as separate fields. Ask me to confirm each convention rather than choosing one for every output. >Calculate LF by network, material, size and reviewed depth band. Split at profile breaks and band crossings. Calculate rectangular trench excavation, below-pipe bedding, pipe-zone material and final backfill only where their inputs and limits are defined. Keep outside diameter separate from nominal diameter. Show the material balance so bedding is not counted twice. >Produce a run register, quantity summary and open-question register. Include structures, fittings, valves, hydrants, tie-ins and testing scope, with each component mapped to its pricing inclusion or separate pay item. Flag missing elevations, unresolved boundaries and plan/profile differences using a tolerance I approve. Do not convert missing information into zero. >Show the formulas and source basis for review. Ask where this request is unclear.

Piper supports describing and changing these workspace tools without coding. What is built reads the same project information, including takeoff quantities, scopes, bids and decisions, without an export-and-copy workflow. Review the resulting file as you would another workspace file.

### Request a revision automation, then inspect its treatment

After validating the first version, ask:

> When a utility-related addendum arrives, review its effect on this register. Identify affected runs, structures, details, quantity conventions and scope assignments. Prepare a change register showing prior basis, proposed basis, source pages and unresolved inputs. Identify takeoff quantities that need remeasurement. Keep unresolved rows out of the accepted summary until the reviewer resolves them.

Piper supports automations that run when something changes, including when an addendum arrives, and one step can hand off to the next. The wording above specifies the desired review treatment; verify that treatment in the built result before relying on it. A change to source information is not estimator acceptance of a revised quantity.

For the wider handoff, connect the register to the decision trail described in [how drawing revisions cascade through scope, bids and the estimate](https://piper-ai.com/resources/drawing-revisions-cascade-scope-bids-estimate).

### Test deliberately wrong inputs before templating

Review one straightforward run against the source sheets, then use the illustrative fixtures above. Add a missing invert, an unresolved existing-system connection and a revised profile with unchanged plan LF. Check whether the file exposes the missing basis and updates the affected depth allocation without obscuring the earlier decision.

Also test a fitting included in the pipe price. It should remain visible as scope without being added again to the payable total. Reject a summary that balances only because a missing input became zero.

Once the calculations, source connections and revision treatment work, add the tool to company templates. Piper supports company project templates, with tools living under the workspace's permissions and history. Template the register structure and review rules, not project-specific trench widths, depths or payment clauses. The cross-trade custom takeoff app guide covers that broader reuse decision.

The useful result is not simply a larger total. It is a run-by-run basis that the team can inspect, change and defend before carrying the utility number.

### Does this custom app replace site utility takeoff?

No. It organizes reviewed measurements and applies defined utility calculations. Piper's takeoff workflow produces editable measurements from PDF drawings through manual, assisted or agentic work. The team still reviews scale, geometry, coverage and scope before treating those quantities as accepted register inputs.

### Can the tool calculate depth bands from rim and invert elevations alone?

Only for a basis that those elevations actually support. Rim-minus-invert can establish a structure or endpoint reference, but intermediate surface and pipe-profile changes need their own inputs. Define whether the bands use invert depth, cover or excavation-bottom depth before accepting the allocation.

### Can an addendum trigger a utility register review?

Yes. Piper supports automations that run when something changes, including an addendum arriving. Ask for an affected-run review and a proposed change register, then inspect the built workflow's treatment. A revised source may require remeasurement or clarification before the estimator accepts a new quantity.

### Should the company template contain standard trench assumptions?

It can contain clearly labeled defaults, but they should require project confirmation. Preserve the register fields, calculation structure and review rules. Replace or confirm trench widths, bedding details, depth bands and pricing inclusions against the issued project documents before using the summary in an estimate.
