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

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

Ready for 3.0

by Toshiki Hirao ✓ · 482 views · created 2025-09-10 · 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 12 nodes and runs on Slack events. Along the way it connects OpenAI Chat Model, Slack and Google Sheets.

How it runs

Trigger: On Slack events.

  1. Check File Format (Switch): routes items into 3 branches
  2. Download PDF (HTTP Request): calls an HTTP API
  3. Convert Word to PDF (HTTP Request): calls an HTTP API
  4. Send Error Message (Slack): uses Slack
  5. Extract Text from PDF (Extract from File): extracts data from a file (pdf)
  6. Extract Text from PDF (Extract from File): extracts data from a file (pdf)
  7. Analyze Contract Content (AI Agent): runs an AI agent, with model: AI model; output parser: Structure Output
  8. Save to Google Sheets (Google Sheets): append
  9. Notify on Slack (Slack): uses Slack

Services it uses

OpenAI Chat ModelSlackGoogle Sheets

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.

  • Still check Slack Trigger requires a signing secret on the Slack API credential (Receive Contract File).

Nodes used (9)

From the author

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,…

Excerpt from Toshiki Hirao'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.