Templates / Automate legal lien documents with Gemini AI, Apify, and Google Workspace

Automate legal lien documents with Gemini AI, Apify, and Google Workspace

Ready for 3.0

by Dina Lev · 679 views · created 2025-07-08 · Document Extraction, 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 22 nodes and runs on Google Sheets events (row added) (plus 1 other trigger). Along the way it connects Gmail, Google Gemini Chat Model, Google Drive and Google Docs and 1 more. It also calls api.apify.com over HTTP.

How it runs

Trigger: On Google Sheets events (row added) (plus 1 other trigger).

  1. Apify Playwright script to find property info (HTTP Request): calls api.apify.com (POST)
  2. If: checks a condition and branches into true / false
  3. Get file for property (HTTP Request): calls an HTTP API
  4. Playwright error inform (Gmail): uses Gmail
  5. Create folder For Output Files (Google Drive): work with folder
  6. Transform to base (Extract from File): extracts data from a file (binary to propery)
  7. Make Copy of Template (Google Drive): copy
  8. Upload legal doc (Google Drive): uses Google Drive
  9. Change Custom Variables (Google Docs): update
  10. Call Gemini API for legal desc (HTTP Request): calls an HTTP API (POST)

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

Services it uses

GmailGoogle Gemini Chat ModelGoogle DriveGoogle DocsGoogle Sheets

HTTP calls to: api.apify.com

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.

Nodes used (10)

From the author

Automate Legal Document Generation with n8n, Apify, Google Drive, and AI This tutorial details an end-to-end automation solution for streamlining the lien filing process for Homeowners Associations (HOAs) using an n8n workflow. It significantly reduces manual…

Excerpt from Dina Lev'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.