Deterministic workflows suit predictable business processes. Agents earn their place when a decision needs interpretation.
- 10Workloads assessed
- 6Rated High risk
- 6Slack escalations, one per High
- 50Records in the enrolment ETL
01 · The distinction
Two tools for two kinds of work.
If the path is already known, explicit orchestration may be simpler.
- A workflowThe path is known. Triggers, branches, API calls and outputs run the same way every time, and failures are visible.
- An agentThe path is not known. A decision needs interpretation and reasoning at run time.
02 · Practice
A self-hosted n8n workbench.
I set up n8n on a VPS in Docker, served over HTTPS, to practise triggers, conditional branching, API calls and workflow execution. One exercise was a 50-record student-enrolment ETL with an LLM step for cleaning and classification, producing four outputs.
The lab keeps workflow logic apart from credentials and infrastructure, and designs observability, retries and error handling in from the start rather than adding them after.
03 · In a real build
n8n for the steps, an API for the boundary.
In the migration assessment, n8n consolidates and standardises the inventory files, because the input was deliberately inconsistent, and a FastAPI service with Pydantic validation exposes the assessment as a clear API. The reasoning, retrieval and risk guardrail sit behind that boundary.
Escalation follows risk, not habit: only High-risk items reach Slack. In the final test 6 High-risk workloads produced exactly 6 escalations, and all 10 were flagged for human review.
04 · Where I stand
Learning, labelled as learning.
The n8n environment is a working lab on the Learning Lab rung of the maturity ladder. Its lesson is narrow and useful: choose the workflow when the process is predictable, and keep agents for decisions that need judgement.
05 · Use it yourself
Workflow or agent: a decision guide.
- Are the inputs predictable?Fixed fields and known formats point to a workflow. Free text that needs interpreting points to a model.
- Are the steps fixed?If the order never changes, draw it as a workflow. If the next step depends on what was found, consider an agent for that one step.
- Can a failure be seen and repeated?Workflows make failures visible and safe to retry. Make sure whatever you choose can do the same.
- What does one run cost?A workflow step costs almost nothing. A model call costs money and time on every run.
- Who has to maintain it?A diagram a colleague can read beats clever code only its author understands.
06 · Pitfalls
Building a workflow that survives real use.
- Retry with a pauseRetry temporary failures a few times, waiting longer each time, then stop and report.
- Make repeats harmlessDesign each step so running it twice does not duplicate a record or send a second message.
- Route errors somewhereGive every workflow an error path that tells a person, with the input that failed.
- Keep the raw inputStore what came in before you change it. You will need it to find out what went wrong.
- Keep secrets out of the flowUse the tool’s credential store, never values typed into a node.
What I took away
- A known path is a workflow; an unknown one may be an agent.
- Put an API boundary between orchestration and reasoning.
- Design retries, errors and visibility first, not last.