Assess contract risk from Google Drive with Groq, Salesforce and Slack
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, Groq Chat Model, Salesforce and Slack.
How it runs
Trigger: On Google Drive events (file created).
- Validate File is PDF (If): checks a condition and branches into true / false
- Download Contract File (Google Drive): download
- Extract Contract Name (Edit Fields (Set)): sets 1 field: contract_name
- Extract Text from PDF (Extract from File): extracts data from a file (pdf)
- Find Contract in Salesforce (Salesforce): work with search
- Clean Contract Text (Edit Fields (Set)): sets 1 field: contract_text
- Check If Contract Exists (If): checks a condition and branches into true / false
- Split Contract into Chunks (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Create Contract Record (Salesforce): work with custom object
…plus 8 more steps. See the full node list below.
Services it uses
Other Google Drive + Slack templates (222) · Other Groq + Slack templates (78) · Other Groq + Google Drive templates (31)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- 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 - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Salesforce
n8n-nodes-base.salesforce - Merge
n8n-nodes-base.merge - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow monitors a Google Drive folder for new PDF contracts, extracts and cleans the text, uses Groq-hosted LLMs to extract clauses and assess risk, then writes the final risk summary to a Salesforce custom object and posts a…