Automation
n8n
Cheat sheet · https://pcornel.dk/topic.php?topic=5573
Answer
n8n is a self-hostable, node-based workflow automation tool that connects APIs and services visually, with triggers, data transformation, branching and code nodes, similar to Zapier but under your control.
Remember
- Credentials are stored encrypted in n8n.
- Use error workflows for alerts.
- Test and production webhook URLs differ.
First checks
curl -sS https://<n8n>/healthz— health- Workflow list and active state — inventory
- Credentials and execution data retention — security
Verify in this order
trigger → nodes → actions → execution log
Where it usually breaks
Automation/controller success is not target-state proof; target config/state is not effective-runtime proof; effective state is not workload proof.
Automation → n8n · operational reference
| Layer | Automation → n8n operational reference |
|---|---|
| Runtime/ownership | n8n workflow automation · identify controller/parser, durable intent, identity and target ownership before mutation |
| Persistent intent | Versioned definition/configuration with explicit dependencies, scope and credential boundary |
| Verification | Export/inspect the workflow JSON, execute with pinned input, inspect execution data per node, then verify the external target independently. |
| Expected interpretation | The intended workflow version runs with the expected credentials and node parameters, each node receives/emits the expected items, and external side effects are independently verified. |
| Recovery boundary | Preserve correlation IDs + pre-state, repair first failing boundary, then verify the target independently |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5573