Review legal policies with GPT-4o, Gmail, Slack, and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs when someone submits an n8n form (“Legal Policy Submission & Review”). Along the way it connects OpenAI Chat Model, Gmail and Slack.
How it runs
Trigger: When someone submits an n8n form (“Legal Policy Submission & Review”).
- Extract Policy Document (Extract from File): extracts data from a file
- Legal Governance Agent (AI Agent): runs an AI agent, with model: Legal Governance Model; 5 tools (Legal Summary Agent, Policy Analysis Agent, Email Notification Tool, Slack Notification Tool…); output parser: Governance Output Parser
- Route by Approval Status (Switch): routes items into 3 branches
- Prepare Policy Record (Edit Fields (Set)): sets 14 fields: policyId, policyTitle, policyType…
- Store Policy Records (Data table): uses Data table
- Prepare Approval Record (Edit Fields (Set)): sets 7 fields: approvalId, policyId, approvalStatus…
- Prepare Compliance Record (Edit Fields (Set)): sets 7 fields: complianceId, policyId, complianceScore…
- Prepare Audit Log (Edit Fields (Set)): sets 11 fields: auditId, policyId, policyTitle…
- Split Stakeholders (Split Out): splits a list into separate items
- Post Governance Update (Slack): uses Slack
…plus 4 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 (14)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail Tool
n8n-nodes-base.gmailTool - Slack Tool
n8n-nodes-base.slackTool - AI Agent
@n8n/n8n-nodes-langchain.agent - Switch
n8n-nodes-base.switch - Edit Fields (Set)
n8n-nodes-base.set - Data table
n8n-nodes-base.dataTable - Split Out
n8n-nodes-base.splitOut - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack
From the author
How It Works This workflow automates legal policy governance for legal teams, policy managers, and compliance officers, eliminating manual document review, approval classification, and multi-channel stakeholder distribution. Submitted policy documents are…