Skip to main content

Triage construction incidents with GPT-4o, Slack, Gmail and Google Sheets

Workflow preview

Workflow preview
100%
Triage construction incidents with GPT-4o, Slack, Gmail and Google Sheets preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow ingests construction incident webhooks, normalizes the payload, and uses OpenAI GPT 4o mini to classify each incident by type and urgency, then routes alerts to Slack a...

Best for

  • Ticket Management automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.switch, n8n-nodes-base.slack, n8n-nodes-base.gmail, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rahul Joshi.

Original n8n.io source

1.1 Workflow description

Title
Triage construction incidents with GPT-4o, Slack, Gmail and Google Sheets
Workflow name
Triage construction incidents with GPT-4o, Slack, Gmail and Google Sheets

Quick Overview

This workflow ingests construction incident webhooks, normalizes the payload, and uses OpenAI GPT-4o-mini to classify each incident by type and urgency, then routes alerts to Slack and Gmail and logs incidents to Google Sheets, with a daily Slack digest generated from the sheet.

How it works

  1. Receives an incoming incident via a POST webhook.
  2. Normalizes the incoming Procore/Fieldwire-style payload into a consistent incident object (ID, title, description, location, reporter, assignee, and timestamps).
  3. Sends the incident details to OpenAI (GPT-4o-mini) to classify issue type and urgency and generate a short summary, recommended action, and tags.
  4. Routes incidents by urgency, sending Critical incidents to Slack with an @channel mention and emailing details to a project manager via Gmail.
  5. Sends High-urgency incidents to Slack as a formatted notice.
  6. Appends every incident to a Google Sheets log with status set to open.
  7. Runs daily at 18:00 server time, reads the incident log from Google Sheets, builds an urgency-grouped digest, and posts it to a Slack channel.

Setup

  1. Add credentials for OpenAI, Slack (OAuth2), Gmail (OAuth2), and Google Sheets (OAuth2).
  2. Copy the webhook URL from the Webhook trigger and register it in your source system (for example, Procore or Fieldwire) as the incident-created endpoint.
  3. Replace the placeholder Slack channel IDs for Critical, High, Digest, and Error alerts.
  4. Update the Gmail recipient address ([email protected]) to your real project manager email.
  5. Set the Google Sheets spreadsheet (document ID) and ensure the target sheet exists with columns that match the incident log fields used by the workflow.
  6. Confirm the schedule trigger time (cron: 0 18 * * *) matches your desired timezone/server time for the daily digest.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Overview: Construction Incident Bridge

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Section: Intake & Normalisation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section: AI Classification

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section: Urgency Router

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Section: Critical Notifications

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Section: Logging & Standard Alerts

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Section: Daily Digest

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Section: Credentials & Security

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Webhook – Incoming Incident

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 1

Block 10 - Normalise Payload

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - GPT-4o – Classify Incident

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1

Block 12 - Merge Classification

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Switch – Route by Urgency

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3

Block 14 - Slack – Critical @channel Alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 15 - Gmail – Critical Email to PM

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 16 - Slack – High Priority Notice

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 17 - Google Sheets – Log Incident

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.4

Block 18 - Schedule – 6 PM Daily Digest

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 19 - Sheets – Fetch Open Incidents

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.4

Block 20 - Slack – Send Daily Digest

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 21 - Build Digest Message1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 22 - Section: Error Handler

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Slack – Send Error Alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 24 - On Workflow Error

Type / Role
n8n-nodes-base.errorTrigger - errorTrigger
Config choices
Version 1

3. Summary Table

Workflow Triage construction incidents with GPT-4o, Slack, Gmail and Google Sheets
Complexity advanced
Nodes 24
Categories Ticket Management, AI Summarization
Author Rahul Joshi
Published 15 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16378/16378.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Triage construction incidents with GPT-4o, Slack, Gmail and Google Sheets do?

Quick Overview This workflow ingests construction incident webhooks, normalizes the payload, and uses OpenAI GPT 4o mini to classify each incident by type and urgency, then routes alerts to Slack a...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, AI Summarization use case.