FlowFactory AI uses a multi-agent pipeline where each agent has a specific role. Specialists activate dynamically based on the user's prompt.
These run sequentially on every generation:
| # | Agent | Model (default) | Role |
|---|---|---|---|
| 1 | Prompt Enhancer | sonnet-4.6 | Rewrites raw input into a clear, concise brief with detected services |
| 2 | Requirements Analyst | sonnet-4.6 | Extracts triggers, systems, steps, branches, error handling |
| 3 | Workflow Architect | sonnet-4.6 | Selects node types, maps connections, plans test cases |
| 4 | n8n Builder | opus-4.6 | Generates the full n8n workflow JSON with specialist knowledge |
| 5 | Repair Agent | opus-4.6 | Fixes validation failures (up to 3 attempts) |
| 6 | Designer | sonnet-4.6 | Adds sticky note documentation to the workflow |
Additionally, a Coverage Audit runs after generation to detect missing services and triggers an Extender Agent if needed.
These inject baseline rules into every generation regardless of prompt content:
| Agent | Purpose |
|---|---|
| Node Linker | 10 mandatory connection rules + self-verification checklist |
| Configuration Validator | Operation-aware required fields for all common node types |
| Best Practices | Naming, reliability, data flow, performance, maintainability |
| Expression Expert | ={{ }} syntax, $json.body, $node["Name"], common patterns |
| Security Auditor | Secrets, SQL injection, SSRF, webhook signatures, error messages |
| Node Catalog | 100+ services mapped to exact n8n node type names |
Up to 7 activate per generation based on keyword matching (+3 per keyword hit) and node type matching (+5 per match). Sorted by score, top 7 selected.
Webhook, HTTP Request, Database, AI/LLM, Messaging (Slack/Discord/Telegram), Email, Schedule, Logic (IF/Switch), Code Node, Error Handling
Sheets, Drive, Gmail, Calendar, Docs
Excel, Outlook, Teams, OneDrive
HubSpot, Salesforce, Pipedrive, Zoho, Airtable
Notion, Jira, Trello, Asana, ClickUp
Shopify, Stripe, WooCommerce, PayPal
Twitter/X, LinkedIn, YouTube, Facebook
AWS S3, Dropbox, FTP/SFTP, Binary Files
GitHub, GitLab, Bitbucket
Mailchimp, SendGrid, Twilio, WhatsApp, Zoom
Merge, Split In Batches, Wait, DateTime, Crypto, Set
LangChain AI Agent (with full sub-node connection schema), Vector Store/RAG, Embeddings
Technical SEO, Keyword Research, On-Page SEO, Pillar & Cluster Strategy, Backlinks, Schema/Structured Data, Local SEO, GEO/AEO (Answer Engine Optimization), E-E-A-T, Programmatic SEO
Market Research, Niche Research, Competitor Analysis, Google Trends, Community Research (Reddit/HN)
OpenAI, Anthropic Claude, Google Gemini, Mistral, Cohere, Groq, OpenRouter, Perplexity, xAI Grok — each with full HTTP request schemas
Pinterest, TikTok, Reddit
Apify (community node), Firecrawl, BrightData, ScrapingBee
Supabase, Typeform, Calendly, Intercom, Zendesk, Linear, Sentry, Algolia, Klaviyo, Customer.io
for each specialist:
score = 0
for each trigger keyword:
if prompt contains keyword: score += 3
for each nodeType in plan:
if specialist owns that nodeType: score += 5
sort by score descending
return meta_agents + top_7_domain_specialists
- Create a file in
src/server/specialists/(e.g.,my-category.ts) - Export an array of
Specialistobjects:export const MY_SPECIALISTS: Specialist[] = [ { id: "myService", name: "My Service Specialist", description: "What it does", triggers: ["keyword1", "keyword2"], nodeTypes: ["n8n-nodes-base.myNode"], knowledge: `## MY SERVICE\nConfig pattern: {...}\nRULES: ...`, }, ];
- Import and spread into
SPECIALISTSinsrc/server/specialists/index.ts
Each pipeline agent can use a different Claude model. Defaults are optimized for cost/quality balance. Users can override per-agent in the Studio settings (gear icon).
Available models: auto, claude-sonnet-4, claude-sonnet-4.5, claude-sonnet-4.6, claude-haiku-4.5, claude-opus-4.5, claude-opus-4.6, claude-opus-4.7
Auto-fallback: if a model returns 503, the system automatically retries with lighter models in the chain.