Automation library · Chat assistants

Analyze legislative policies and route compliance actions

Started by another system calling it, and works across Google Sheets and Slack. It hands the judgement calls to OpenAI. 25 steps, 1 branch, 1 loop or waits: 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
1Loop or waits
2Services it connects to

The flow

Starts it 1Model 15Logic 3Service 6

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

  1. 1Legislative Document SubmissionWebhookStarts it
  2. 2OpenAI Model - Policy InterpretationLm Chat Open AiModel
  3. 3Policy Analysis Output ParserOutput Parser StructuredModel
  4. 4OpenAI Model - Impact AssessmentLm Chat Open AiModel
  5. 5Impact Assessment Output ParserOutput Parser StructuredModel
  6. 6OpenAI Model - Compliance MappingLm Chat Open AiModel
  7. 7Compliance Mapping Output ParserOutput Parser StructuredModel
  8. 8OpenAI Model - Stakeholder NotificationLm Chat Open AiModel
  9. 9Stakeholder Notification Output ParserOutput Parser StructuredModel
  10. 10OpenAI Model - Governance OrchestrationLm Chat Open AiModel
  11. 11Governance Orchestration Output ParserOutput Parser StructuredModel
  12. 12Workflow ConfigurationSetLogic
  13. 13Policy Interpretation AgentAgentModel
  14. 14Impact Assessment Agent ToolAgent ToolModel
  15. 15Compliance Mapping Agent ToolAgent ToolModel
  16. 16Stakeholder Notification Agent ToolAgent ToolModel
  17. 17Governance Orchestration AgentAgentModel
  18. 18Fetch Legislative DocumentHttp RequestService
  19. 19Route by Review StatusSwitchLogic
  20. 20Extract Document TextExtract From FileService
  21. 21Wait for Legal ReviewWaitLogic
  22. 22Log Auto-ApprovedGoogle SheetsService
  23. 23Notify Legal TeamSlackService
  24. 24Log to Compliance TrackerGoogle SheetsService
  25. 25Notify StakeholdersSlackService

How it's built

Starts on
Another system calling it
Steps
25, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Sheets 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 another system calling it.

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.