# Generate AI governance policy PDFs with OpenAI and SerpAPI: n8n workflow

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

Source: https://millionrounds.com/workflow/generate-ai-governance-policy-pdfs-with-openai-and-serpapi (Millionrounds; every figure on the page links to its filing or article)

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

# Generate AI governance policy PDFs with OpenAI and SerpAPI

Started by another system calling it, and works across Outlook. It hands the judgement calls to OpenAI. 33 steps: 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%2Fgenerate-ai-governance-policy-pdfs-with-openai-and-serpapi)

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

**0** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 20 Logic 8 Service 3

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

- 1 **When Form Submitted** Webhook *Starts it*
- 2 **OpenAI EU AI Act Analysis** Lm Chat Open Ai *Model*
- 3 **Search EU AI Act** Tool Serp Api *Model*
- 4 **OpenAI ABA Ethics Analysis** Lm Chat Open Ai *Model*
- 5 **Search ABA Ethics** Tool Serp Api *Model*
- 6 **OpenAI Case Law Analysis** Lm Chat Open Ai *Model*
- 7 **Search Case Law** Tool Serp Api *Model*
- 8 **OpenAI Jurisdiction Analysis** Lm Chat Open Ai *Model*
- 9 **Search Jurisdiction Laws** Tool Serp Api *Model*
- 10 **OpenAI Summary Analysis** Lm Chat Open Ai *Model*
- 11 **OpenAI Discussion Analysis** Lm Chat Open Ai *Model*
- 12 **OpenAI Policy Drafting** Lm Chat Open Ai *Model*
- 13 **OpenAI Roadmap Analysis** Lm Chat Open Ai *Model*
- 14 **Process and Validate Data** Code *Logic*
- 15 **EU AI Act Research Agent** Agent *Model*
- 16 **ABA Ethics Research Agent** Agent *Model*
- 17 **Case Law Research Agent** Agent *Model*
- 18 **Jurisdiction Regulations Agent** Agent *Model*
- 19 **Executive Summary Agent** Agent *Model*
- 20 **Discussion Guide Agent** Agent *Model*
- 21 **Draft Policy Agent** Agent *Model*
- 22 **Roadmap Development Agent** Agent *Model*
- 23 **Respond via Webhook** Respond To Webhook *Starts it*
- 24 **Combine Research Findings** Merge *Logic*
- 25 **Combine Generated Outputs** Merge *Logic*
- 26 **Compile Research Data** Code *Logic*
- 27 **Create Branded HTML** Code *Logic*
- 28 **Convert HTML to PDF** Http Request *Service*
- 29 **Upload PDF to SharePoint** Microsoft Share Point *Service*
- 30 **Generate Share Links** Code *Logic*
- 31 **Collect SharePoint Links** Aggregate *Logic*
- 32 **Draft Review Email** Code *Logic*
- 33 **Send Review Email** Microsoft Outlook *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 33
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Outlook
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Outlook account, 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 33 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 33 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%2Fgenerate-ai-governance-policy-pdfs-with-openai-and-serpapi)
- **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.

[Outlook](https://millionrounds.com/workflows?service=Outlook#library)

## Workflows like it

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

- [**Auto categorise Outlook emails with a local model** 26 steps · calls a model · Outlook](https://millionrounds.com/workflow/auto-categorise-outlook-emails-with-a-local-model)
- [**Auto categorise Outlook emails with a local model** 26 steps · calls a model · Outlook](https://millionrounds.com/workflow/auto-categorise-outlook-emails-with-a-local-model-2)
- [**Email-to-task automation with Outlook and Microsoft To Do** 26 steps · calls a model · Gmail, Google Tasks](https://millionrounds.com/workflow/email-to-task-automation-with-outlook-and-microsoft-to-do)
- [**Automatic email categorization and organization with Outlook** 22 steps · calls a model · Outlook](https://millionrounds.com/workflow/automatic-email-categorization-and-organization-with-outlook)
- [**Latest tailored economic news for business with Gemini** 21 steps · calls a model · Outlook, RSS](https://millionrounds.com/workflow/latest-tailored-economic-news-for-business-with-gemini)
- [**Automatic and dynamic out of office in Exchange online** 19 steps · calls a model · Outlook](https://millionrounds.com/workflow/automatic-and-dynamic-out-of-office-in-exchange-online)
