Audit contract governance risk with OpenAI, Slack and email routing
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs on a schedule (every 15 minutes). Along the way it connects OpenAI Chat Model and Slack.
How it runs
Trigger: On a schedule (every 15 minutes).
- Workflow Configuration (Edit Fields (Set)): sets 5 fields: riskThresholdLow, riskThresholdMedium, riskThresholdHigh…
- Simulate Contract Audit Data (Code): runs custom JavaScript code
- Contract Validation Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Governance Orchestrator Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 3 tools (Calculator, Risk Assessment Agent Tool, Compliance Checker Agent Tool); output parser: Structured Output Parser
- Route by Risk Level (Switch): routes items into 3 branches
- Prepare Low Risk Notification (Edit Fields (Set)): sets 2 fields: notificationType, message
- Prepare Medium Risk Notification (Edit Fields (Set)): sets 2 fields: notificationType, message
- Prepare High Risk Notification (Edit Fields (Set)): sets 3 fields: notificationType, emailSubject, emailBody
- Merge: merges the data from its input branches
- Send Slack Notification (Slack): uses Slack
…plus 2 more steps. See the full node list below.
Services it uses
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend - Merge
n8n-nodes-base.merge
From the author
How It Works This workflow automates contract governance auditing by deploying a multi-agent AI system that validates contracts, assesses risk, checks compliance, and routes alerts based on risk level. Designed for legal, procurement, and compliance teams, it…