# Analyze legislative policies and route compliance actions: n8n workflow

> Started by another system calling it, and works across Google Sheets and Slack. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/analyze-legislative-policies-and-route-compliance-actions (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# 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.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanalyze-legislative-policies-and-route-compliance-actions)

**25 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 15 Logic 3 Service 6

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

- 1 **Legislative Document Submission** Webhook *Starts it*
- 2 **OpenAI Model - Policy Interpretation** Lm Chat Open Ai *Model*
- 3 **Policy Analysis Output Parser** Output Parser Structured *Model*
- 4 **OpenAI Model - Impact Assessment** Lm Chat Open Ai *Model*
- 5 **Impact Assessment Output Parser** Output Parser Structured *Model*
- 6 **OpenAI Model - Compliance Mapping** Lm Chat Open Ai *Model*
- 7 **Compliance Mapping Output Parser** Output Parser Structured *Model*
- 8 **OpenAI Model - Stakeholder Notification** Lm Chat Open Ai *Model*
- 9 **Stakeholder Notification Output Parser** Output Parser Structured *Model*
- 10 **OpenAI Model - Governance Orchestration** Lm Chat Open Ai *Model*
- 11 **Governance Orchestration Output Parser** Output Parser Structured *Model*
- 12 **Workflow Configuration** Set *Logic*
- 13 **Policy Interpretation Agent** Agent *Model*
- 14 **Impact Assessment Agent Tool** Agent Tool *Model*
- 15 **Compliance Mapping Agent Tool** Agent Tool *Model*
- 16 **Stakeholder Notification Agent Tool** Agent Tool *Model*
- 17 **Governance Orchestration Agent** Agent *Model*
- 18 **Fetch Legislative Document** Http Request *Service*
- 19 **Route by Review Status** Switch *Logic*
- 20 **Extract Document Text** Extract From File *Service*
- 21 **Wait for Legal Review** Wait *Logic*
- 22 **Log Auto-Approved** Google Sheets *Service*
- 23 **Notify Legal Team** Slack *Service*
- 24 **Log to Compliance Tracker** Google Sheets *Service*
- 25 **Notify Stakeholders** Slack *Service*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanalyze-legislative-policies-and-route-compliance-actions)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**AI email analyzer: Process PDFs, images & save** 25 steps · calls a model · Email, Google Drive](https://millionrounds.com/workflow/ai-email-analyzer-process-pdfs-images-and-save)
- [**AI email triage and smart auto-responder with OpenAI and Gmail** 25 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/ai-email-triage-and-smart-auto-responder-with-openai-and-gma-3)
- [**AI email triage and smart auto-responder with OpenAI and Gmail** 25 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/ai-email-triage-and-smart-auto-responder-with-openai-and-gma)
- [**AI email triage and smart auto-responder with OpenAI and Gmail** 25 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/ai-email-triage-and-smart-auto-responder-with-openai-and-gma-2)
- [**Analyze Pinterest keyword shelves with Bright Data and OpenAI** 25 steps · calls a model · Google Docs, Slack](https://millionrounds.com/workflow/analyze-pinterest-keyword-shelves-with-bright-data-and-opena)
- [**Design UI screens from chat with Google Stitch and Gemini** 25 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/design-ui-screens-from-chat-with-google-stitch-and-gemini)
