Templates / Generate AI-powered contracts with OpenAI, e-signature, Gmail and Sheets

Generate AI-powered contracts with OpenAI, e-signature, Gmail and Sheets

Needs changes

by Yurie Ino ✓ · 148 views · created 2025-12-16 · Document Extraction, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 26 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Gmail and Google Sheets.

How it runs

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

  1. Validate Contract Request (If): checks a condition and branches into true / false
  2. Prepare Contract Data (Edit Fields (Set)): sets 9 fields: contractId, contractType, parties…
  3. Invalid Request Response (Edit Fields (Set)): sets 2 fields: error, message
  4. Route by Contract Type (Switch): routes items into 3 branches
  5. Respond to Webhook: sends the response back to the webhook caller
  6. NDA Template Base (Edit Fields (Set)): sets 2 fields: templateType, baseTerms
  7. Service Agreement Base (Edit Fields (Set)): sets 2 fields: templateType, baseTerms
  8. Employment Contract Base (Edit Fields (Set)): sets 2 fields: templateType, baseTerms
  9. Generic Contract Base (Edit Fields (Set)): sets 2 fields: templateType, baseTerms
  10. Merge: merges the data from its input branches

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

Services it uses

OpenAI Chat ModelGmailGoogle Sheets

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Contract Advisor (v1.7): 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).

Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Contract Advisor (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (14)

From the author

Contract Template Generator with E-Signature Integration What this workflow does This workflow automates the full contract lifecycle—from request intake to document generation and electronic signature completion. It receives contract requests via webhook,…

Excerpt from Yurie Ino'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.