Monitor vendor compliance documents and expiries with Google Drive, OpenAI, Sheets, Gmail, and Slack
Ready for 3.0What this workflow does
This AI workflow has 26 nodes and runs on Google Drive events (file created) (plus 1 other trigger). Along the way it connects Google Drive, OpenAI Chat Model, Google Sheets and Slack and 1 more.
How it runs
Trigger: On Google Drive events (file created) (plus 1 other trigger).
- Check If PDF (If): checks a condition and branches into true / false
- Set Compliance Parameters (Edit Fields (Set)): sets 7 fields: companyName, complianceOwnerEmail, complianceInbox…
- Download Google Drive File (Google Drive): download
- Notify Slack: Unsupported File (Slack): uses Slack
- Set Tier Requirements (Code): runs custom JavaScript code
- Extract Text from PDF (Extract from File): extracts data from a file (pdf)
- Fetch Vendors from Sheets (Google Sheets): uses Google Sheets
- AI Document Data Extraction (Information Extractor): extracts structured fields from text with AI, with model: OpenAI GPT-4 Chat Model
- Fetch Documents from Sheets (Google Sheets): uses Google Sheets
- Build Document Records (Code): runs custom JavaScript code
…plus 13 more steps. See the full node list below.
Services it uses
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.
Nodes used (13)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - If
n8n-nodes-base.if - Google Drive
n8n-nodes-base.googleDrive - Extract from File
n8n-nodes-base.extractFromFile - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Slack
n8n-nodes-base.slack - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow monitors a Google Drive folder for new vendor compliance PDFs, uses OpenAI to classify and extract key fields, logs and tracks them in Google Sheets, flags uncertain items in Slack, and runs a daily compliance check that emails…