Automation library · Chat assistants

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.

LargeCalls a model: Mistral

25 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 1Model 3Logic 7Service 14

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

  1. 1When GitHub PR CreatedWebhookStarts it
  2. 2Fetch GitHub PR ReviewsGithub ToolService
  3. 3Mistral Chat ModelLm Chat Mistral CloudModel
  4. 4Parse Structured OutputOutput Parser StructuredModel
  5. 5Get PR Diff DataHttp Request ToolService
  6. 6Filter GitHub EventsFilterLogic
  7. 7PR Summary AgentAgentModel
  8. 8Route by Event TypeSwitchLogic
  9. 9Post PR Summary to SlackSlackService
  10. 10Wait for Review FormWaitLogic
  11. 11Post PR to DiscordDiscordService
  12. 12Set Push Event InfoSetLogic
  13. 13Set Creation Event InfoSetLogic
  14. 14Set PR MetadataSetLogic
  15. 15Route by Review DecisionSwitchLogic
  16. 16Confirm Discord PostDiscordService
  17. 17Confirm Slack PostSlackService
  18. 18Post Push to DiscordDiscordService
  19. 19Post Push to SlackSlackService
  20. 20Post Creation to DiscordDiscordService
  21. 21Post Creation to SlackSlackService
  22. 22Approve Pull RequestGithubService
  23. 23Request PR ChangesGithubService
  24. 24Deny Pull RequestGithubService
  25. 25Merge Pull RequestHttp RequestService

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.