Skip to main content

Extract legal contract data & send alerts with VLM run, Google Workspace & Slack

Workflow preview

Workflow preview
100%
Extract legal contract data & send alerts with VLM run, Google Workspace & Slack preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI Powered Contract Management Pipeline (Google Drive + VLM Run + Sheets + Calendar + Slack) ️ What This Workflow Does This workflow automatically extracts, organizes, and tracks legal contract...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.googledrivetrigger, n8n-nodes-base.googledrive, @vlm-run/n8n-nodes-vlmrun.vlmrun, n8n-nodes-base.googlesheets, n8n-nodes-base.set, n8n-nodes-base.slack, n8n-nodes-base.code

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Extract legal contract data & send alerts with VLM run, Google Workspace & Slack
Workflow name
Extract legal contract data & send alerts with VLM run, Google Workspace & Slack

📜 AI-Powered Contract Management Pipeline (Google Drive + VLM Run + Sheets + Calendar + Slack)

⚙️ What This Workflow Does

This workflow automatically extracts, organizes, and tracks legal contract details from documents uploaded to Google Drive. Using VLM Run’s Execute Agent, it parses key metadata such as contract ID, parties, dates, and terms — then stores, alerts, and schedules reminders through Google Sheets, Calendar, and Slack.

🧩 Requirements

  • Google Drive OAuth2 for monitoring and downloads
  • VLM Run API credentials with Execute Agent access
  • Google Sheets OAuth2 for structured record storage
  • Google Calendar OAuth2 for key date reminders
  • Slack API credentials for team notifications
  • A reachable Webhook URL (for receiving parsed contract data)

⚡Quick Setup

  1. Configure Google Drive OAuth2 and create upload folder and folder for saving extracted images.

  2. Install the verified VLM Run node by searching for VLM Run in the node list, then click Install. Once installed, you can start using it in your workflows.

  3. Add VLM Run API credentials for document parsing.

  4. Configure Google Sheet and Calendar.

  5. For Google Sheet, from the document list, pick your Google Sheet (e.g., test). Then select the sheet inside it (e.g., Sheet1).

  6. Set the operation to Append Row — this will add new contract details as new rows.

  7. Turn on Map Each Column Manually. Match each contract field (like Contract ID, Title, Parties, Effective Date, Termination Date) to its corresponding column in your Google Sheet.

  8. Configure Slack for notifications.

⚙️ How It Works

  1. Monitor Contract Uploads – Watches a target Google Drive folder for new file uploads (PDFs, images, or scans).
  2. Download Contract File – Automatically downloads new contracts for AI analysis.
  3. VLM Run ContractParser – Sends the file to the VLM Run Execute Agent, which extracts structured contract data, including:
    • Contract ID
    • Title
    • Parties (with roles)
    • Property address
    • Effective date
    • Termination date
    • Rent, deposit, payment terms, and governing law
  4. Receive Contract Data – The webhook endpoint receives the structured JSON response.
  5. Format Contract Data – Normalizes fields, formats dates, and prepares for storage.
  6. Save to Expense Database (Google Sheets) – Appends extracted data to a master Google Sheet for centralized contract tracking.
  7. Notify via Slack – Posts a concise summary to a Slack channel, showing key contract details for visibility.
  8. Create Calendar Events – Automatically schedules Google Calendar events for:
    • Effective Date
    • Termination Date
    • Renewal Reminder (60 days before termination)

💡 Why Use This Workflow

Manual contract management is error-prone and time-consuming key details like renewal dates, payment terms, or termination clauses often get lost in email threads or folders. This workflow ensures:

  • Zero missed deadlines automatic Google Calendar reminders keep your team on track.

  • Instant team visibility - Slack notifications keep legal, finance, and operations aligned.

  • End-to-end automation no need for manual parsing, data entry, or follow-ups.

🧠 Perfect For

  • Legal teams automating contract intake and tracking
  • Real estate or lease management workflows
  • Finance or procurement teams needing expiration alerts
  • Organizations centralizing contract metadata in Sheets

🛠️ How to Customize

  1. Modify Extraction Fields Edit the VLM Run Execute Agent schema to add fields like contract value, payment schedule, department, or contact email.
  2. Change Storage Swap Google Sheets for Airtable, Notion, or BigQuery if you manage large datasets or need relational tracking.
  3. Customize Notifications Send Slack alerts only for high-value or expiring contracts, and tag relevant teams (e.g., @legal, @finance).
  4. Add Calendar Events Auto-create events for reviews or payment milestones using extra date fields.
  5. Add Approvals or Signatures Insert a Google Form or Slack approval step, or trigger DocuSign for e-signature automation.

⚠️ Community Node Disclaimer

This workflow uses community nodes (VLM Run) that may need additional permissions and custom setup.

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 - 📁 Input Processing Documentation

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

Block 2 - Monitor Contract Uploads

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

Block 3 - Download Contract File

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 4 - 🤖 AI Extraction Documentation

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

Block 5 - VLM Run ContractParser

Type / Role
@vlm-run/n8n-nodes-vlmrun.vlmRun - vlmRun
Config choices
Version 1

Block 6 - 📊 Storage Documentation

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

Block 7 - Save to Expense Database

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

Block 8 - Format Contract Data

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

Block 9 - Send a message

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

Block 10 - Prepare Calendar Events

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

Block 11 - Create an event

Type / Role
n8n-nodes-base.googleCalendar - googleCalendar
Config choices
Version 1.3

Block 12 - 📊 Storage Documentation1

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

Block 13 - Sticky Note3

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

Block 14 - Receive Contract

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

3. Summary Table

Workflow Extract legal contract data & send alerts with VLM run, Google Workspace & Slack
Complexity intermediate
Nodes 14
Categories Document Extraction, AI RAG
Author Shahrear
Published 06 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9328/9328.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 Extract legal contract data & send alerts with VLM run, Google Workspace & Slack do?

AI Powered Contract Management Pipeline (Google Drive + VLM Run + Sheets + Calendar + Slack) ️ What This Workflow Does This workflow automatically extracts, organizes, and tracks legal contract...

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 RAG use case.