workflows.fit
Back to n8n workflows
n8n templateFreeBy TakatoYamada

Analyze error logs with GPT-4o and create GitHub issues plus Slack alerts

Analyze error logs with AI and auto-create GitHub issues with fix suggestions --- Who is this for DevOps engineers, SREs, and development teams who want to automate error monitoring and reduce mean time to resolution ...

DevelopmentCommunicationHITLCore NodesAILangchainUtilitySticky Note
Loading interactive preview...

Template notes

Analyze error logs with AI and auto-create GitHub issues with fix suggestions

---

Who is this for

DevOps engineers, SREs, and development teams who want to automate error monitoring and reduce mean time to resolution (MTTR). Ideal for teams using GitHub for issue tracking and Slack for incident response.

What this workflow does

This workflow automates the entire error management lifecycle - from log ingestion to GitHub issue creation and Slack notification - using GPT-4o-powered root cause analysis. When an application error log is received, it parses the payload, checks for duplicates against existing GitHub issues, generates a structured root cause analysis with fix suggestions, creates a formatted GitHub Issue, and routes Slack notifications by severity. A 30-minute Wait node prevents notification flooding.

How to set up

1. Add your GitHub Personal Access Token (repo scope) credential 2. Add your OpenAI API credential to the AI analysis node 3. Add your Slack OAuth2 credential (chat:write scope) to all Slack nodes 4. Configure n8n Variables: GITHUBOWNER and GITHUBREPO 5. Update Slack channel names (incident / dev-alerts) to match your workspace 6. Activate the workflow and copy the webhook URL for your application logger