
n8n-data-tables
Use when working with n8n's built-in Data Tables, designing schemas, inserting/updating/upserting rows, deduping, or querying. Triggers on "Data Table", "data table", n8n-nodes-base.dataTable, "dedup", "idempotency", "lookup", "persistent state", "store across executions", or any schema design discussion inside n8n.
- Installs
- 354
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/n8n-io/skills --skill n8n-data-tables- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads n8n-data-tables automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
n8n Data Tables
Data Tables are n8n's built-in tabular storage: real tables inside the n8n instance with columns, types, rows, and CRUD via the dataTable node and data-table MCP tools.
Use them for local persistent state: lookup tables, recent events, per-session inventories, counters, idempotency tracking, dedup state when there's row-level logic or external visibility (plain "have I seen this value?" dedup belongs in the Remove Duplicates node). Small-to-moderate volume (tens of thousands of rows fine, millions belong in a real DB).
Non-negotiables
- System-managed columns + external IDs. Three columns auto-exist on every table:
id(bigserial),createdAt,updatedAt. Don't declare them increate_data_table(errors or shadows the system column). Don't write them on insert. For domain identifiers from outside (arxivId, stripeCustomerId, requestId), add a separate column and key dedup/lookup on that. - Only primitives in columns, nested data uses
string+_objectpostfix. No JSON/object/array column types exist. For nested data (arrays, parsed objects), use astringcolumn withJSON.stringify(...)on write andJSON.parse(...)on read. Mark the column with_object(e.g.,keyInsights_object). The postfix is the contract that tells readers to parse. Seereferences/SCHEMA_DESIGN.md.
Strong defaults
- Don't add a Set node before a Data Table node to modify fields. The Data Table node's per-column expression slots are just as powerful as Set fields, so the Set node is doing zero work the Data Table node can't do itself. (Same Set-node antipattern called out in
n8n-expressions.) - Match n8n's column casing: camelCase. The auto-managed columns are camelCase (
createdAt,updatedAt), so user columns read more cleanly when they match:arxivId,paperId,taxRate. Mixed casing in the same query (createdAt >= ... AND arxiv_id eq ...) reads as a typo. Keep the_objectpostfix on stringified-blob columns regardless (keyInsights_object), the underscore is a contract marker, not casing.
- Verify the
columnsparameter viaget_workflow_detailsafter create/update. The UI has a display quirk in manual mapping mode ("Currently no items exist" with no actual data loss). Checking the JSON confirms what's persisted. - Relational design works when the shape calls for it. For genuine parent-child data (papers → summaries, customers → orders), reference parents by
id, name columns explicitly (paperId,customerId), and enforce integrity in workflow logic. Don't force it on flat use cases (dedup, lookup, audit) where there's no relationship to model. - Storage format is not interface format. Parse
_objectfields before returning them from a sub-workflow. Callers should never receive stringified shells they have to parse themselves. Seereferences/SCHEMA_DESIGN.md"Storage format ≠ interface format".
The default columns
Every Data Table has these whether you declare them or not:
| Column | Type | Behavior |
|---|---|---|
id | bigserial / number | Auto-incrementing primary key. n8n assigns on insert, and you can't write to it. Returned in the insert response. |
createdAt | timestamp | Set automatically on insert. |
updatedAt | timestamp | Refreshed automatically on each update. |
In practice:
- Don't declare them in
create_data_table. Already there. - Use them in queries without your own timestamp columns. "Created today":
createdAt >= '<today ISO>'. "Updated since last sync":updatedAt >= $('Last Sync').item.json.timestamp. - Don't use them as cross-system identifiers. Auto-
idis internal, and resets on table recreate or instance migration. For domain identifiers, use your own column.
Relational design when the shape calls for it
Data Tables don't enforce foreign keys, but you can still model parent-child data across tables when the data genuinely has that shape. The catch: integrity is your responsibility, not n8n's.
- Reference parent rows by
id. A child table holds the parent'sidin a column. - Document references in column names.
paperId,customerId,eventIdmake the relationship obvious. - Enforce integrity in workflow logic. Before inserting a child, look up the parent. Before deleting a parent, decide what happens to children (delete, orphan, archive). n8n won't cascade.
- Watch for stale references. Children pointing at deleted parents are silent bugs. Soft-delete, or run cleanup workflows.
For complex relational structure (3+ tables with joins, transactional writes), reach for an actual SQL DB.
Operations: which one for what
| Operation | When |
|---|---|
insert | Always-add. New row, n8n assigns id. |
upsert | "Add if new, update if exists." Needs a matchType and filter to decide existence. |
update | "Modify rows matching this filter." No insert if no match. |
get | Fetch rows matching a filter (returns 0+). Supports orderBy, limit, returnAll. |
deleteRows | Remove rows matching a filter. |
rowExists / rowNotExists | Boolean-style filter against incoming items. Common for dedup branching. |
For the full operation surface (filter syntax, matchType, sort patterns), see references/OPERATIONS.md.
The "Currently no items exist" UI quirk
When the SDK saves manual-mode column mappings (mappingMode: 'defineBelow'), the n8n UI's "Values to insert" pane can render empty ("Currently no items exist") even though runtime persists data correctly. If the user reports the Insert node "looks broken" or "has no fields," tell them: it's a UI display issue, press the reload (refresh) button on the columns parameter, and it repopulates the schema and the mappings render. No data loss, safe to do anytime.
Common patterns
Dedup by external ID
Default to the Remove Duplicates node ("items seen in previous executions" mode) for plain "have I seen this value?" dedup. It's a one-node solution with an internal store, no schema to maintain. Data Tables only earn the slot when there's a reason for the dedup state to live in a real table:
- You'll query or inspect the dedup state. Dashboards, audit, "what have we processed in the last week?"
- Row-level logic on hits. Per-category TTL ("expire after 30 days for category A, 7 days for category B"), conditional re-process based on stored state, branching on a status column.
- Per-tenant or per-user namespacing that the
Remove Duplicateshistory-store can't express.
When that bar is met:
[Source: { arxivId, ... }]
↓
[Data Table Get: filter arxivId eq $json.arxivId, limit 1]
↓
[IF: result has items?]
├── Yes → [Skip, or apply row-level logic from the stored row]
└── No → [Process] → [Data Table Insert: { arxivId, ...rest }]
For the full pattern surface (upsert, rowNotExists, Get+IF, idempotency keys), see references/DEDUP_PATTERNS.md.
Lookup tables
Stable reference data (country → tax rate, plan → feature flags). Edited via n8n UI, and workflows read at execution:
[Data Table Get: filter country eq $json.country, limit 1]
↓
[Use the looked-up row's taxRate, etc.]
Recent events / audit trail
Append-only insert, queried later:
[Workflow event] → [Data Table Insert: { userId, eventType, payloadSummary }]
createdAt makes "recent events in the last hour" trivial without your own timestamp.
Reference files
| File | Read when |
|---|---|
references/SCHEMA_DESIGN.md | Designing columns/types, the no-FK relational pattern, mapping mode (defineBelow vs autoMapInputData), when Data Tables are the wrong tool |
references/OPERATIONS.md | Operation surface (insert/upsert/update/get/delete/rowExists), filter syntax, matchType, orderBy |
references/DEDUP_PATTERNS.md | Idempotency keys, RemoveDuplicates node vs Data Table dedup, search-then-insert vs upsert |
For expression discipline ($json vs $('Node Name').item.json, the Set-node antipattern), see n8n-expressions. For Merge convergence and same-shape branches, see n8n-node-configuration references/MERGE_NODE.md.
Anti-patterns
| Anti-pattern | What goes wrong | Fix |
|---|---|---|
| Set node upstream of Insert "to shape the input" | Extra node for nothing, classic Set antipattern, field shape drifts when you add columns | Map directly in the Insert node's per-column slots, OR rename upstream fields to enable auto-map |
Declaring id, createdAt, updatedAt in create_data_table | Errors, or shadows the system column with a user column that doesn't auto-update | Don't declare them, they're already there |
| Storing application-critical data in Data Tables | If n8n breaks, you lose access | Use a real DB for data you can't lose |
| Cross-app system-of-record in Data Tables | Hard to share with non-n8n consumers, awkward query surface | Use a real DB |
Treating auto-id as a stable cross-instance identifier | Resets if the table is recreated, not portable | Use a domain ID column (arxivId, requestId) for cross-system references |
| Foreign-key cascade assumptions | n8n doesn't cascade, deleted parents leave orphan children | Soft-delete, or run cleanup workflows that maintain referential integrity |
| Referencing an immediately-prior node when an intermediate stripped json | Insert silently writes NULLs for fields that "should be there" | Reference a stable upstream node by name, or use a NoOp/Merge convergence anchor (see n8n-expressions and n8n-node-configuration references/MERGE_NODE.md) |
| Manual-map mode + Set node to fix "Currently no items exist" | Doesn't fix anything, that's a UI quirk, you've added a useless Set node | Verify via get_workflow_details that columns.value has your mappings, runtime is fine. Tell the user to press the reload button on the columns parameter to make the UI render the fields. |
Verification before publishing
After creating or updating a workflow that uses Data Tables:
validate_workflowpasses.get_workflow_detailsand inspect each Data Table node'scolumns. Bothvalueand (for manual map)schemapopulated.test_workflowwith pinned data. Insert response should includeid,createdAt,updatedAt.- Inspect actual Data Table contents via UI or follow-up Get to confirm columns aren't silently NULL.
Step 4 especially the first time you wire a new Insert. Context-stripping intermediates + manual map + UI quirk silently produce NULL columns.
FAQ
What does the n8n-data-tables skill do?
Use when working with n8n's built-in Data Tables, designing schemas, inserting/updating/upserting rows, deduping, or querying. Triggers on "Data Table", "data table", n8n-nodes-base.dataTable, "dedup", "idempotency", "lookup", "persistent state", "store across executions", or any schema design discussion inside n8n.
How do I install n8n-data-tables?
Run npx skills add https://github.com/n8n-io/skills --skill n8n-data-tables in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/n8n-data-tables/ (personal) or .claude/skills/n8n-data-tables/ (project).
Which AI agents can use n8n-data-tables?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is n8n-data-tables safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains n8n-data-tables?
It is published by n8n-io in n8n-io/skills, and it is an official skill from the maker of the technology it covers. It has 354 recorded installs.
More from n8n-io/skills
n8n-workflow-lifecycle-official
n8n-io/skills
Use when starting, designing, organizing, finishing, or shipping an n8n workflow. Covers visual layout (sticky notes), descriptions that capture the why, node names, validation, testing, folders/projects, and publishing. Triggers on createworkflowfromcode, updateworkflow, validateworkflow, publishworkflow, archiveworkflow, "design", "lay out", "organize", "structure", "sticky", "describe this workflow", "ship", "deploy", "publish", "name this workflow", or any folder/project organization request.
n8n-agents-official
n8n-io/skills
Use when the user wants an agent, assistant, or bot in n8n, or is building, editing, testing, publishing, or debugging a first-class n8n Agent. Covers choosing an Agent vs a workflow vs the AI Agent node, the Agent MCP tools (createagent, mutateagent, validateagent, callagent, publishagent, updateagentintegration), Agent config JSON, tools and approvals, skills, sub-agents, model routing, knowledge files, vector stores, memory and sessions, Slack / Telegram / Discord / Linear / n8n Chat channels, scheduled tasks, the Message an Agent node, and reading Agent sessions and traces. Triggers on "build me an agent", "assistant", "chatbot", "Slack bot", "Telegram bot", "agent skills", "sub-agent", "knowledge base", "agent memory", "session", "Message an Agent", "publish the agent", or any Agent tool call.
n8n-debugging-official
n8n-io/skills
Use when an n8n workflow isn't working, errors appear, results don't match what was expected, or the user says "this isn't working." Triggers on errors, unexpected output, "it's not working", "why is this happening", "the workflow stopped", failure investigation, or any debugging context.
n8n-error-handling-official
n8n-io/skills
Use when building any webhook-triggered workflow, scheduled/production-bound workflow, wiring a per-node error output, or any workflow where silent failure would drop user-visible work. Triggers on "webhook", "respond to webhook", "API", "production", "error", "failure", "5xx", "try/catch", "error workflow", "onError", "continueErrorOutput", "error branch", "node error output", "output(1)", "main[1]", "scheduled", or any workflow that runs unattended.
n8n-credentials-and-security-official
n8n-io/skills
Use when handling any auth, API keys, tokens, OAuth, bearer tokens, basic auth, or secret values in n8n workflows. Triggers on "API key", "token", "bearer", "OAuth", "secret", "auth", "credentials", "Authorization header", "x-api-key", or any node configuration that mentions a third-party service.
n8n-code-nodes-official
n8n-io/skills
Use when the user reaches for a Code node, mentions writing JavaScript or Python in n8n, or any custom logic comes up in workflow design. Triggers on "Code node", "Code", "JavaScript", "Python", "custom logic", "transform data", "$input", "$json transformation", "loop in code", "write a function", or any time the obvious answer seems to be "just put it in code."
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.