快速入门

本指南涵盖了n8n的所有功能:
- 入门 — Create account and build your first workflow
- 如何使用强大的调试功能 — Test and fix workflow errors in the editor
- 如何使用 SaaS 后端原型设计 — Build backend automation for your apps
- 如何使用安全部署 — Deploy workflows safely to production
- 如何使用可视化建筑 — Create automation on the canvas without code
- 如何使用工作流自动化模板 — Start fast with pre-built templates
- 如何使用多步骤代理工具 — Build AI workflows and connect AI models
- How to Use Embedded Automation — Integrate automation into your own products
- How to Use Self-Host — Run n8n on your own infrastructure
所需时间: 每部影片 5 分钟
本指南还包含以下内容: 专业提示 | 常见错误 | 故障排除 | 定价 | 替代方案
为什么信任本指南
I’ve used n8n for over a year and tested every feature covered here. This how to use n8n tutorial comes from real hands-on experience building AI workflows and connecting apps — not marketing fluff or vendor screenshots.

n8n 是最强大的工作流程之一 自动化 目前可用的工具。
It gives technical teams complete freedom to automate without limits.
但大多数用户仅仅触及了它功能的冰山一角。
本指南将向您展示如何使用所有主要功能。
一步一步教你,附带截图和专业技巧。
n8n教程
这篇完整的 n8n 教程将一步一步地引导您了解每个功能,从初始设置到高级技巧,让您成为高级用户。

n8n
Build powerful workflow automation visually or with code. n8n connects 400+ apps and lets you self-host for complete control over your own data. Start free with the cloud version or deploy on your own infrastructure.
n8n入门指南
使用任何功能之前,请先完成此一次性设置。
大约需要3分钟。
请先观看这段简短的概述:
Now let’s walk through each step to learn how to use n8n.
第一步:创建您的帐户
Go to n8n.io and click “Get Started” to sign up for the cloud version.
请输入您的电子邮件地址并创建密码。
You can also self-host n8n if you prefer to keep your own data on your infrastructure.
✓ 检查点: 检查你的 收件箱 请发送确认邮件。
Step 2: Open the Workflow Editor
After logging in, you’ll see the n8n canvas — the visual editor where you build workflows.
Click “Create new workflow” to open a blank canvas.
这就是编辑器的样子:

✓ 检查点: You should see an empty canvas with a “+” button in the center.
Step 3: Add Your First Node
Click the “+” button and use the search bar to find any node you need.
Each workflow starts with a trigger that decides when the workflow should run.
Select a trigger like “Schedule Trigger” or “Webhook” to begin.
✅ 完成: You’re ready to use any feature below and automate your first workflow.
如何使用 n8n 的强大调试功能
强大的调试功能 lets you test and fix errors directly in the workflow editor.
以下是使用步骤。
观看强大的调试功能演示:

现在让我们逐一分析每个步骤。
Step 1: Run Your Workflow in Test Mode
Click “Test workflow” at the bottom of the canvas to execute your automation.
The editor will run each node and show you the data output at every step.
Step 2: Inspect Node Output
Click any node to open its output panel and see the exact data it processed.
这就是它的样子:

