Use this to start with n8n as a self-hosted workflow automation tool.
n8n Fundamentals
n8n fundamentals: a self-hostable workflow tool where a trigger starts a flow of nodes that pass JSON items, with expressions, code nodes and hundreds of integrations.
1. n8n fundamentals: workflows of nodes, triggers start them, data flows as JSON items.
2. PostgreSQL for production.
3. Queue mode with Redis for scale.
4. Protect the editor UI (auth, TLS).
5. Keep updated.
trigger → items → nodes → output
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Record workflow ID/version, execution ID, node ID and external object correlation IDs; inspect the runtime/control-plane result; then query downstream node results and any external systems changed by the workflow through an independent read path and compare it with the versioned intent. The negative fixture should deliberately exercise risks such as expression coercion, partial item failure, credential drift, retries duplicating side effects, error workflow recursion and successful node status masking external inconsistency, choosing the cases most relevant to workflow/node/execution data model, credentials, expressions, trigger/manual execution and tracing one item through node outputs to external side effects. For n8n → n8n Fundamentals, the evidence must connect the control-plane result to downstream node results and any external systems changed by the workflow and explain any gap between desired, controller-reported and consumer-visible state.
Step 2 Common mistakes Narrow the fault
- Running n8n without backups of workflows and credentials.
Step 3 Where it fails Narrow the fault
Failure analysis for n8n → n8n Fundamentals should follow the path through the components: trigger/input → node execution → expression/branch/error path → connector/API → external target → execution record/read-back. Common failure classes include expression coercion, partial item failure, credential drift, retries duplicating side effects, error workflow recursion and successful node status masking external inconsistency. Before retrying a mutating operation, read current target state using the stable identity workflow ID/version, execution ID, node ID and external object correlation IDs; if state is unknown, stop broad retries.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- n8n is self-hostable.
- Nodes pass JSON items.
- Hundreds of integrations exist.
docker logs <n8n-container> --tail 50— logs- N8N_ENCRYPTION_KEY set and backed up — credential encryption
- Database (PostgreSQL) and queue mode — production setup
ReferenceWhy it matters1 section · depth on demand
In depth
n8n fundamentals: every workflow starts with a trigger node, and each node receives a list of items (JSON objects), processes them, and outputs items to the next node. Expressions ({{ $json.field }}) reference data from earlier nodes.
| Concept | Meaning |
|---|---|
| Trigger node | Webhook, schedule, app event |
| Regular node | Action or transformation |
| Item | One JSON record flowing through |
| Expression | Inline JavaScript-like reference to data |
| Execution | One run, viewable with data per node |
Inspect a past execution to see the exact items at each node — the fastest way to debug mapping problems.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
n8n → n8n Fundamentals is owned at runtime by the n8n workflow execution engine evaluating nodes, expressions and credentials for one execution. Its durable intent is versioned workflow JSON with node parameters, expressions, connections and credential references; the stable identity contract is workflow ID/version, execution ID, node ID and external object correlation IDs. The consumer-visible target is downstream node results and any external systems changed by the workflow. The operating invariants are that node inputs are reproducible, credentials are bound correctly, expressions/types are explicit, branch/error behavior is understood and side effects are independently verified. Follow the chain of components trigger/input → node execution → expression/branch/error path → connector/API → external target → execution record/read-back and record which layer currently owns truth. The linked authority for bounded mechanics is n8n Documentation; documentation support is separate from observed lab/production Evidence.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in n8n > n8n Fundamentals. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.n8n.io/ · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
Capture at minimum workflow/execution/node IDs, item index, input/output fields, branch/error path, credential reference, connector status, external object ID and target read-back. For workflow/node/execution data model, credentials, expressions, trigger/manual execution and tracing one item through node outputs to external side effects, prefer typed fields and stable IDs over human presentation text.