Quick overview
This workflow uses OpenAI, Google Sheets, and Gmail to convert field progress notes into schedule-of-values updates, draft monthly pay applications with retainage, and provide a review/approval web page for owners and clients, including automated reminders and retainage release requests.
How it works
- Receives a field progress update via an n8n form, or serves/handles requests for a pay-application web page via webhooks, or runs every morning on a schedule to perform billing checks.
- Loads workflow settings and reads the Projects, Schedule of values, and Pay apps tabs from Google Sheets to find the relevant project and current billing state.
- When a progress note is submitted, OpenAI extracts suggested updated percent-complete values for schedule-of-values lines, then the workflow applies guardrails (no decreases, max 100%, flags large jumps), updates Google Sheets, and emails the owner a summary.
- When the daily check runs, it drafts new pay applications (and retainage-release applications for completed projects) from Google Sheets data, saves them to the Pay apps tab, updates project billing metadata, and emails the owner review links.
- When an owner or client opens a pay-application link, the workflow renders an HTML page showing line items, retainage calculations, and current amount due without changing any records.
- When a button is pressed on the page, it updates the pay application and related Google Sheets rows (send/cancel/mark paid/approve/dispute as applicable) and sends the corresponding Gmail notifications to the client and/or owner.
- As part of the daily check, it sends past-due reminders to clients (and copies the owner) and nudges the owner about drafts left in review.
Setup
- Add credentials for OpenAI, Google Sheets, and Gmail in n8n.
- Run the one-time “Create my spreadsheet” path to generate the Google Sheets workbook, then paste the returned spreadsheet ID into the workflow settings.
- Fill in the workflow settings for owner email, your n8n base URL (used to build webhook links), timezone, retainage percentage defaults, and reminder terms.
- Replace the example rows in the Projects and Schedule of values tabs with your real projects, including client emails, billing day, retainage %, and schedule-of-values line items.
- Publish and share the form/webhook URLs (progress form and pay-app page/action endpoints) as needed so the field team and recipients can submit updates and review pay applications.