Skip to content

Custom n8n interface with an additional feature of an LLM enchanced for n8n workflow script generation from prompts. Modify n8n worflows using AI or generate from scratch. In developement

Notifications You must be signed in to change notification settings

Ker102/Kaelux-Automate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

80 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Kaelux Automate

Compose Node CodeQL

Custom Model RAG CRAG

πŸ”§ Core Tech Stack

Vue.js Vite TypeScript n8n Node.js

πŸ—„οΈ Database & Storage

PostgreSQL Qdrant

🧠 AI & LLM Pipeline

Gemini Jina Together Qwen

πŸš€ Enterprise AI-powered n8n workflow builder with CRAG-enhanced generation.
πŸ”₯ CRAG Pipeline: Jina Reranker + Mistral-Nemo Judge for superior retrieval.


✨ Key Features

Feature Description
🧠 AI Workflow Builder Generate n8n workflows from natural language (Gemini 3 Pro Preview)
πŸ” RAG-Powered 36,166 workflow vectors for semantic retrieval
⚑ Diff-Based Updates Safe add/update/remove/reconnect actions (no canvas overwrites)
🎨 Embedded n8n Full n8n canvas with custom AI Builder panel
πŸ€– Custom Model Qwen 3 Coder 14B fine-tuned on 21,925 n8n workflow examples

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        Kaelux Automate                          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚   Next.js 15    β”‚   n8n Canvas    β”‚      AI Pipeline            β”‚
β”‚   (Port 3000)   β”‚   (Port 5678)   β”‚                             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€                             β”‚
β”‚                                   β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”‚  β”‚  Gemini 3 Pro Preview β”‚  β”‚
β”‚   β”‚    PostgreSQL 16        β”‚     β”‚  β”‚  (Primary LLM)        β”‚  β”‚
β”‚   β”‚      (Port 5433)        β”‚     β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β”‚              β”‚              β”‚
β”‚                                   β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”‚  β”‚   Qwen 3 Coder 14B    β”‚  β”‚
β”‚   β”‚  Qdrant Cloud (36k RAG) β”‚     β”‚  β”‚   (Custom Fine-Tuned) β”‚  β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Component Version Purpose
Next.js 15.x API routes, Prisma/Postgres, AI orchestration
React 19.x Frontend framework
n8n 1.x (forked) Vue-based workflow canvas with AI Builder panel
PostgreSQL 16.x Primary data store
Prisma 5.x Database ORM
Qdrant Cloud Vector index for 36,166 workflow exemplars
Gemini 3 Pro Preview Primary LLM for workflow generation
Qwen 3 Coder 14B (training) Custom fine-tuned model for n8n workflows

πŸš€ Quick Start

Requirements

  • Docker + Docker Compose v2
  • Node.js 22.x / pnpm 9.x
  • Gemini API key (3 Pro Preview)

Setup

# 1. Clone and configure
git clone https://github.com/Ker102/Kaelux-Automate.git
cd Kaelux-Automate
cp .env.example .env
cp .env.local.example .env.local

# 2. Add your API keys to .env.local
# GEMINI_API_KEY=your-key-here

# 3. Build n8n with AI Builder
cd n8n
pnpm install
pnpm build:n8n && pnpm build:docker
cd ..

# 4. Start services
docker compose -f docker-compose.dev.yml up -d

# 5. (Optional) Seed RAG database
docker compose exec app npm run seed:qdrant

Access Points

Service URL
Next.js App http://localhost:3000
n8n Canvas http://localhost:5678
Qdrant REST http://localhost:6333
PostgreSQL localhost:5433

🧠 AI Workflow Builder

The AI builder uses Gemini 3 Pro Preview for generation and structured diff actions:

// Example API response
{
  "workflow": { /* n8n workflow JSON */ },
  "actions": [
    { "type": "add", "node": {...} },
    { "type": "update", "nodeId": "123", "changes": {...} },
    { "type": "connect", "from": "A", "to": "B" }
  ]
}

Endpoints:

  • POST /api/ai/workflow - Generate workflow from prompt
  • GET /api/ai/prompts - List prompt templates

πŸ€– Custom Model (In Progress)

We're fine-tuning Qwen 3 Coder 14B specifically for n8n workflow generation:

Metric Value
Base Model Qwen 3 Coder 14B
Training Framework Unsloth (QLoRA)
Training Examples 21,925 (cleaned)
Vector Dimensions 768 (M2-BERT)
Training Platform GCP / Colab

πŸ”§ Development

Rebuild n8n UI

cd n8n && pnpm build:n8n && pnpm build:docker && cd ..
docker compose -f docker-compose.dev.yml up -d n8n

Database Migrations

docker compose exec app npx prisma migrate deploy
docker compose exec app npx prisma generate

πŸ” Security


🀝 Contributing

See CONTRIBUTING.md for guidelines. All changes require PRs with tests/docs.


πŸ“„ License

Copyright Β© Kaelux. See repository license for details.


πŸ”— Related

About

Custom n8n interface with an additional feature of an LLM enchanced for n8n workflow script generation from prompts. Modify n8n worflows using AI or generate from scratch. In developement

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published