n8n-structured-extraction

n8n-structured-extraction is a skill for Claude Code from neurawork-git/n8n-autopilot. It costs 77 tokens per session (1,029 once invoked), scanned A, original, MIT.

A guide for using n8n, a workflow automation tool, to turn text or documents into structured fields or categories with an AI language model and a defined JSON format.

In plain words
What is it for?
Use it for extracting information from invoices, contracts, and emails, or for sorting text into categories in n8n workflows.
Why use it?
It avoids unreliable results caused by asking an AI agent to format its own answer as JSON. The required fields and allowed values are checked directly.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the n8n-autopilot plugin — 24 skills, 12 agents, 4 hooks shipped together

Good fit Use it for extracting information from invoices, contracts, and emails, or for sorting text into categories in n8n workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neurawork-git/n8n-autopilot/n8n-structured-extraction
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add neurawork-git/n8n-autopilot --skill n8n-structured-extraction
Clone the repo
git clone --depth 1 https://github.com/neurawork-git/n8n-autopilot

Made for: Claude Code.

Or install n8n-autopilot, the plugin that ships this one along with the rest of its 24 skills, 12 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for n8n-structured-extraction

README.md
[![agentmods](https://agentmods.dev/badge/skills/neurawork-git/n8n-autopilot/n8n-structured-extraction/github.svg)](https://agentmods.dev/skills/neurawork-git/n8n-autopilot/n8n-structured-extraction)
Your own site
<a href="https://agentmods.dev/skills/neurawork-git/n8n-autopilot/n8n-structured-extraction"><img src="https://agentmods.dev/badge/skills/neurawork-git/n8n-autopilot/n8n-structured-extraction/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for n8n-structured-extraction

Your own site · 80×15
<a href="https://agentmods.dev/skills/neurawork-git/n8n-autopilot/n8n-structured-extraction"><img src="https://agentmods.dev/badge/skills/neurawork-git/n8n-autopilot/n8n-structured-extraction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,029 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.01029
Opus 5 $0.00039 $0.00515
Sonnet 5 $0.00015 $0.00206
Haiku 4.5 $0.00008 $0.00103

Measured 11d ago against content hash d73e2db3e7e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

n8n-structured-extraction scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/n8n-structured-extraction/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

n8n Structured Extraction (JSON-schema-driven)

For ANY structured output (extraction, classification) use a dedicated structured node with a real JSON schema — never an AI-Agent node with a "return JSON" prompt, never tolerant re-parsing of raw text. This is state-of-the-art LLM document extraction, proven in production (supplier-check and invoice-extraction pipelines).

Use the right node

Task Node Output
Pull fields out of a document/text @n8n/n8n-nodes-langchain.informationExtractor one object matching your schema
Route input into categories @n8n/n8n-nodes-langchain.textClassifier one output branch per category

Why NOT an AI-Agent + "give me JSON"

Agent (Tools Agent) + outputParserStructured + reasoning models (gpt-5.x) fail reproducibly:

  • the model wraps the result in {"output": {...}} → top-level schema mismatch,
  • and violates enums ("verlängert" instead of the schema's "verlaengert").

Prompt-only JSON is fragile. The Information-Extractor / Text-Classifier nodes use the model's native structured-output / function-calling and enforce the schema cleanly.

How to apply

Every schema field gets a type AND a description. The description is an instruction to the model (format hints), not decoration. Types must match the downstream sink (e.g. DataTable column types: number↔number, string↔string). Use real umlauts (ä, ö, ü, ß) in descriptions — never ASCII transcriptions.

// Information Extractor — manual JSON schema (nested arrays OK)
{
  "type": "object",
  "properties": {
    "rechnungsnummer": { "type": "string",  "description": "Rechnungs-/Belegnummer wie auf dem Dokument" },
    "rechnungsdatum":  { "type": "string",  "description": "Rechnungsdatum als ISO-Datum, z.B. 2026-05-29" },
    "nettobetrag":     { "type": "number",  "description": "Nettobetrag in EUR, nur Zahl ohne Währungssymbol" },
    "steuersatz":      { "type": "number",  "description": "Umsatzsteuersatz in Prozent, z.B. 19" },
    "ev_typ":          { "type": "string",  "enum": ["einfach", "erweitert", "verlaengert"],
                         "description": "Art des Eigentumsvorbehalts. ASCII-Enum-Werte exakt verwenden." },
    "positionen": {
      "type": "array",
      "description": "Einzelpositionen der Rechnung",
      "items": {
        "type": "object",
        "properties": {
          "bezeichnung": { "type": "string", "description": "Artikel-/Leistungsbezeichnung" },
          "betrag":      { "type": "number", "description": "Positionsbetrag netto in EUR" }
        }
      }
    }
  }
}

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 77 lines · 77 tokens per session scan A d73e2db3e7e6

Subscribe to this mod's changes

n8n-structured-extraction is a skill published in the GitHub repository neurawork-git/n8n-autopilot (18 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 1,029 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain. AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output…

czlonkowski/n8n-skills · 156 tokens

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain. AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output…

czlonkowski/n8n-mcp · 156 tokens

add-ai-webapi

Integrates Power Pages generative-AI summarization APIs (PREVIEW) into a Single Page Application (SPA) site — the Search Summary API and the Data Summarization API — on any record-detail or list page. Generates per-target service code (CSRF-handled) and AI site settings; delegates Web API settings, table permissions…

microsoft/power-platform-skills · 226 tokens

ai-ml-governance

Governs models and AI systems in production — intended use, evaluation, monitoring, human oversight, documentation, and the decision to deploy or retire. Use this before deploying a model or AI feature, when defining evaluation criteria, when a model's behavior has drifted, when assessing AI risk or regulatory…

cbrock84/headcount · 83 tokens

nano-banana

This skill should be used for Python scripting and Gemini image generation. Use when users ask to generate images, create AI art, edit images with AI, or run Python scripts with uv. Trigger phrases include "generate an image", "create a picture", "draw", "make an image of", "nano banana", or any image generation…

NikiforovAll/claude-code-rules · 73 tokens

meta-prompting

Enhanced reasoning patterns via slash commands (/think, /verify, /adversarial, /edge, /compare, /confidence, /budget, /constrain, /json, /flip, /assumptions, /tensions, /analyze, /trade) or natural language ("argue against", "what could break", "show reasoning", "deep review", "meta-prompts", "thinking modes"…

iliaal/whetstone · 104 tokens