Templates / File water well completion permits with OpenAI, state APIs, Google Drive and Gmail

File water well completion permits with OpenAI, state APIs, Google Drive and Gmail

Needs changes

by Swapnil Mandloi ✓ · 1 views · created 2026-10-14 · Document Extraction, AI RAG

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: HTTP Request Tool (legacy), AI Agent v1 (old agent modes). 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 18 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects HTTP Request, OpenAI Chat Model, Google Drive and Gmail. It also calls state-water-board.example.gov over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Normalize Completion Report (Edit Fields (Set)): sets or maps fields
  2. Research State Grouting Requirements (AI Agent): runs an AI agent, with model: Agent Model; 1 tool (State Grout Minimum Lookup Tool)
  3. Check Grouting & Setback Compliance (Code): runs custom JavaScript code
  4. License Valid & Setbacks Met? (If): checks a condition and branches into true / false
  5. 48-Hour Grout Cure Confirmation Hold (Wait): waits 48 hours
  6. Tag Non-Compliant (Edit Fields (Set)): sets or maps fields
  7. Fetch Post-Cure Inspection Reading (HTTP Request): calls an HTTP API (GET)
  8. Shape Filing Record (Edit Fields (Set)): sets or maps fields
  9. Verify Post-Cure Grout Level (Code): runs custom JavaScript code
  10. File Completion Report with State Portal (HTTP Request): calls state-water-board.example.gov (POST)

…plus 5 more steps. See the full node list below.

Services it uses

HTTP RequestOpenAI Chat ModelGoogle DriveGmail

HTTP calls to: state-water-board.example.gov

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • HTTP Request Tool (legacy) in State Grout Minimum Lookup Tool: replace with HTTP Request node connected to the AI Agent's Tool input.
  • AI Agent v1 (old agent modes) in Research State Grouting Requirements (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
HTTP Request Tool (legacy)
State Grout Minimum Lookup Tool
HTTP Request node connected to the AI Agent's Tool input
AI Agent v1 (old agent modes)
Research State Grouting Requirements (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (11)

From the author

Quick overview This workflow automates regulatory well compliance by integrating data ingestion, AI-driven validation, and state filing. It uses an OpenAI agent to check Water Board APIs, validates construction measurements, manages the 48-hour cure delay,…

Excerpt from Swapnil Mandloi'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.