Dataset
n8n workflow and execution datasets for AI training
An n8n dataset is a business's n8n workflows and the record of them running: each workflow as a JSON graph of nodes and connections, including Code nodes and AI Agent nodes with their models and tools, plus the executions with every node's input and output items, where they were saved. SourceX sources it to a buyer's spec from established businesses that run n8n, self-hosted or on n8n Cloud. Each dataset is de-identified, with the credentials table excluded, and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Workflow JSON with nodes, connections and settings, and saved executions with per-node run data and the workflow copy each run used
- Typical systems
- n8n self-hosted on SQLite or PostgreSQL, and n8n Cloud, with Code nodes, AI Agent nodes, webhooks, tags, variables and projects in scope
- Typical history
- Workflows as they stand; executions back to the last pruning pass, for the outcomes each workflow saves
- Modality
- JSON graph definitions, JavaScript or Python in Code nodes, structured execution rows and JSON items
- Delivery formats
- One JSON file per workflow, JSONL for executions with run data parsed to plain JSON, binary files separately where kept
- Preparation
- Credentials table excluded; pinned data, node parameters and Code nodes screened for keys; items and prompts de-identified
- Licensing
- Scoped per instance, project and workflow; community templates and agency-built workflows checked for ownership
- Availability
- Sourced to your spec from businesses that run n8n; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| workflow_id | string | Pseudonymous ID of the Workflow from the workflow_entity table, carried by each execution as workflowId. |
| nodes | array | The workflow's nodes: each Node's name, type such as n8n-nodes-base.httpRequest, typeVersion and parameters. |
| connections | object | The Connection map, keyed by source node name, with the connection type (main, or ai_languageModel, ai_tool and ai_memory for AI sub-nodes) and the target node. |
| code_nodes | array | Source held in Code node parameters, jsCode or pythonCode, and in older Function nodes. |
| workflow_settings | object | The workflow's settings object: save flags for failed, successful and manual executions, execution order and error workflow. |
| organization | object | Tags, the Project the workflow sits in and the names of Variables it reads; variable values are removed. |
| credential_refs | array | The Credential type and pseudonymous ID each node references; rows of the encrypted credentials_entity table are out of scope. |
| execution_id | string | ID of one Execution row from the execution_entity table. |
| mode | enum | How the run started: trigger, webhook, manual, retry, error, or integrated when called as a sub-workflow. |
| status | object | The execution's status (success, error, canceled, crashed or waiting) with startedAt, stoppedAt, any waitTill time and the retryOf link to the run it retried. |
| workflow_snapshot | object | The workflowData copy stored with the Execution data: nodes and connections as they stood when the run started. |
| run_data | object | Execution data parsed from resultData.runData: for each node name, every run's start time, execution time, source node, output items and error. |
| ai_steps | array | For AI Agent node runs, the sub-node records: messages sent to the chat model, its response, token usage and each tool call's input and output. |
Field names from the table above; values are masked placeholders.
Example record
{
"workflow_id": "wf_c41a9e",
"nodes": [
{"name": "Support webhook", "type": "n8n-nodes-base.webhook"},
{"name": "Triage agent", "type": "@n8n/n8n-nodes-langchain.agent"},
{"name": "Chat model", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi"},
{"name": "Order lookup", "type": "@n8n/n8n-nodes-langchain.toolWorkflow"},
{"name": "Set priority", "type": "n8n-nodes-base.code"}
],
"connections": {
"Support webhook": {"main": [[{"node": "Triage agent", "type": "main", "index": 0}]]},
"Chat model": {
"ai_languageModel": [[{"node": "Triage agent", "type": "ai_languageModel", "index": 0}]]
},
"Order lookup": {"ai_tool": [[{"node": "Triage agent", "type": "ai_tool", "index": 0}]]},
"Triage agent": {"main": [[{"node": "Set priority", "type": "main", "index": 0}]]}
},
"code_nodes": [
{
"node": "Set priority",
"jsCode": "return $input.all().map(i => ({ json: { ...i.json, urgent: i.json.output === 'billing' } }));"
}
],
"execution_id": "184220",
"mode": "webhook",
"status": {"value": "success", "startedAt": "2024-06-03T10:12:01Z"},
"run_data": {
"Triage agent": [
{
"startTime": 1717409521334,
"executionTime": 2870,
"source": "Support webhook",
"items": [{"json": {"output": "billing"}, "pairedItem": {"item": 0}}]
}
]
},
"ai_steps": [
{
"node": "Chat model",
"messages": [
"System: Classify the ticket.",
"Human: I was charged twice for order [ORDER_ID]"
],
"tokenUsage": {"promptTokens": 412, "completionTokens": 38}
},
{
"node": "Order lookup",
"input": {"order": "[ORDER_ID]"},
"output": {"charges": 2}
}
]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Agents that build workflows
Workflow JSON shows how a person wired triggers, nodes, expressions and error paths for a real task.
Agent traces inside business processes
AI Agent runs give the prompt, the model's responses and each tool call in order, with the trigger that started them.
Debugging and repair
A failed execution holds the node error and the workflow as it ran, and a later success holds the fix.
Glue code generation
Code nodes come with the items that went in and came out, so each one is a small function with real test cases.
Evaluation sets
A trigger item and a workflow snapshot make a test item, scored against the saved output of every node.
Use-case guides: Enterprise and computer-use agents, Coding agents, Private evaluation sets
What makes this data valuable
Successes saved too
Workflows were set to save successful executions, not only failed ones.
Pruning off or generous
Executions reach back months or years instead of a few days.
Snapshot on every run
Each execution carries the workflowData copy it ran on.
AI sub-node data
Chat model and tool runs are saved with messages, responses and token counts.
Production modes
Most runs are trigger or webhook executions, with manual test runs flagged.
Binary data resolves
Files that items reference still exist in the filesystem or object store.
License terms
N8n dataset
A self-hosted instance keeps the full record in the company's own database
n8n is often self-hosted, and a self-hosted instance writes everything to a database the company controls: a SQLite file by default, PostgreSQL on larger installs. The workflow_entity table holds each workflow with its nodes and connections as JSON. The execution_entity table holds one row per run with its mode, status, timing and links to retries. The execution_data table holds the heavy part: the run data for every node, and workflowData, a copy of the workflow as it stood when the run started. A database dump therefore returns the per-node record in full, and each saved run comes with the definition that produced it.
Run data is keyed by node name, and each entry lists that node's runs with a start time, an execution time, the node it received data from and its output items. An item is a json object, optional binary references and a pairedItem pointer back to the input item it came from. The data column is stored in a flattened, reference-based serialization, so it has to be parsed with the matching library before it reads as nested JSON. Connections are keyed by node name too, so a renamed node breaks joins across snapshots.
AI workflows use the same structure. An AI Agent node is a root node, and its chat model, memory and tools are sub-nodes attached through typed connections such as ai_languageModel, ai_memory and ai_tool. When a run is saved, each sub-node has its own run data: the messages sent to the model, the response, token counts and every tool call with its input and output. The workflow_entity table holds only the current version. Earlier saved versions sit in workflow_history, and how far back they are kept depends on the plan. And n8n Cloud gives no database access, so there the route is the public REST API or workflow JSON downloaded from the editor.
Save settings and pruning decide whether a history exists
A workflow that has run for years may have almost no stored executions. Each workflow's settings say whether to save failed production executions, successful ones and manual test runs, and the instance sets the defaults through environment variables. Saving successes makes the database grow fast, so some teams keep errors only. A dataset from such an instance holds failures with no successful runs of the same workflow to compare. Manual executions are a builder testing in the editor, and should be separated from trigger and webhook runs.
Pruning is the second cut, and n8n enables it by default. It removes finished executions once they pass a maximum age or the total passes a maximum count, oldest first, marking them for deletion and later removing them for good. Executions someone annotated with a tag or rating are never pruned, so a heavily pruned instance can still hold a hand-picked set. The count is one total for the instance, so a busy workflow can push a quiet one's history out. Depending on the binary data mode, files are kept inline in the execution data, in the database, on the filesystem or in external object storage. They are deleted when their executions are pruned, and filesystem copies are lost when a container is rebuilt without its volume.
What survives is sensitive in specific places. Execution items hold whatever passed through: customer records, email bodies and, for AI nodes, full prompts and model responses. Workflow JSON can hold pinned data, real items a builder captured from a past run and saved into the workflow as test input. Credentials live encrypted in their own table and nodes reference them by ID and name, but keys pasted into HTTP Request headers or Code nodes are plain text. To test a sample, count executions per workflow by month, status and mode, compare that with how often the trigger should have fired, and parse a few data columns end to end.
What to check before licensing
- Have the data owner and your counsel check n8n's license and terms on exported data and API use, for the self-hosted edition or n8n Cloud as applies.
- Confirm the credentials table is excluded from any database dump, and that node parameters and Code nodes were scanned for hard-coded keys.
- Ask for each workflow's save settings and the instance defaults, so you know whether successful runs were ever stored.
- Ask whether execution pruning was left on, with what age and count limits, and for the earliest execution date per workflow.
- Check execution data for customer personal data and for model prompts and responses, and ask how items were de-identified.
- Check workflow JSON for pinned data, which can hold real records captured during building.
- Ask where binary data was stored and whether the files that executions reference still exist.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
What does an n8n dataset contain?
It contains workflow definitions and, where they were saved, the executions of those workflows. A definition is a JSON document of nodes, their parameters and the connections between them, including Code nodes and AI Agent nodes. An execution has its mode and status, plus the items every node received and produced. You specify the workflows and run history you need, and supply is not guaranteed.
Why does it matter whether n8n is self-hosted?
Because it decides how the data can be taken out. A self-hosted instance keeps workflows and executions in the business's own SQLite or PostgreSQL database, so the complete per-node record can be dumped directly. On n8n Cloud there is no database access, and extraction goes through the public REST API or workflow JSON downloaded from the editor. Ask which applies and how the sample was produced.
How much execution history should I expect?
It varies widely between instances, and between workflows on the same instance. Each workflow's settings decide whether successful, failed and manual executions are saved, and execution pruning, which n8n enables by default, deletes old runs by age or count. An instance can run for years and hold only recent failures. Ask for the save settings, the pruning configuration and the earliest execution date per workflow.
Are AI Agent runs captured step by step?
Yes, when the execution was saved. The AI Agent node's chat model, memory and tools are separate sub-nodes, and each records its own run data: the messages sent to the model, the response, token usage and each tool call with input and output. Prompts and responses often contain customer text, so check how they were de-identified.
Can a run be matched to the workflow version that produced it?
Yes, for saved executions. n8n stores a copy of the workflow with each execution, so the nodes and connections that ran come with the run data even if the workflow was edited later. The workflow table itself keeps only the current version, and how long older versions stay in workflow history depends on the plan. Ask whether the snapshot is included in the delivery.
Is SourceX affiliated with n8n GmbH?
n8n is named to identify the system the records come from. That does not imply a partnership with or endorsement by n8n GmbH. The records belong to the business that runs n8n, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- RPA bot logs and process definitions
Bot workflow files with selectors, branches and handlers, joined to queue items, job runs, logs and published versions
- Make scenario blueprints and execution logs
Scenario blueprints as JSON with settings and schedule, and the execution history with per-module bundles where it survives
- Zapier automation definitions and run histories
Zap definitions with triggers, action steps, filters, paths and field mappings, and Zap runs with each step's Data In and Data Out
- Prompt libraries and LLM application logs
Versioned prompt templates and tool definitions, with logged production calls and the feedback attached to them
- Tool-call and API traces
Ordered tool and API calls with schemas, arguments, responses, errors, retries and the task result
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.