flowengine-n8n-workflow-builder
Version:
Build n8n workflows from text using AI. Connect to Claude, Cursor, or any LLM to generate and validate n8n workflows with expert knowledge and intelligent auto-fixing. Built by FlowEngine. Now with real node parameter schemas from n8n packages!
58 lines • 1.69 kB
TypeScript
/**
* Intelligence Engine - AI-Driven Workflow Analysis and Suggestions
*
* Provides intelligent pattern recognition, architecture recommendations,
* and context-aware suggestions for workflow building.
*/
import type { Workflow } from './generator.js';
export interface ArchitecturePattern {
name: string;
description: string;
useCases: string[];
complexity: 'simple' | 'moderate' | 'complex';
requiredNodes: string[];
optionalNodes: string[];
}
export interface WorkflowInsight {
type: 'info' | 'warning' | 'suggestion' | 'optimization';
message: string;
severity: 'low' | 'medium' | 'high';
suggestedFix?: string;
}
/**
* Architecture Patterns
*/
export declare const ARCHITECTURE_PATTERNS: Record<string, ArchitecturePattern>;
/**
* Suggest architecture pattern based on description
*/
export declare function suggestArchitecture(description: string): {
recommended: ArchitecturePattern;
alternatives: ArchitecturePattern[];
confidence: number;
};
/**
* Suggest nodes for a task
*/
export declare function suggestNodes(task: string): Array<{
node: string;
reason: string;
confidence: number;
}>;
/**
* Analyze workflow and provide insights
*/
export declare function analyzeWorkflow(workflow: Workflow): WorkflowInsight[];
/**
* Suggest improvements for a workflow
*/
export declare function suggestImprovements(workflow: Workflow): Array<{
category: string;
suggestion: string;
priority: 'low' | 'medium' | 'high';
}>;
/**
* Explain what a workflow does in natural language
*/
export declare function explainWorkflow(workflow: Workflow): string;
//# sourceMappingURL=intelligence.d.ts.map