Templates / Detect scope creep in client emails with Gmail, OpenAI and Google Sheets

Detect scope creep in client emails with Gmail, OpenAI and Google Sheets

Ready for 3.0

by Samruddhi Mokal · 0 views · created 2026-10-13 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs on Gmail events. Along the way it connects Gmail, Google Docs, OpenAI Chat Model and Google Sheets and 1 more.

How it runs

Trigger: On Gmail events.

  1. Configure settings (Edit Fields (Set)): sets 6 fields: client_sow_map, sheet_id, hourly_rate…
  2. Match client SOW (Code): runs custom JavaScript code
  3. Get client SOW (Google Docs): get
  4. Check request against SOW (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
  5. Drop non-requests (Filter): keeps only the items that match a condition
  6. Prepare scope record (Code): runs custom JavaScript code
  7. Log to Scope Log (Google Sheets): append
  8. Needs attention? (If): checks a condition and branches into true / false
  9. Alert team in Slack (Slack): uses Slack
  10. Save change-order draft (Gmail): create (draft)

Services it uses

GmailGoogle DocsOpenAI Chat ModelGoogle SheetsSlack

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (New client email).

Nodes used (13)

From the author

Quick Overview This workflow monitors a Gmail inbox for client emails, looks up the client’s statement of work in Google Docs, uses OpenAI to classify requests as in-scope or scope creep, logs each request to Google Sheets, and notifies your team in Slack…

Excerpt from Samruddhi Mokal's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.