# Review GitHub pull requests with Mistral: n8n workflow template

> Started by another system calling it, and works across Discord, GitHub and Slack. It hands the judgement calls to Mistral.

Source: https://millionrounds.com/workflow/review-github-pull-requests-with-mistral (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 GitHub pull requests with Mistral

Started by another system calling it, and works across Discord, GitHub and Slack. It hands the judgement calls to Mistral. 25 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Mistral

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freview-github-pull-requests-with-mistral)

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

**2** Branches: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 1 Model 3 Logic 7 Service 14

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

- 1 **When GitHub PR Created** Webhook *Starts it*
- 2 **Fetch GitHub PR Reviews** Github Tool *Service*
- 3 **Mistral Chat Model** Lm Chat Mistral Cloud *Model*
- 4 **Parse Structured Output** Output Parser Structured *Model*
- 5 **Get PR Diff Data** Http Request Tool *Service*
- 6 **Filter GitHub Events** Filter *Logic*
- 7 **PR Summary Agent** Agent *Model*
- 8 **Route by Event Type** Switch *Logic*
- 9 **Post PR Summary to Slack** Slack *Service*
- 10 **Wait for Review Form** Wait *Logic*
- 11 **Post PR to Discord** Discord *Service*
- 12 **Set Push Event Info** Set *Logic*
- 13 **Set Creation Event Info** Set *Logic*
- 14 **Set PR Metadata** Set *Logic*
- 15 **Route by Review Decision** Switch *Logic*
- 16 **Confirm Discord Post** Discord *Service*
- 17 **Confirm Slack Post** Slack *Service*
- 18 **Post Push to Discord** Discord *Service*
- 19 **Post Push to Slack** Slack *Service*
- 20 **Post Creation to Discord** Discord *Service*
- 21 **Post Creation to Slack** Slack *Service*
- 22 **Approve Pull Request** Github *Service*
- 23 **Request PR Changes** Github *Service*
- 24 **Deny Pull Request** Github *Service*
- 25 **Merge Pull Request** Http Request *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 25, with 2 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Discord, GitHub, Slack
- **Model:** Mistral

## Questions

What does it need to run?

An n8n account, plus your own Discord, GitHub and Slack accounts, and a key for Mistral. 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 Mistral. 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-github-pull-requests-with-mistral)
- **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.

[Discord](https://millionrounds.com/workflows?service=Discord#library)[GitHub](https://millionrounds.com/workflows?service=GitHub#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 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)
- [**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 legal policies with OpenAI and Gmail** 25 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/review-legal-policies-with-openai-and-gmail)
