跳到正文
DEV Community· laikodev·· 1 小時前AI 評分49

為建築業打造 AI 前,先梳理承建商的後勤流程

Modelling a Builder's Back Office Before Building AI for Construction

AI 導讀

為建築業務開發 AI,應先梳理承建商後勤流程中的實體與狀態,而非先設計功能或提示詞。AI Agent 應根據業務狀態轉變執行操作,並在現有工作管理系統留下紀錄;外發操作亦須具備冪等性。安全文件及合約決定應設人手審批,來電中不確定的資料則應標記並跟進。

正文

If you are a developer asked to build AI for construction businesses, the model is rarely the hard part. The hard part is that a builder's back office is a set of loosely connected states spread across a job system, an inbox, a phone and somebody's memory. Before writing a single prompt, it is worth modelling that domain properly. Here is a practical way to do it.

Start with entities, not features

Clients describe what they want in features: 'answer my calls', 'chase my paperwork'. Translate those into entities and states first. A rough starting set for a trades or building business:

  • Contact: client, subcontractor, supplier, head contractor
  • Enquiry: an inbound request, often from a phone call, not yet a job
  • Quote: sent, viewed, accepted, declined, stale
  • Job: booked, in progress, complete, invoiced
  • Document: required, requested, received, expired (insurance, licences, SWMS, JSA, RAMS, signed variations)
  • Contract: received, reviewed, signed

Most of these already exist in the client's job management system, whether that is ServiceM8, Tradify, simPRO or Procore. Your job is to read from there and write results back, not to build a parallel database that drifts out of sync.

Agents act on state transitions

A useful mental model for an agent is something that watches for a state and moves it forward.

on enquiry.created (from call):
  capture details -> match or create contact -> log note in job system

on document.status == 'required' and age > threshold:
  request document from contact -> log request

on quote.status == 'sent' and no response > threshold:
  send follow-up -> log follow-up

This is pseudocode, not any platform's API. The point is that every action is triggered by a state the business already recognises, and every action leaves a record in the system of record.

Idempotency is not optional

Construction contacts get annoyed fast. A subcontractor who receives the same document request three times in an hour because a webhook retried will stop answering. Treat every outbound action as idempotent:

  • Key actions on entity id, action type and time window
  • Check the log before sending
  • Make retries safe by design, not by hoping they never happen

Draw the human boundary in code

Some outputs should never be final without a person. In this domain that includes safety documents and contract decisions. Model it explicitly:

if document.type in ['SWMS', 'JSA', 'RAMS']:
  agent_output.status = 'draft'
  requires_approval_by = site_supervisor

If approval is a convention rather than a constraint, someone will skip it on a busy Friday.

Calls are messy inputs

Voice is the input developers most often underestimate. Callers give partial addresses, describe problems in trade slang and change their minds mid-sentence. Design the call flow so uncertain fields are marked as uncertain and flagged for follow-up rather than guessed. A confidently wrong suburb is worse than an honest blank.

Log for the business, not just for you

Your logs help you debug. The business needs something different: a plain record, inside their job system, of what the agent did and why. A job note reading 'Followed up quote, no reply to previous follow-up' is worth more to a builder than any dashboard you could build.

Domain knowledge beats clever prompts

Much of the value comes from knowing which documents a job actually needs, which subcontract clauses tend to bite, and which tasks a builder will never trust to software. The guide AI for Construction: What Actually Works in 2026 is a useful read here, even for developers. It is written by an engineer with nine years in construction contracts and covers six workflows AI automates, estimating AI, AI consulting for builders and what stays human. That last part is effectively a spec for your approval gates.

Where laikodev sits

laikodev applies this approach commercially: AI agents for trade and construction businesses that answer calls, chase paperwork and follow up quotes 24/7, built around the job systems above. If you are building in this space yourself, the guide is a good check on whether your model matches how builders actually work.

Read it here: https://laiko.dev/ai-for-construction

來源:DEV Community · dev.to