Skip to main content

Extract and organize contract details from PDFs with Slack, GPT-4o, and Google Sheets

Workflow preview

Workflow preview
100%
Extract and organize contract details from PDFs with Slack, GPT-4o, and Google Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Managing contracts manually is time consuming and prone to human error, especially when documents need to be shared, tracked, and stored across different tools. This workflow automates the entire p...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.slacktrigger, n8n-nodes-base.switch, n8n-nodes-base.httprequest, n8n-nodes-base.extractfromfile, n8n-nodes-base.slack, @n8n/n8n-nodes-langchain.agent

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Extract and organize contract details from PDFs with Slack, GPT-4o, and Google Sheets
Workflow name
Extract and organize contract details from PDFs with Slack, GPT-4o, and Google Sheets

Managing contracts manually is time-consuming and prone to human error, especially when documents need to be shared, tracked, and stored across different tools. This workflow automates the entire process by capturing contract PDFs and Words uploaded to Slack, extracting key information with GPT, and organizing the data into a structured format inside Google Sheets. Essential fields such as client, service provider, contract value, and important dates are automatically parsed and logged, eliminating repetitive manual entry. Once the data is saved, a confirmation message is posted back to Slack so your team can quickly verify that everything has been recorded accurately.

Who’s it for

This workflow is ideal for operations teams, legal departments, or growing businesses that manage multiple contracts and want to maintain accuracy without spending hours on administration. By integrating Slack, GPT, and Google Sheets, you gain a simple but powerful contract management system that reduces risk, improves visibility, and keeps everyone aligned. Instead of scattered files and manual spreadsheets, you have a single automated pipeline that ensures your contract data is always up to date and accessible.

How it works

  • The workflow is triggered when a contract in PDF or Word format is shared in the designated Slack channel.
  • The uploaded file is automatically retrieved for processing.
  • Its content is extracted and converted into plain text.
  • If the file is not in PDF or Word format, an error message is sent.
  • GPT interprets the extracted text and structures the essential fields (e.g., Client, Service Provider, Effective Date, Expiration Date, Signature Date, Contract Value).
  • The structured contract information is appended as a new row in the contract tracker spreadsheet on Google Sheets.
  • A summary of the saved data is posted back to Slack for quick validation.

How to set up

  • You need to import this workflow into your n8n instance.
  • You must authenticate your Slack account and select the target channel for contract submissions.
  • You should link your Google account and specify the spreadsheet where the contract data will be stored. In this template, the required columns are Client, Service Provider, Effective Date, Expiration Date, Signature Date, and Contract Value.
  • You can adjust the GPT parsing prompt to match the specific fields that your organization requires.
  • You upload a sample contract in PDF or Word format to Slack and verify that the extracted data is correctly recorded in Google Sheets.

Requirements

  • You must have an active n8n instance in the cloud.
  • You need a Slack account with permission to upload files and send messages.
  • You must use a Google Sheets account with edit access to the target spreadsheet.
  • You need a GPT integration (e.g., OpenAI) to enable AI-powered text parsing.

How to customize the workflow

You can modify this workflow to fit your organization’s unique contract needs. For example, you may update the GPT parsing prompt to capture additional fields, change the target Google Sheets structure, or integrate notifications into other tools. You have full flexibility to expand or simplify the steps so the workflow matches your team’s processes and compliance requirements.

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 - Structure Output

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 2 - AI model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Receive Contract File

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

Block 4 - Check File Format

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 5 - Download PDF

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Extract Text from PDF

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

Block 7 - Convert Word to PDF

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Extract Text from PDF1

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

Block 9 - Send Error Message

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

Block 10 - Analyze Contract Content

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 11 - Save to Google Sheets

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

Block 12 - Notify on Slack

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

Block 13 - Sticky Note

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

Block 14 - Sticky Note1

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

Block 15 - Sticky Note2

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

Block 16 - Sticky Note3

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

Block 17 - Sticky Note4

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

Block 18 - Sticky Note5

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

Block 19 - Sticky Note6

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

3. Summary Table

Workflow Extract and organize contract details from PDFs with Slack, GPT-4o, and Google Sheets
Complexity advanced
Nodes 19
Categories Document Extraction, AI Summarization
Author Toshiki Hirao
Published 10 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8440/8440.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 and organize contract details from PDFs with Slack, GPT-4o, and Google Sheets do?

Managing contracts manually is time consuming and prone to human error, especially when documents need to be shared, tracked, and stored across different tools. This workflow automates the entire p...

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.