Skip to main content

Review PDF contract risks with a form, Google Gemini, Sheets, and Slack

Workflow preview

Workflow preview
100%
Review PDF contract risks with a form, Google Gemini, Sheets, and Slack preview
Open on n8n.io

1. Workflow Overview

Who is this for Legal teams, operations managers, and freelancers who review contracts regularly and want to catch risky clauses before signing. Ideal for small teams without dedicated legal counse...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.googlesheets, n8n-nodes-base.if, n8n-nodes-base.slack

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Review PDF contract risks with a form, Google Gemini, Sheets, and Slack
Workflow name
Review PDF contract risks with a form, Google Gemini, Sheets, and Slack

Who is this for

Legal teams, operations managers, and freelancers who review contracts regularly and want to catch risky clauses before signing. Ideal for small teams without dedicated legal counsel.

What this workflow does

This workflow automates contract risk analysis using AI. A user uploads a PDF contract through a web form and selects the contract type. The Code node extracts text from the PDF, then Google Gemini analyzes the full contract for risky clauses, unfavorable terms, and missing legal protections. Each clause gets a severity rating (high, medium, low) with a suggested fix. The parsed results are logged to Google Sheets for tracking, and if the overall risk score exceeds your threshold, a Slack alert fires immediately so nothing slips through.

How to set up

  1. Get a free Google Gemini API key from Google AI Studio
  2. Connect your Google Sheets account and create a spreadsheet called "Contract Reviews"
  3. Connect your Slack workspace and select the channel for risk alerts
  4. Activate the workflow and share the form URL with your team

Requirements

  • Google Gemini API key (free tier available)
  • Google Sheets account
  • Slack workspace with a channel for alerts
  • n8n instance (self-hosted or cloud)

How to customize

  • Edit the AI prompt in the "Analyze Contract" node to focus on specific clause types like indemnification or IP assignment
  • Change the risk threshold in the "Check Risk Level" node (default triggers on scores above 7)
  • Add columns to the Sheets node for additional tracking fields like reviewer name or department

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

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

Block 2 - Note - PDF Processing

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

Block 3 - Note - AI Analysis

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

Block 4 - Note - Logging

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

Block 5 - Upload Contract Form

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

Block 6 - Extract PDF Text

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

Block 7 - Analyze Contract

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.4

Block 8 - Gemini Chat Model

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

Block 9 - Parse Risk Results

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

Block 10 - Log Review to Sheets

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

Block 11 - Check Risk Level

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

Block 12 - Send Risk Alert

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

3. Summary Table

Workflow Review PDF contract risks with a form, Google Gemini, Sheets, and Slack
Complexity intermediate
Nodes 12
Categories Document Extraction, AI Summarization
Author Oka Hironobu
Published 24 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13671/13671.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 Review PDF contract risks with a form, Google Gemini, Sheets, and Slack do?

Who is this for Legal teams, operations managers, and freelancers who review contracts regularly and want to catch risky clauses before signing. Ideal for small teams without dedicated legal counse...

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 Document Extraction, AI Summarization use case.