Reference > Core Concepts

Workflows and Executions

Reference for n8n workflows, executions, execution states, and execution data.

A workflow is a set of connected nodes that automates a process, starting from a single trigger and stored as JSON you can export and version. An execution is one run of that workflow: n8n records the input, output, and status of every node, in a state of waiting, running, success, or error. Manual runs show data in the editor; production runs follow your retention settings.

What is a workflow in n8n?

A workflow is a collection of nodes connected together to automate a process. Each workflow has a single entry point (a trigger node) and can branch, merge, and fan out through any number of action and logic nodes. Workflows are stored as JSON and can be exported, imported, versioned, and shared.

Key properties of a workflow:

Property Description
Name Human-readable label shown in the editor and execution list
ID Unique numeric identifier assigned on creation
Active Whether the workflow listens for trigger events in production
Tags Optional labels for organizing workflows
Settings Per-workflow overrides for timezone, error workflow, retry behavior, and execution timeout

What is an execution, and what states can it have?

An execution is a single run of a workflow from start to finish. Every time a workflow is triggered, n8n creates an execution record that captures the input data, output data, and status for every node that ran.

State Meaning
Waiting Execution is paused, waiting for an external event (e.g., a Wait node or webhook response)
Running Execution is actively processing nodes
Success All nodes completed without error
Error At least one node failed and no error handling caught it

What is the difference between manual and production executions?

  • Manual execution -- triggered by clicking "Test Workflow" or "Test Step" in the editor. Data is always shown in the UI. The workflow does not need to be active.
  • Production execution -- triggered automatically by a trigger node while the workflow is set to Active. Execution data is saved according to the instance or workflow-level retention settings.

Note: Manual executions always use the test webhook URL, while production executions use the production webhook URL. These are different endpoints.

How is execution data stored and pruned?

Execution data includes the full input and output JSON for every node. Retention is controlled at two levels:

  1. Instance-level -- set via environment variables (EXECUTIONS_DATA_PRUNE, EXECUTIONS_DATA_MAX_AGE).
  2. Workflow-level -- override in the workflow settings panel under "Save Execution Data."

Tip: On busy instances, prune old execution data aggressively to keep database size manageable. Store only failed executions if storage is a concern.

Related: Triggers · Nodes · Error Handling

Showcase builds

19 complete workflows from my own projects, each with its n8n workflow JSON to import. Showcase entries link the file at the end of the article.

See the showcase builds

Keep reading

190 entries grouped by topic, from first workflow to queue mode. Free, no signup.

Browse the encyclopedia

Need it built?

I design, build and run n8n systems for clients. Every engagement starts with a $1,500 diagnostic audit, credited toward the build.

Book an introductory call