n8n-agents
하는 일
n8n이라는 워크플로 자동화 도구 안에서 AI Agent와 언어 모델 단계를 만드는 방법을 AI 에이전트에게 안내합니다. n8n 워크플로 안에 AI 도우미를 만드는 분들을 위한 스킬입니다.
사용하는 경우
- ✓도구를 쓰거나 이전 메시지를 기억해야 하는 AI 에이전트를 n8n에서 만들 때.
- ✓텍스트 분류처럼 간단한 AI 단계가 완전한 에이전트보다 더 나을 때.
- ✓저장된 문서를 바탕으로 답하는 n8n 채팅 도우미가 필요할 때.
스킬 링크
https://github.com/czlonkowski/n8n-mcp/blob/main/data/skills/n8n-agents/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“저장된 도움말 문서를 바탕으로 고객 질문에 답하는 n8n AI 에이전트를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 먼저 알맞은 n8n AI 노드를 고르도록 돕고, 그다음 모델, 도구, 메모리, 출력 형식을 설정해 에이전트가 예측 가능하게 동작하도록 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
n8n Agents
The n8n AI Agent node (@n8n/n8n-nodes-langchain.agent) is a multi-turn LLM driver with sub-nodes for the model, memory, tools, and an optional output parser. This skill is the deep guide to designing agents and the LangChain family around them. For the high-level "where an agent fits in a workflow" picture, see n8n-workflow-patterns ai_agent_workflow.md — this skill goes one level down into how to build it well.
For node-type formats: in workflow JSON the LangChain nodes use the long @n8n/n8n-nodes-langchain.* form (.agent, .lmChatOpenAi, .memoryBufferWindow, .outputParserStructured, .toolWorkflow, .toolHttpRequest, .toolCode). When you call get_node / validate_node, use the short form (nodes-langchain.agent). See n8n-mcp-tools-expert for the format rules.
Pick the right node first
Reaching for an Agent when the task is one-shot classification or extraction is the most common over-build. Decide before you wire anything:
| You need to… | Use | Why |
|---|---|---|
| Call tools, reason over multiple turns, or hold memory | AI Agent (.agent) |
The full loop: model + tools + memory + optional parser. Also a fine default when you'd rather standardize. |
| One-shot text in → text out, no tools | Basic LLM Chain (.chainLlm) |
No agent loop, easier to debug. Still accepts an outputParserStructured sub-node. |
| Route a natural-language input to one of N branches | Text Classifier (.textClassifier) |
ONE node, N output handles, downstream wires directly into each. Not Agent + Switch. |
| Pull structured fields out of free text | Information Extractor (.informationExtractor) |
Purpose-built field extraction with a schema. |
| 3-way positive/neutral/negative split | Sentiment Analysis (.sentimentAnalysis) |
Built-in branch outputs. |
| Condense a long document | Summarization Chain (.chainSummarization) |
Map-reduce summarization built in. |
| Generate an image / audio / video | The provider's native single-call node (OpenAI, Gemini, ElevenLabs…) | NEVER wrap media generation in an Agent — see "Binary and the agent boundary". |
Text Classifier detail (the Agent + Switch anti-pattern): every category needs both a name AND a description. The model routes against the description, not the name — a category with no description gets picked by coin-flip. Set options.enableAutoFixing: true for robustness on edge inputs. One node, N branches, done. Reaching for an Agent that "decides" then a Switch that "routes" is two nodes plus prompt boilerplate for what Text Classifier does natively.
Chat-model nodes (.lmChatOpenAi, .lmChatAnthropic, .lmChatOpenRouter, …) are sub-nodes — they don't run standalone. They wire into a chain, agent, classifier, or extractor via the ai_languageModel connection.
The sub-node pattern
The Agent has a main input (the prompt / user message) and up to four sub-node slots, each wired by its own ai_* connection type:
| Slot | Connection type | Required? | Node example |
|---|---|---|---|
| model | ai_languageModel |
Yes | .lmChatOpenAi, .lmChatAnthropic, .lmChatOpenRouter |
| memory | ai_memory |
Optional | .memoryBufferWindow, .memoryPostgresChat |
| tools | ai_tool |
Optional (but the point of an agent) | slackTool, .toolWorkflow, .toolHttpRequest, .toolCode |
| outputParser | ai_outputParser |
Optional | .outputParserStructured |
A sub-node connects FROM itself TO the agent. In workflow JSON the connection lives on the sub-node, keyed by the ai_* type:
"Main LLM": {
"ai_languageModel": [[{ "node": "AI Agent", "type": "ai_languageModel", "index": 0 }]]
},
"Simple Memory": {
"ai_memory": [[{ "node": "AI Agent", "type": "ai_memory", "index": 0 }]]
},
"Search customer DB": {
"ai_tool": [[{ "node": "AI Agent", "type": "ai_tool", "index": 0 }]]
}
Multiple tools all connect into the same ai_tool index 0 — they stack, they don't fan into separate indices. With n8n_update_partial_workflow you wire each with an addConnection op using sourceOutput: "ai_tool". The agent puts its final answer in $json.output (not .text, not .response) — downstream nodes read {{ $json.output }}.
See EXAMPLES.md for a complete stateless agent-core node-object snippet.
Two non-negotiables
- Tool names and descriptions ARE part of the prompt. The model picks a tool by reading
자주 묻는 질문
n8n에서 AI Agent를 쓰지 말아야 할 때는 언제인가요?
분류나 추출처럼 일회성 작업에는 스킬이 더 가벼운 노드를 권합니다. 완전한 에이전트는 보통 필요 이상이기 때문입니다.
메모리도 다루나요?
네. 에이전트 메모리와 세션 ID를 다룹니다.
구조화된 출력도 도와주나요?
네. 출력 파서와 구조화된 출력 또는 JSON 출력을 다룹니다.
상세 정보
작성자의 원본 설명
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, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topol
repo: czlonkowski/n8n-mcp
인기도
- GitHub 스타
- 23k
- 순위
- #10125
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
n8n-binary-and-data
23k에이전트가 n8n 워크플로에서 PDF나 이미지 같은 파일을 중간에 잃지 않고 다루도록 가르칩니다.
n8n-code-tool
23kAI 에이전트가 호출할 수 있는 n8n Custom Code Tool용 JavaScript나 Python 코드를 작성하도록 에이전트에게 가르칩니다.
n8n-error-handling
23k실패가 조용히 묻히지 않고 명확하고 체계적이며 복구 가능하도록 n8n 워크플로를 설정하는 방법을 에이전트에게 가르칩니다.
n8n-multi-instance
23k에이전트가 운영과 스테이징 같은 여러 n8n 인스턴스를 안전하게 다루고, 엉뚱한 인스턴스를 바꾸지 않도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.