Omnidev

    • Docs
    • Dashboard
    • About

Getting Started

  • Quick Start
  • Environment Setup
  • Docker Setup

Security

  • Sandbox Architecture
  • Sandbox Quick Reference
  • Credentials Management
  • Password Reset

API

  • API Operations
  • API Authentication

Features

  • Merge Request Automation

Integrations

  • n8n Workflows
  • n8n Templates
  • n8n Async Patterns
  • Prompt Templates
© 2025 Omnidev. All rights reserved.

n8n Workflows

Automate task processing with n8n integration

n8n Workflow Integration

This guide covers how to integrate Workflow with n8n for automated task processing.

For long-running requests and recommended designs (Option A vs Option B), see docs/N8N_ASYNC_PATTERNS.md.

Overview

The n8n integration allows you to create automated workflows that:

  • Trigger on ClickUp task assignment changes
  • Send tasks to Claude Code for planning or implementation
  • Update tasks with results automatically

Workflow Architecture

graph TD
    A[ClickUp Task Created] -->|Assigned to bot| B[Trigger Planning Flow]
    B --> C[Fetch Task Info<br/>+ optional sourceBranch]
    C --> D[Send Prompt to Claude Code<br/>via Planner Template]
    D --> E[Claude Planner Agent<br/>Analyzes Codebase]
    E --> F[Refined Task Output:<br/>Title, Steps, Files, DoD]
    F --> G[Update Task in ClickUp]
    G --> H[Task Assigned to Dev-Test Agent]
    H --> I[Dev Agent Pulls Code<br/>Implements Task<br/>Runs Tests<br/>Creates PR]

Planner Flow Design

The planner flow automates task refinement before development begins.

Flow Steps

  1. Trigger: Assignee change on any task
  2. Fetch: Get the task details
  3. Check: Verify task was assigned to CodeSpider and is in "To Do" status
  4. Parse: Extract task information:
    • Title
    • Description
    • Bug label (can be null)
  5. Template: Use prompt template to complete the prompt
  6. Generate: Create payload for API
  7. Send: Send payload to Workflow API
  8. Receive: Get response from Claude
  9. Update Task:
    • Remove assignee
    • Leave comment with results
    • Update title, description, etc.

Configuration Notes

SettingDescription
Workspace IDDefine in n8n global variables
Bug LabelsConfigure label detection for bug tasks
API EndpointYour Workflow instance URL

Setting Up the Integration

Prerequisites

  • n8n instance (self-hosted or cloud)
  • ClickUp workspace with API access
  • Workflow instance with API authentication configured

Step 1: Configure ClickUp Trigger

Set up a ClickUp trigger node that watches for assignee changes on tasks.

Step 2: Add HTTP Request Node

Configure an HTTP request to your Workflow API:

POST /api/ask
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Example JSON body:

{
  "workspaceId": "your-workspace-id",
  "question": "Your prompt text here",
  "context": "Optional extra context"
}

Notes:

  • sourceBranch is optional. If omitted, the server defaults to the workspace targetBranch.
  • For edits, use POST /api/edit (and optionally set createMR: true). For large requests, expect queued: true frequently.
  • For webhook-driven processing (recommended for large jobs), submit with a callback object and handle completion in a separate workflow. See docs/N8N_ASYNC_PATTERNS.md.

Step 3: Parse Response

Use a Set node to extract the Claude response and format it for ClickUp.

Step 4: Update ClickUp Task

Use the ClickUp node to update the task with the refined information.

Next Steps

  • See Prompt Templates for the planner prompt format
  • See API Operations for API endpoint details
  • See API Authentication for securing your integration
  • See docs/N8N_ASYNC_PATTERNS.md for robust async patterns and modular processing flows
PreviousMerge Request AutomationNextn8n Templates

On this page

  • n8n Workflow Integration
  • Overview
  • Workflow Architecture
  • Planner Flow Design
  • Setting Up the Integration
  • Next Steps