Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Auto-fix ClickUp bug reports with OpenAI, Cursor, GitHub and Slack
Runs when a ClickUp bug webhook fires, plans a fix with OpenAI, asks for Slack approval when unsure, then has Cursor patch the code and opens a GitHub pull request.
What it does
## AI Autonomous Bug-Fixing Pipeline ### How it works This workflow receives ClickUp bug reports through a webhook, normalizes the bug details, and uses an OpenAI-powered agent to identify the root cause and propose a fix plan. It scores whether the issue is safe for autonomous fixing, routes uncertain cases through Slack developer approval, then sends the approved fix task to a Cursor background agent. After Cursor completes the fix and tests, the workflow prepares follow-up payloads, creates a GitHub pull request, updates the ClickUp task, and returns a success response. ### Setup steps - Configure the ClickUp webhook to send new bug reports to the n8n webhook URL, and ensure the incoming payload contains the bug ID, task name, description, and stack trace fields expected by the config node. - Add OpenAI credentials for the chat model used by the AI Agent node. - Configure Slack credentials and the target channel or user for manual review notifications. - Set the Cursor API URL and authentication details used by the HTTP Request node to trigger the Cursor background agent. - Configure the wait/resume URLs or callback handling so developer approvals and Cursor completion events can resume the workflow correctly. - Add GitHub credentials with permission to create pull requests in the target repository, and configure ClickUp credentials with permission to update bug task status. ### Customization Adjust the auto-fix eligibility scoring logic, Slack approval message, Cursor task payload, target repository/branch, and ClickUp status values to match the team’s risk tolerance and development process.
The steps
- When Bug Reported in ClickUp
- Prepare Bug Report Data
- OpenAI Model
- Bug Fix Planner Agent
- Analyze Auto-Fix Eligibility
- If Eligible for Auto-Fix
- Notify Dev on Slack for Review
- Wait for Dev Approval
- Create Fix Task Payload
- Trigger Cursor Background Agent
- Wait for Cursor Completion
- Process Cursor Result for PR
- Create GitHub Pull Request
- Update Bug Status in ClickUp
15 steps in total.
Similar automations
AI Agents & AssistantsShip ClickUp requirements to production with Claude, Cursor and GitHub59 stepsE-commerce & PaymentsPage Through Shopify Products with a GraphQL Cursor Loop4 stepsCustomer Support & HelpdeskHandle Slack /bug command reports received via webhook7 stepsMonitoring, Ops & IncidentsTriage monitoring alerts with Claude, ClickUp and WhatsApp status updates16 steps