Review GitHub pull requests with Mistral and send decisions to Slack
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects GitHub, Slack, Mistral Cloud Chat Model and Discord and 1 more.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Filter: keeps only the items that match a condition
- Route by Event Type (Switch): routes items into 3 branches
- Set Push Event Info (Edit Fields (Set)): sets 7 fields: repo, branch, pusher…
- Set Creation Event Info (Edit Fields (Set)): sets 4 fields: repo, refName, refType…
- Set PR Metadata (Edit Fields (Set)): sets 15 fields: prTitle, prBody, prUrl…
- Post Push to Discord (Discord): uses Discord
- Post Push to Slack (Slack): uses Slack
- Post Creation to Discord (Discord): uses Discord
- Post Creation to Slack (Slack): uses Slack
- PR Summary Agent (AI Agent): runs an AI agent, with model: Mistral Chat Model; 2 tools (Get PR Diff Data, Fetch GitHub PR Reviews); output parser: Parse Structured Output
…plus 10 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (14)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Github Tool
n8n-nodes-base.githubTool - Slack
n8n-nodes-base.slack - Mistral Cloud Chat Model
@n8n/n8n-nodes-langchain.lmChatMistralCloud - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - GitHub
n8n-nodes-base.github - Wait
n8n-nodes-base.wait - Discord
n8n-nodes-base.discord - Filter
n8n-nodes-base.filter - HTTP Request
n8n-nodes-base.httpRequest - Http Request Tool
n8n-nodes-base.httpRequestTool
From the author
Quick overview This workflow receives GitHub webhook events for pull requests, pushes, and branch/tag creates, filters out actions from the repo owner, and posts alerts to Slack (optionally Discord). For pull requests, it uses Mistral to generate an AI review…