Analyze legislative policies and route compliance actions with GPT-4o, Google Sheets, and Slack
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Slack and Google Sheets.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Workflow Configuration (Edit Fields (Set)): sets 3 fields: legalReviewThreshold, complianceFrameworks, stakeholderChannels
- Fetch Legislative Document (HTTP Request): calls an HTTP API
- Extract Document Text (Extract from File): extracts data from a file (pdf)
- Policy Interpretation Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Policy Interpretation; output parser: Policy Analysis Output Parser
- Governance Orchestration Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Governance Orchestration; 3 tools (Impact Assessment Agent Tool, Compliance Mapping Agent Tool, Stakeholder Notification Agent Tool); output parser: Governance Orchestration Output Parser
- Route by Review Status (Switch): routes items into 2 branches
- Wait: pauses until webhook
- Log Auto-Approved (Google Sheets): append or update
- Notify Legal Team (Slack): uses Slack
- Log to Compliance Tracker (Google Sheets): append or update
…plus 1 more step. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
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 (12)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent
@n8n/n8n-nodes-langchain.agent - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Switch
n8n-nodes-base.switch - Wait
n8n-nodes-base.wait - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets
From the author
How It Works This workflow automates legislative compliance analysis by coordinating multiple specialized OpenAI agents to interpret regulatory documents, evaluate organizational impact, and manage stakeholder communication with complete audit traceability.…