dotFactory

dotFactory vs n8n for AI agent workflows

By Simone Mosciatti

n8n is the more direct fit when you want a visual tool for connecting apps, APIs, and AI components — including agents, tools, memory, and MCP — in n8n Cloud or a self-hosted instance. Use dotFactory when you want a particularly clear, pleasant way to orchestrate AI coding agents as typed steps: structured inputs and outputs for the LLM, a path that can open a pull request, room for a human to review, and a Run you can actually watch. If you need to self-host the orchestration platform itself, n8n can do that; dotFactory cannot.

This article compares n8n with dotFactory for orchestrating AI agents, on documented capabilities. It is not a benchmark. For the wider landscape, see Orchestrating AI agents: dotFactory vs GitHub Actions, n8n, Temporal, and Airflow.

What n8n is good at

n8n is a fair-code workflow automation tool that combines business-process automation with AI features. You build a workflow from nodes on a canvas. n8n documents AI-powered workflows that connect LLM providers, agents, tools, memory, and MCP servers, and you can use n8n Cloud or host n8n yourself.

That makes n8n a strong choice when the problem is integration: wire an agent into a large set of SaaS and API nodes, react to a webhook, and keep the work in a visual editor you may self-host. If your agent is one node in a broader business automation, n8n is built for that shape.

What dotFactory makes easy

In dotFactory, the agent is not a node on a canvas. It is a typed step in a .fct graph. You bind a prompt and other inputs through ports; extra inputs are rendered to the model as data, and secrets are not. The step's out: ports become a JSON schema the model must satisfy, so the factory receives a typed record it can pass to the next step — not an unstructured completion you have to pick apart. opencode and codex-cloud both work this way.

That typed record is what makes the rest of the path feel light. Bind a branch, a title, and a body into github_pull_request to open a pull request from the branch the agent produced. Start a follow-up Run when GitHub reports a failed workflow run, or read ci_status first. Put a human gate in front of a merge so a person sees the agent's context and answers a form. Then open the Run: the flow, each node's outcome, the pull-request URL in the effects list, and the model's outputs behind Reveal, with secrets redacted.

The adapters on the hosted platform are a narrower set than n8n's connector catalog — GitHub, containers, S3, AWS role assumption, and the documented agent and command runners — plus container steps for tools you package yourself. That is a deliberate trade: fewer app connectors, a clearer contract around the agent.

dotFactory is a hosted service. Its platform code is not open source, and you cannot self-host it. You can run compute in your own AWS account, or implement a different platform from the open specification.

At a glance

n8n dotFactory
What it is for Visual automation that connects apps, APIs, and AI components. Orchestrating AI agents as typed steps in a reviewable .fct graph.
How you define the work Nodes on the editor canvas. A .fct file of triggers, agent steps, ports, bindings, and effects.
LLM inputs and outputs Data that flows between AI nodes, tools, memory, and MCP. Named, typed ports: bindings into the prompt; out: as a JSON schema the model must satisfy.
Pull requests and CI Via GitHub nodes and the rest of the connector catalog, if you wire them. Built-in GitHub effects and ports: open or review a PR, react to a workflow_run, read ci_status.
Human review Whatever you build into the workflow. A gate pauses the Run on a form, with the agent's context in view.
Watching a run Execution history in the n8n editor. The Run page: flow, nodes, effects, Revealable values, redacted secrets, logs and traces.
Where it runs n8n Cloud or self-hosted. A hosted service only. Compute can run in your AWS account.

When to pick each

Start with n8n if you need a visual editor, a wide catalog of SaaS and API connectors, or a self-hosted automation platform — especially when the agent is one step in an integration-heavy business process.

Start with dotFactory if the work you care about is an AI coding agent and the path around it: typed model I/O, a pull request, CI feedback, a human review, and an inspectable Run. The graph is the thing you read; the Run is the thing you watch.

They can share a process. An n8n workflow can call dotFactory's API to start a factory when an integration fires.

An example: an agent that classifies work, then opens a PR

The choice-routing example asks an agent to classify incoming work as a typed choice, then enables one path and skips the other. The coverage-tests example lets an agent add tests only when coverage is below a threshold, and can pause for review. Those are small, readable factories: the model's output is a typed value the rest of the graph can trust.

A larger path looks like Growing a software factory: an issue arrives, an agent writes a patch, a pull request is opened from the branch it produced, and a failed CI run can be fed back for another attempt. You would still use n8n if the same team also needed to fan that ticket out to a dozen SaaS tools. The factory owns the agent, the types, and the GitHub effects.

Frequently asked questions

n8n vs dotFactory for AI agents: which should I use?

Use n8n when you want a visual, integration-heavy agent workflow you can self-host or run in n8n Cloud. Use dotFactory when you want typed LLM inputs and outputs, GitHub pull-request and CI effects, a human gate, and a Run page built around that agent path.

Does dotFactory have a visual agent builder?

The hosted app shows a factory's flow diagram, generated from the .fct source, and a Run uses that same diagram with each agent's outcome. You author the workflow as code, not by placing nodes on a canvas. See the overview and Your First Factory.

How does dotFactory type the input and output of an LLM?

Bindings feed a prompt and other typed inputs into the agent step; secrets are not shown to the model. The out: ports are compiled into a JSON schema the model must satisfy, so the next step receives a typed record. Details are in the adapters guide.

Can I self-host dotFactory like n8n?

No. You cannot self-host the dotFactory platform; it is a hosted service, and its code is not open source. You can run compute in your own AWS account, or implement a different platform from the open specification. n8n can be self-hosted or used as n8n Cloud.

If you want to try an agent workflow, start with Your First Factory or the getting-started guide. The overview also covers GitHub Actions, Temporal, and Airflow.

Portrait of Simone Mosciatti

Written by

Simone has spent more than 10 years building software, from research at CERN to big tech at AWS and fast-growing startups like Rippling. These days he's building dotFactory, because he thinks writing software should feel a lot more like running a well-oiled factory.