Quick overview
A Slack bot that reviews any n8n workflow on demand. Mention it or DM it a workflow URL and it replies in-thread with a graded review, plain-English overview, and findings tiered as Must Fix, Should Fix, and Nice to Have.
How it works
- Triggers when the bot is @mentioned in Slack or receives a direct message.
- Adds an :eyes: reaction, extracts a
/workflow/<id> from the message text, and validates that a workflow ID is present.
- Uses the n8n API to fetch the top-level workflow JSON and pulls the workflow review checklist and skills file index from the public n8n-io/skills GitHub repository.
- Detects any Execute Workflow references in the workflow, fetches those direct subworkflow JSONs via the n8n API, and aggregates them into a single payload.
- Sends the workflow JSON, subworkflows, checklist, and available skill file paths to an OpenRouter-hosted model that can fetch additional skill markdown files as needed.
- Removes the :eyes: reaction and posts the graded review back to the originating Slack thread as a Block Kit message, or posts a threaded error message if the URL, API fetch, GitHub fetch, or agent run fails.
Setup
- Connect a Slack API credential with permission to receive app mentions/DMs, add reactions, and post threaded replies, and configure the trigger to watch the intended workspace.
- Add an n8n API credential that can read workflows, and ensure the n8n host in your workflow URLs matches the instance the credential points to.
- Add an OpenRouter API credential and choose the model you want to use for the reviewer agent and (optionally) the structured-output fixer.
- Install the Slack app, enable event subscriptions for
app_mention and direct messages, and invite the app to any channels where you want to request reviews.
- If your environment restricts outbound HTTP, allow access to
raw.githubusercontent.com and api.github.com so the workflow can load the n8n-io/skills checklist and file index.