N8n Workflow

作者 claude-office-skills9c4c7d5cd281MIT499 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

Automate document workflows with n8n - 7800+ workflow templates

AI 生成的概览

指导构建 n8n 文档工作流自动化,涵盖节点类型、触发器、自托管方式与示例流程。

功能
该技能为在 n8n 平台上设计文档工作流自动化提供指导。它讲解 n8n 基础概念,如触发器、操作与输出节点,列出文档处理、数据转换与结果投递等节点类别,并演示一个合同审查流程示例:监听文件夹、提取 PDF 文本、执行 AI 审查、保存报告并通知团队。它还比较自托管与云端部署方式,并列出最佳实践与依赖项。
适用场景
适用于规划或说明将文档操作串联起来的 n8n 自动化,例如 OCR、翻译、审查或定时报告生成。适合希望获得概念性指导和示例工作流结构,而非直接执行自动化的用户。
运行要求
仅为说明性内容,不附带脚本。涉及 n8n 实例(通过 Docker 自托管或使用 n8n Cloud)、可选的 Python 包(如 python-docx、openpyxl、python-pptx、reportlab、jinja2),以及 Slack 或 AI 模型服务等外部服务的凭据。

N8N Workflow Skill

Overview

This skill enables document workflow automation using n8n - the most popular workflow automation platform with 7800+ community templates. Chain document operations, integrate with 400+ apps, and build complex document pipelines.

How to Use

  1. Describe what you want to accomplish
  2. Provide any required input data or files
  3. I'll execute the appropriate operations

Example prompts:

  • "Automate PDF → OCR → Translation → Email workflow"
  • "Watch folder for new contracts → Review → Notify Slack"
  • "Daily report generation from multiple data sources"
  • "Batch document processing with conditional logic"

Domain Knowledge

n8n Fundamentals

n8n uses a node-based workflow approach:

Trigger → Action → Action → Output   │         │         │   └─────────┴─────────┴── Data flows between nodes

Key Node Types

TypeExamplesUse Case
TriggersWebhook, Schedule, File WatcherStart workflow
DocumentRead PDF, Write DOCX, OCRProcess files
TransformCode, Set, MergeManipulate data
OutputEmail, Slack, Google DriveDeliver results

Workflow Example: Contract Review Pipeline

json
{  "nodes": [    {      "name": "Watch Folder",      "type": "n8n-nodes-base.localFileTrigger",      "parameters": {        "path": "/contracts/incoming",        "events": ["add"]      }    },    {      "name": "Extract Text",      "type": "n8n-nodes-base.readPdf"    },    {      "name": "AI Review",      "type": "n8n-nodes-base.anthropic",      "parameters": {        "model": "claude-sonnet-4-20250514",        "prompt": "Review this contract for risks..."      }    },    {      "name": "Save Report",      "type": "n8n-nodes-base.writeFile"    },    {      "name": "Notify Team",      "type": "n8n-nodes-base.slack"    }  ]}

Self-Hosting vs Cloud

OptionProsCons
Self-hostedFree, full control, data privacyMaintenance required
n8n CloudNo setup, auto-updatesCosts at scale
bash
# Docker quick startdocker run -it --rm \  -p 5678:5678 \  -v ~/.n8n:/home/node/.n8n \  n8nio/n8n

Best Practices

  1. Start with existing templates, customize as needed
  2. Use error handling nodes for reliability
  3. Store credentials securely with n8n's credential manager
  4. Test workflows with sample data before production

Installation

bash
# Install required dependenciespip install python-docx openpyxl python-pptx reportlab jinja2

Resources

来源与署名

来源:claude-office-skills/skills位于n8n-workflow提交9c4c7d5

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架