# Review legal policies with OpenAI and Gmail: n8n workflow

> Started by someone submitting a form, and works across Gmail, Slack and n8n data table. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/review-legal-policies-with-openai-and-gmail (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)

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

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freview-legal-policies-with-openai-and-gmail)

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

**1** Branch: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 9 Logic 6 Service 9

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

- 1 **Policy Submission Form** Form trigger *Starts it*
- 2 **Policy Analysis Model** Lm Chat Open Ai *Model*
- 3 **Compliance Tracking Model** Lm Chat Open Ai *Model*
- 4 **Legal Summary Model** Lm Chat Open Ai *Model*
- 5 **Legal Governance Model** Lm Chat Open Ai *Model*
- 6 **Governance Output Parser** Output Parser Structured *Model*
- 7 **Email Notification Tool** Gmail Tool *Service*
- 8 **Slack Notification Tool** Slack Tool *Service*
- 9 **Extract Policy Document** Extract From File *Service*
- 10 **Policy Analysis Agent** Agent Tool *Model*
- 11 **Compliance Tracking Agent** Agent Tool *Model*
- 12 **Legal Summary Agent** Agent Tool *Model*
- 13 **Legal Governance Agent** Agent *Model*
- 14 **Route by Approval Status** Switch *Logic*
- 15 **Prepare Policy Record** Set *Logic*
- 16 **Store Policy Records** Data Table *Service*
- 17 **Prepare Approval Record** Set *Logic*
- 18 **Prepare Compliance Record** Set *Logic*
- 19 **Prepare Audit Log** Set *Logic*
- 20 **Split Stakeholders** Split Out *Logic*
- 21 **Post Governance Update** Slack *Service*
- 22 **Track Approvals** Data Table *Service*
- 23 **Track Compliance** Data Table *Service*
- 24 **Audit Trail** Data Table *Service*
- 25 **Send Stakeholder Email** Gmail *Service*

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

## 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%2Freview-legal-policies-with-openai-and-gmail)
- **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.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

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

- [**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)
- [**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-3)
- [**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)
- [**Analyze legislative policies and route compliance actions** 25 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/analyze-legislative-policies-and-route-compliance-actions)
- [**Review GitHub pull requests with Mistral** 25 steps · calls a model · Discord, GitHub](https://millionrounds.com/workflow/review-github-pull-requests-with-mistral)
