Automation library · Chat assistants

Review legal policies with OpenAI and Gmail

Started by someone submitting a form, and works across Gmail, Slack and n8n data table. It hands the judgement calls to OpenAI. 25 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 9Logic 6Service 9

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

  1. 1Policy Submission FormForm triggerStarts it
  2. 2Policy Analysis ModelLm Chat Open AiModel
  3. 3Compliance Tracking ModelLm Chat Open AiModel
  4. 4Legal Summary ModelLm Chat Open AiModel
  5. 5Legal Governance ModelLm Chat Open AiModel
  6. 6Governance Output ParserOutput Parser StructuredModel
  7. 7Email Notification ToolGmail ToolService
  8. 8Slack Notification ToolSlack ToolService
  9. 9Extract Policy DocumentExtract From FileService
  10. 10Policy Analysis AgentAgent ToolModel
  11. 11Compliance Tracking AgentAgent ToolModel
  12. 12Legal Summary AgentAgent ToolModel
  13. 13Legal Governance AgentAgentModel
  14. 14Route by Approval StatusSwitchLogic
  15. 15Prepare Policy RecordSetLogic
  16. 16Store Policy RecordsData TableService
  17. 17Prepare Approval RecordSetLogic
  18. 18Prepare Compliance RecordSetLogic
  19. 19Prepare Audit LogSetLogic
  20. 20Split StakeholdersSplit OutLogic
  21. 21Post Governance UpdateSlackService
  22. 22Track ApprovalsData TableService
  23. 23Track ComplianceData TableService
  24. 24Audit TrailData TableService
  25. 25Send Stakeholder EmailGmailService

How it's built

Starts on
Someone submitting a form
Steps
25, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Slack, n8n data table
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail 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 someone submitting a form.

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 25 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 25 steps before you point it at anything that matters.