Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. When Bug Reported in ClickUp
  2. Prepare Bug Report Data
  3. OpenAI Model
  4. Bug Fix Planner Agent
  5. Analyze Auto-Fix Eligibility
  6. If Eligible for Auto-Fix
  7. Notify Dev on Slack for Review
  8. Wait for Dev Approval
  9. Create Fix Task Payload
  10. Trigger Cursor Background Agent
  11. Wait for Cursor Completion
  12. Process Cursor Result for PR
  13. Create GitHub Pull Request
  14. Update Bug Status in ClickUp

15 steps in total.

Similar automations