✓ 检查点: You should see a table showing input and output data for that node.
Step 3: Fix Errors Using Execution Logging
If a node fails, click the red error icon to see the detailed error message.
The logging shows exactly which step failed and why.
Adjust your node configuration and test again to confirm the fix.
✅ 结果: You’ve debugged your workflow and can now run it with confidence.
💡 专业提示: Use expressions to access data from previous nodes dynamically. Type “{{” in any field to open the expression editor and search for variables.
如何使用 n8n SaaS 后端原型设计
SaaS后端原型设计 lets you build backend automation for your apps without writing code from scratch.
以下是使用步骤。
观看 SaaS 后端原型设计实际演示:

现在让我们逐一分析每个步骤。
Step 1: Create an API Endpoint
Add a “Webhook” node as your trigger to create a custom API endpoint.
Configure the HTTP method (GET, POST, etc.) based on what your app needs.
Step 2: Connect Your Business Logic
Add nodes for data transformation, database queries, or API calls to external services.
这就是它的样子:
✓ 检查点: Your workflow should show a webhook connected to one or more action nodes.
步骤 3:部署到生产环境
Activate your workflow by clicking the toggle in the top right corner.
Copy your webhook URL and integrate it into your SaaS application.
Your backend is now live and ready to handle requests.
✅ 结果: You’ve built a production-ready backend prototype in minutes.
💡 专业提示: Use Python or JavaScript code nodes when you need custom data transformation that built-in nodes can’t handle. This gives you complete freedom while keeping the visual workflow structure.
如何使用 n8n 安全部署
安全部署 lets you run workflows safely in production with proper access control and logging.
以下是使用步骤。
观看安全部署的实际应用:

现在让我们逐一分析每个步骤。
Step 1: Set Up User Access Control
Go to Settings and configure user permissions for your instance.
Assign roles to team members so they can only access workflows they need.
Step 2: Enable Credential Encryption
Store your API keys and passwords using n8n’s encrypted credential store.
这就是它的样子:

✓ 检查点: Your credentials should show as encrypted in the credentials list.
Step 3: Deploy Using Docker for Self-Host
Use Docker to deploy n8n on your own infrastructure for maximum security.
When you self-host n8n, your data never leaves your environment.
This is especially useful for industries where sensitive data must stay private.
✅ 结果: Your workflows are now running securely with proper access controls.
💡 专业提示: Set up environment variables for different deployments (development, staging, production). This keeps your connection strings and API keys separate from your workflow configuration.
如何使用 n8n 可视化建筑
视觉建筑 lets you create automation workflows on the canvas by dragging and connecting nodes.
以下是使用步骤。
观看可视化建筑的实际应用:

现在让我们逐一分析每个步骤。
Step 1: Search and Add Nodes
Type to start searching for any app or action using the node search bar.
n8n supports over 400 integrations out of the box.
Step 2: Connect Nodes on the Canvas
Drag from one node’s output to another node’s input to connect them.
这就是它的样子:

✓ 检查点: You should see a line connecting your nodes on the canvas.
Step 3: Configure Node Settings
Double-click any node to open its settings panel.
Select the action, connect your credentials, and configure the data fields you need.
Use conditional logic to create branches based on your data.
✅ 结果: You’ve built a visual workflow without writing any code.
💡 专业提示: Use the “Merge” node to combine data from multiple sources. This is perfect for workflows that need to join information from different apps before processing.
如何使用 n8n 工作流自动化模板
工作流自动化模板 let you start fast with pre-built automation examples from the community.
以下是使用步骤。
观看工作流程模板的实际应用:

现在让我们逐一分析每个步骤。
步骤 1:打开模板库
Click “Templates” in the left sidebar to 浏览 the template gallery.
n8n has over 5,000 automation templates ready to use.
Step 2: Select and Import a Template
Use the search feature to find templates for your specific use case.
这就是它的样子:

✓ 检查点: Click “Use template” to import it into your workspace.
步骤 3:自定义并激活
Connect your own credentials to each node in the template.
Modify any settings to match your specific requirements.
Activate the workflow to start running your automation.
✅ 结果: You’ve deployed a working automation in under 5 minutes using a template.
💡 专业提示: Look for templates from the n8n community that match your industry. Many resources include detailed documentation explaining each step in the workflow.
如何使用 n8n 多步骤代理工具
多步骤代理工具 let you build AI workflows and connect AI models to automate complex tasks.
以下是使用步骤。
观看多步骤代理工具的实际应用:
现在让我们逐一分析每个步骤。
步骤 1:添加 AI 代理节点
Search for “AI Agent” in the node panel and add it to your canvas.
The AI Agent node is the core of adding AI to your workflows.
Step 2: Connect Your AI Model
Attach a chat model like OpenAI, Anthropic, or your own local model.
这就是它的样子:

✓ 检查点: You should see the AI Agent connected to a chat model node.
Step 3: Add Tools for the Agent
Connect additional tools like web search, Gmail integration, or database access.
The AI agent can use these tools automatically to complete multi-step tasks.
You can also add memory to preserve context in conversations.
✅ 结果: You’ve built an AI-powered workflow that can handle complex tasks automatically.
💡 专业提示: n8n comes with native support for connecting large language models and tools like LangChain. Integrate your own OpenAI key, run local models, or use third-party APIs in the same environment.
如何使用 n8n 嵌入式自动化
嵌入式自动化 lets you integrate n8n workflows directly into your own products and applications.
以下是使用步骤。
观看嵌入式自动化实际应用:
现在让我们逐一分析每个步骤。
Step 1: Set Up API Access
Generate an API key in your n8n settings for programmatic access.
You can control n8n via API to trigger workflows from your application.
Step 2: Configure Webhook Triggers
Create webhook-based workflows that your product can call.
这就是它的样子:

✓ 检查点: Your webhook URL should be ready to receive requests from your application.
Step 3: Deploy Your Embedded Solution
Integrate the webhook URLs into your product’s codebase.
Your customers can now trigger automations through your interface.
The workflow runs in the background while your app continues normally.
✅ 结果: You’ve embedded n8n automation into your own 商业 application.
💡 专业提示: Use the “Respond to Webhook” node to send data back to your application. This creates a complete request-response cycle for real-time integrations.
How to Use n8n Self-Host
Self-Host lets you run n8n on your own infrastructure with complete control.
以下是使用步骤。
Watch Self-Host setup in action:
现在让我们逐一分析每个步骤。
Step 1: Launch Using Docker
To get started with n8n, you can deploy using Docker for a persistent setup.
Your data and workflows are saved automatically when using Docker volumes.
Step 2: Configure Your Instance
Set environment variables for your database connection and security settings.
Here’s an example configuration:
✓ 检查点: Your n8n instance should be accessible at your configured URL.
Step 3: Set Up Backups and Monitoring
Schedule regular database backups to protect your workflow configurations.
The open source nature of n8n allows you to host it on your own server and modify it.
You can also run n8n from your terminal if you have Node.js installed.
✅ 结果: You’re running n8n on your own infrastructure with full control over your data.
💡 专业提示: Use queue mode for high-volume production deployments. This distributes workflow execution across multiple workers for better performance and reliability.
n8n 专业技巧和快捷方式
After testing n8n for over a year, here are my best tips for efficient workflow building.
键盘快捷键
| 行动 | 捷径 |
|---|---|
| 添加新节点 | Tab or + |
| 执行工作流程 | Ctrl/Cmd + Enter |
| Save workflow | Ctrl/Cmd + S |
| 重复节点 | Ctrl/Cmd + D |
| Delete selected node | 删除或退格 |
| Select all nodes | Ctrl/Cmd + A |
| 撤销上一步操作 | Ctrl/Cmd + Z |
| Open expression editor | {{ in any field |
大多数人错过的隐藏功能
- 便签纸: Press “S” to add sticky notes to your canvas for documentation. This keeps your workflows organized and helps teams understand the logic.
- 引脚数据: Right-click any node and select “Pin data” to use that output for testing without re-running the entire workflow. Saves hours during debugging.
- Sub-Workflows: Create reusable workflow modules that you can call from other workflows. Perfect for shared logic across your project.
- Global Variables: Store common values like API endpoints or settings in global variables so you don’t repeat them in every workflow.
- Wait Node: Use the Wait node to pause workflow execution for a set time or until a condition is met. Great for rate-limited APIs.
避免的常见错误
Mistake #1: Not Testing Before Activating
❌ 错误: Building a workflow and immediately activating it without running a test execution first.
✅ 右图: Always run “Test workflow” with sample data to verify each step works correctly. Check the output at every node before going live.
Mistake #2: Ignoring Error Handling
❌ 错误: Creating workflows without any error handling, causing silent failures in production.
✅ 右图: Add an “Error Trigger” workflow that sends alerts when any workflow fails. Use the “Continue on Fail” option strategically for non-critical steps.
Mistake #3: Hardcoding Credentials in Code Nodes
❌ 错误: Writing API keys and passwords directly in JavaScript or Python code nodes.
✅ 右图: Always use n8n’s credential system or global variables. This keeps secrets encrypted and makes sharing workflows with your teams safe.
Mistake #4: Building Monolithic Workflows
❌ 错误: Creating one massive workflow with 50+ nodes that handles everything.
✅ 右图: Break large automations into smaller, focused workflows that call each other. This makes debugging and maintenance much more efficient.
n8n故障排除
Problem: Workflow Executes But Nothing Happens
原因: The trigger node may be configured incorrectly or the workflow isn’t activated.
使固定: Check that your workflow is toggled “Active” in the top right. Verify your trigger settings match the expected event. Use “Test workflow” to manually run and inspect each step.
Problem: API Credentials Keep Failing
原因: OAuth tokens may have expired or API keys are incorrect.
使固定: Go to Credentials, select the failing credential, and click “Reconnect” for OAuth connections. For API keys, verify you copied the entire key without extra spaces.
Problem: Self-Hosted Instance Won’t Start
原因: Missing environment variables or database connection issues.
使固定: Check your Docker logs for specific error messages. Verify your database is running and accessible. Ensure all required environment variables are set correctly.
Problem: Workflow Runs Too Slowly
原因: Processing large data sets in a single execution or hitting API rate limits.
使固定: Use the “Split In Batches” node to process data in smaller chunks. Add Wait nodes between API calls to respect rate limits. Consider using queue mode for high-volume workflows.
📌 笔记: If none of these fix your issue, check the n8n community forum or contact support. The community is very active and helpful.
n8n是什么?
n8n is an open-source workflow automation platform that provides both control and simplicity for technical teams.
Think of it like having your own private automation engine that you can customize, extend, and host anywhere.
观看这段快速概览:
n8n connects the apps and systems you already use through nodes that perform actions.
它包含以下主要特点:
- 强大的调试功能: Test and inspect data at every step directly in the editor
- SaaS后端原型设计: Build custom backend APIs without writing extensive code
- 安全部署: Deploy with encryption, access control, and 审计 logging
- 视觉建筑: Create workflows by dragging and connecting nodes on the canvas
- 工作流程模板: Start fast with over 5,000 pre-built automation templates
- 多步骤代理工具: Build AI workflows and connect AI models with LangChain
- 嵌入式自动化: Integrate n8n into your own products via API
- Self-Host: Run on your own infrastructure with complete control
You can add conditional logic and custom code nodes for specific cases as you build more complex workflows.
n8n allows users to build complex, multi-step workflows that involve APIs, data transformation, and logic-based decision making.
如需完整评测,请参阅我们的 n8n 评测.
n8n 定价
以下是 n8n 在 2026 年的成本:
| 计划 | 价格 | 最适合 |
|---|---|---|
| 社区 | 免费(自托管) | Developers who can manage their own infrastructure |
| 起动机 | 每月 20 欧元(按年计费) | Getting started with cloud hosting and 2,500 executions |
| 专业版 | 每月 50 欧元(按年计费) | Small teams needing custom execution volume and collaboration |
| 商业 | 每月 667 欧元(按年计费) | Companies with under 100 employees needing SSO and Git version control |
| 企业 | 定制定价 | Large organizations with strict compliance and governance needs |
免费试用: Yes, 14-day free trial available for all cloud plans with no credit card required for Starter and Pro.
退款保证: You can cancel monthly plans anytime. Annual plans end at term completion.
All plans include unlimited users and workflows — pricing is based on monthly workflow executions regardless of complexity.
n8n charges per execution (one complete workflow run), not per step like other tools. This makes costs more predictable when building complex automations.

💰 性价比最高: Pro Plan (€50/month) — perfect balance of features and scalability for small teams. The self-hosted Community Edition is best if you want unlimited executions and can manage the server yourself.
n8n 与替代方案
n8n 的表现如何?以下是竞争格局:
| 工具 | 最适合 | 价格 | 等级 |
|---|---|---|---|
| n8n | 自托管和复杂工作流程 | 每月 20 欧元 | ⭐ 4.5 |
| Zapier | No-code simplicity with 7,000+ apps | 每月 19.99 美元 | ⭐ 4.5 |
| 制作 | Visual automation with complex logic | 每月9美元 | ⭐ 4.6 |
| 帕布利 | 一次性付费,终身使用权 | $249 | ⭐ 4.1 |
| MindStudio | 人工智能驱动的内容生成 | 每月16美元 | ⭐ 4.0 |
| 弗洛伊斯 | AI agents for deep work | 每月 13.93 美元 | ⭐ 3.8 |
| 口香糖环 | Web scraping and data enrichment | 每月 30 美元 | ⭐ 3.7 |
| 卢特拉 | LinkedIn and Gmail automation | 每月 63 美元 | ⭐ 3.9 |
| 复制 | Code-first development and AI agents | 每月 20 美元 | ⭐ 4.4 |
快速精选:
- 综合最佳: n8n — complete freedom with self-hosting and no per-step charges
- 最佳预算: Make — affordable visual automation starting at $9/month
- 最适合初学者: Zapier — easiest setup with the most integrations
- 最适合人工智能工作流程: n8n — native LangChain support and AI Agent nodes
🎯 n8n 替代方案
正在寻找 n8n 的替代方案?以下是一些最佳选择:
- 🚀 Zapier: The most popular no-code automation tool with 7,000+ app integrations. Best for non-technical users who need simple workflows without self-hosting.
- 🎨 制作: Visual automation with powerful branching and conditional logic. Great for complex scenarios at a lower price point than Zapier.
- 💰 帕布利: Lifetime deal option for teams who want one-time payment. Includes unlimited workflows and tasks after initial purchase.
- 🧠 MindStudio: AI-focused platform for building custom AI workers and content generation workflows. Strong on data ingestion and templates.
- ⚡ 弗洛伊斯: 自主 AI agent platform for strategic insights and deep work. Includes knowledge garden and AI-powered editing tools.
- 🔧 Gumloop: Specialized in web scraping, data enrichment, and SEO marketing automation. Chrome extension makes data collection easy.
- 📊 卢特拉: Focused on LinkedIn profile enrichment, Gmail automation, and data extraction. Great for sales teams building lead workflows.
- 🔥 复制: Code-first platform with AI agents and collaborative development. Best for developers who want to write custom scripts alongside automation.
- 🌟 Google Opal: Google’s AI-powered workflow tool for content creation and 社交媒体 management. Works with Google Workspace apps.
完整列表请参见我们的 n8n 的替代方案 指导。
⚔️ n8n 对比
以下是n8n与各竞争对手的对比情况:
- n8n 与 Zapier: n8n wins on pricing and flexibility — you pay per execution, not per step. Choose Zapier if you need the easiest setup and most integrations without technical work.
- n8n 对比 Make: Both offer visual building, but n8n has better self-hosting options and AI capabilities. Make wins on initial learning curve and budget-friendly pricing.
- n8n 对阵 Pabbly: Pabbly’s lifetime deal beats n8n on long-term cost if you don’t need self-hosting. n8n wins on advanced features, debugging, and code integration.
- n8n 对比 MindStudio: MindStudio focuses on AI content generation while n8n handles general automation. Choose n8n for workflow automation with AI, MindStudio for AI-first content creation.
- n8n 对阵 Flowith: n8n offers broader automation capabilities while Flowith specializes in AI agents for knowledge work. n8n is better for backend automation.
- n8n 对阵 Gumloop: Gumloop excels at web scraping and data enrichment. n8n is more versatile for general workflow automation and has better self-hosting.
- n8n 对阵 Lutra: Lutra specializes in LinkedIn and sales data extraction. n8n is better for building complete end-to-end business workflows.
- n8n 对比 Replit: Replit is code-first while n8n balances visual and code approaches. Choose n8n for automation, Replit for development projects.
- n8n vs Google Opal: Google Opal is newer and focused on content creation. n8n has proven reliability, larger community, and more advanced automation features.
立即开始使用 n8n
你已经学会了如何使用n8n的每一项主要功能:
- ✅ 强大的调试功能
- ✅ SaaS后端原型设计
- ✅ 安全部署
- ✅ 可视化建筑
- ✅ 工作流程自动化模板
- ✅ 多步骤代理工具
- ✅ 嵌入式自动化
- ✅ Self-Host
下一步: 选择一项功能,立即试用。
Most people start with Visual Building to create their first workflow.
It takes less than 5 minutes to build and run your first automation.
常见问题解答
n8n 是做什么用的?
n8n is used for workflow automation — connecting apps and automating tasks without writing extensive code. You can automate data sync between applications, build AI workflows, create backend APIs, schedule recurring tasks, and integrate with over 400 services. Technical teams use it to save hours each week on repetitive business processes.
n8n 代表什么?
n8n stands for “nodemation” — a combination of “node” and “automation.” The name reflects how the platform works: you connect nodes on a visual canvas to build automation workflows. Each node represents an app connection or action in your workflow.
n8n 完全免费吗?
The self-hosted Community Edition of n8n is free to use with unlimited workflows and executions. You only pay for your own server costs. The cloud version has paid plans starting at €20/month (Starter) with a free 14-day trial. If you can manage Docker or a VPS, self-hosting gives you full access at zero software cost.
n8n 比 Zapier 更好吗?
n8n is better if you need self-hosting, custom code nodes, or complex multi-step workflows without per-step charges. Zapier is better if you want the easiest possible setup with 7,000+ integrations and no technical requirements. n8n gives you more freedom and lower costs at scale, while Zapier offers superior ease-of-use for beginners.
我可以免费使用n8n吗?
Yes, you can use n8n completely free by self-hosting the Community Edition. Download it from GitHub and deploy using Docker on your own server. The cloud version also offers a free 14-day trial for Starter and Pro plans without requiring a credit card. Self-hosting is the most cost-efficient option for unlimited automation.
n8n 比 Zapier 便宜吗?
Yes, n8n is significantly cheaper than Zapier for most use cases. n8n charges per workflow execution (one complete run), while Zapier charges per task (every step). A complex workflow with 20 steps costs one execution in n8n but 20 tasks in Zapier. Self-hosting n8n is even cheaper — just server costs with no execution limits.
哪些公司正在使用n8n?
n8n is used by over 3,000 enterprise customers including Vodafone, Softbank, Meta, Microsoft, Zendesk, and Delivery Hero. The platform serves more than 230,000 active users worldwide. Companies choose n8n for its flexibility, self-hosting options, and ability to build complex automations that other tools can’t handle.
什么是n8n工作流程?
An n8n workflow is a visual automation that connects multiple apps and actions together. Each workflow starts with a trigger (like a schedule or webhook) that decides when it should run. You then add nodes for each action — fetching data, transforming it, and sending it to other apps. Workflows run automatically once activated.
n8n 的缺点是什么?
n8n has a steeper learning curve than simpler tools like Zapier. Self-hosting requires server management and DevOps knowledge. The cloud version has execution limits on lower-tier plans. Some users find the interface overwhelming initially. However, these tradeoffs come with much greater flexibility and lower long-term costs.
如何启动n8n工作流程?
To start an n8n workflow, first create a new workflow from your dashboard. Add a trigger node (Schedule, Webhook, or app-specific trigger) that determines when your workflow runs. Then add action nodes by clicking “+” and connecting them. Test your workflow, then toggle it to “Active” in the top right to enable automatic execution.
n8n云服务是免费的吗?
n8n cloud offers a free 14-day trial for Starter and Pro plans without requiring a credit card. After the trial, paid plans start at €20/month for the Starter tier with 2,500 executions. The free Community Edition is only available for self-hosting — the cloud version requires a subscription after the trial period.
n8n 可以实现哪些自动化功能?
You can automate almost any business process with n8n: email workflows (Gmail, Outlook), 客户关系管理 updates (Salesforce, HubSpot), database syncing (MySQL, PostgreSQL), AI agents with ChatGPT, Slack notifications, GitHub actions, social media posting, lead generation, invoice processing, and much more. If an app has an API, n8n can likely connect to it.
n8n 真的像宣传的那样好吗?
Yes, n8n lives up to its reputation for technical teams. The platform genuinely offers more flexibility than competitors at lower costs. The self-hosting option, execution-based pricing, and code node support set it apart. It reached $40M in annual revenue and a $2.5B valuation in 2025, showing strong market validation beyond just hype.
n8n 难吗?
n8n has a moderate learning curve. Basic workflows are straightforward once you understand the node-and-connection model. Advanced features like custom code nodes, error handling, and self-hosting require more technical skill. Most users become productive within a few hours. The visual editor helps, and the community provides excellent learning resources and templates.
n8n 的幕后主使是谁?
n8n was founded by Jan Oberhauser in 2019. The company is based in Berlin, Germany and has raised $180M in funding, reaching a $2.5B valuation in October 2025. The round was led by Accel with participation from Nvidia’s NVentures. n8n has a strong open-source community with over 180,000 GitHub stars.
使用 n8n 需要多少费用?
n8n costs range from free (self-hosted) to €667/month (Business plan). The Starter cloud plan is €20/month with 2,500 executions. Pro is €50/month with custom execution volume. Enterprise pricing is custom-quoted. Self-hosting the Community Edition is free — you only pay for your server (typically €5-20/month for a basic VPS).













