Automation library · Documents and files

Audit contract governance risk with OpenAI and Slack

Started by a clock, and works across Email and Slack. It hands the judgement calls to OpenAI. 24 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

24 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 13Logic 8Service 2

The steps in the order they run, from what starts it.

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2OpenAI Chat Model - ValidationLm Chat Open AiModel
  3. 3Structured Output Parser - ValidationOutput Parser StructuredModel
  4. 4OpenAI Chat Model - GovernanceLm Chat Open AiModel
  5. 5Structured Output Parser - GovernanceOutput Parser StructuredModel
  6. 6OpenAI Chat Model - RiskLm Chat Open AiModel
  7. 7Structured Output Parser - RiskOutput Parser StructuredModel
  8. 8OpenAI Chat Model - ComplianceLm Chat Open AiModel
  9. 9Structured Output Parser - ComplianceOutput Parser StructuredModel
  10. 10Calculator ToolTool CalculatorModel
  11. 11Workflow ConfigurationSetLogic
  12. 12Contract Validation AgentAgentModel
  13. 13Governance Orchestrator AgentAgentModel
  14. 14Risk Assessment Agent ToolAgent ToolModel
  15. 15Compliance Checker Agent ToolAgent ToolModel
  16. 16Simulate Contract Audit DataCodeLogic
  17. 17Route by Risk LevelSwitchLogic
  18. 18Prepare Low Risk NotificationSetLogic
  19. 19Prepare Medium Risk NotificationSetLogic
  20. 20Prepare High Risk NotificationSetLogic
  21. 21Merge NotificationsMergeLogic
  22. 22Send Slack NotificationSlackService
  23. 23Send Email EscalationEmail SendService
  24. 24Log Audit TrailCodeLogic

How it's built

Starts on
A clock
Steps
24, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Email, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Email and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 24 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 24 steps before you point it at anything that matters.