See llms.txt for all machine-readable content.

Back to Templates

Create Davis-Bacon certified payroll and SAM.gov rate alerts with Google Sheets and Gmail

Quick overview

This workflow runs two Monday schedules to generate Davis-Bacon (WH-347) certified payroll spreadsheets from Google Sheets timesheets, validate pay against prevailing wage rates, email project files via Gmail, and separately check SAM.gov for newer wage determination revisions and email rate alerts.

How it works

  1. Runs every Monday at 5 AM and 6 AM, loading shared certified payroll settings.
  2. At 5 AM, reads the Rate Watch tab from Google Sheets and builds a list of wage determinations with the next revision number to probe.
  3. Queries SAM.gov for each wage determination revision, compiles an HTML report of new revisions or failed checks, emails the report via Gmail when there is something to report, and updates the Rate Watch tab with the latest results.
  4. At 6 AM, reads Projects, Wage Rates, Workers, Timesheets, and Payroll Totals from Google Sheets for the most recent completed workweek (or an override date).
  5. Calculates weekly overtime across all work for each worker, builds one payroll dataset per active project, and flags issues such as underpayment versus base/fringe rates, missing classifications, missing apprentice/fringe plan details, and worker IDs that look like full Social Security numbers.
  6. For each project, formats the results into WH-347-ordered rows, creates an Excel (.xlsx) file, and emails it via Gmail with a subject that indicates whether fixes are needed before signing.
  7. Writes the week-ending date and next payroll number back to the Projects tab in Google Sheets so the sequence continues on the next run.

Setup

  1. Add Google Sheets credentials and select your certified payroll spreadsheet document in all Google Sheets nodes.
  2. Add Gmail credentials for sending payroll review emails and SAM.gov rate alert emails.
  3. Create a Google Sheet with the required tabs and headers: Projects, Wage Rates, Workers, Timesheets, Payroll Totals, and Rate Watch.
  4. Update the values in the settings step (company details, email recipients, weekEndsOn, weekEndingOverride, overtime threshold, and whether to skip no-work weeks).
  5. Set the workflow time zone to match your local time so the Monday schedules and week-ending calculations align with your payroll week.