# Auto documentation sync: GitHub to Slack with OpenAI: n8n workflow

> Started by an event in a connected app, and works across GitHub and Slack. It hands the judgement calls to Azure OpenAI.

Source: https://millionrounds.com/workflow/auto-documentation-sync-github-to-slack-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# Auto documentation sync: GitHub to Slack with OpenAI

Started by an event in a connected app, and works across GitHub and Slack. It hands the judgement calls to Azure OpenAI. 8 steps, 2 branches: small enough to read in one sitting and change without fear.

Small Calls a model: Azure OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fauto-documentation-sync-github-to-slack-with-openai)

**8 steps** Small: readable in one sitting

**2** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 2 Logic 2 Service 3

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

- 1 **Listen for PR Events** Github trigger *Starts it*
- 2 **Azure OpenAI Model** Lm Chat Azure Open Ai *Model*
- 3 **Is PR Merged to Main?** If *Logic*
- 4 **AI Summarizer Agent** Agent *Model*
- 5 **Fetch README Content** Github *Service*
- 6 **Post AI Summary to Slack** Slack *Service*
- 7 **Are Docs Modified?** If *Logic*
- 8 **Alert Docs Team (Slack)** Slack *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 8, with 2 branches
- **Size:** Small: readable in one sitting
- **Connects to:** GitHub, Slack
- **Model:** Azure OpenAI

## Questions

What does it need to run?

An n8n account, plus your own GitHub and Slack accounts, and a key for Azure OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Azure OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Not long. At 8 steps it can be read in one sitting and changed without fear.

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 8 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%2Fauto-documentation-sync-github-to-slack-with-openai)
- **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.

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

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**Automate monthly Google Ads performance analysis with OpenAI** 8 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/automate-monthly-google-ads-performance-analysis-with-openai)
- [**Daily IndieHackers Reddit trend analysis to Slack with Gemini** 8 steps · calls a model · Reddit, Slack](https://millionrounds.com/workflow/daily-indiehackers-reddit-trend-analysis-to-slack-with-gemin)
- [**Generate AI reports for Meta Ads campaigns with Claude** 8 steps · calls a model · Slack](https://millionrounds.com/workflow/generate-ai-reports-for-meta-ads-campaigns-with-claude)
- [**Log workouts and get AI fitness analysis with Gemini** 8 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/log-workouts-and-get-ai-fitness-analysis-with-gemini)
- [**Scrape industry growth signals with BrowserAct and OpenRouter** 8 steps · calls a model · Slack](https://millionrounds.com/workflow/scrape-industry-growth-signals-with-browseract-and-openroute)
- [**Send weekly Databox paid ads performance reports** 8 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/send-weekly-databox-paid-ads-performance-reports)
