Skip to content

节点#

¥Nodes

节点workflow 的关键构建模块。它们执行一系列操作,包括:

¥Nodes are the key building blocks of a workflow. They perform a range of actions, including:

  • 正在启动工作流。

¥Starting the workflow.

  • 正在获取并发送数据。

¥Fetching and sending data.

  • 处理和操作数据。

¥Processing and manipulating data.

n8n 提供了一系列内置节点,并允许用户创建自定义节点。参考:

¥n8n provides a collection of built-in nodes, as well as the ability to create your own nodes. Refer to:

¥Built-in integrations to browse the node library.

  • 社区节点 用于指导你查找和安装社区创建的节点。

¥Community nodes for guidance on finding and installing community-created nodes.

¥Creating nodes to start building your own nodes.

向工作流添加节点#

¥Add a node to your workflow

向空工作流添加节点#

¥Add a node to an empty workflow

  1. 选择添加第一步。n8n 打开节点面板,你可以在其中搜索或浏览 触发节点

¥Select Add first step. n8n opens the nodes panel, where you can search or browse trigger nodes.

  1. 选择要使用的触发器。

¥Select the trigger you want to use.

Choose the correct app event

1
2
3
If you select **On App Event**, n8n shows a list of all the supported services. Use this list to browse n8n's integrations and trigger a workflow in response to an event in your chosen service. Not all integrations have triggers. To see which ones you can use as a trigger, select the node. If a trigger is available, you'll see it at the top of the available operations list.

For example, this is the trigger for Asana:

Screenshot of the Asana node operations list, showing the Recommended section at the top of the list

向现有工作流添加节点#

¥Add a node to an existing workflow

选择“添加节点 Add node icon”连接器。n8n 打开节点面板,你可以在其中搜索或浏览所有节点。

¥Select the Add node {.off-glb} connector. n8n opens the nodes panel, where you can search or browse all nodes.

Node operations: Triggers and Actions#

When you add a node to a workflow, n8n displays a list of available operations. An operation is something a node does, such as getting or sending data.

There are two types of operation:

  • Triggers start a workflow in response to specific events or conditions in your services. When you select a Trigger, n8n adds a trigger node to your workflow, with the Trigger operation you chose pre-selected. When you search for a node in n8n, Trigger operations have a bolt icon Trigger icon.
  • Actions are operations that represent specific tasks within a workflow, which you can use to manipulate data, perform operations on external systems, and trigger events in other systems as part of your workflows. When you select an Action, n8n adds a node to your workflow, with the Action operation you chose pre-selected.

节点控件#

¥Node controls

要查看节点控件,请将鼠标悬停在画布上的节点上。

¥To view node controls, hover over the node on the canvas:

  • 执行步骤 Execute step icon:运行节点。

¥Execute step {.off-glb}: Run the node.

  • 停用 Deactivate node icon:停用节点。

¥Deactivate {.off-glb}: Deactivate the node.

  • 删除 Delete node icon:删除节点。

¥Delete {.off-glb}: Delete the node.

  • 节点上下文菜单 Node context menu icon:选择节点操作。可用的操作:

¥Node context menu {.off-glb}: Select node actions. Available actions:

  • 打开节点

    ¥Open node

  • 执行步骤

    ¥Execute step

  • 重命名节点

    ¥Rename node

  • 停用节点

    ¥Deactivate node

  • 图钉节点

    ¥Pin node

  • 复制节点

    ¥Copy node

  • 复制节点

    ¥Duplicate node

  • 整理工作流程

    ¥Tidy up workflow

  • 将节点转换为子工作流

    ¥Convert node to sub-workflow

  • 全选

    ¥Select all

  • 清除选择

    ¥Clear selection

  • 删除节点

    ¥Delete node

节点设置#

¥Node settings

“设置”选项卡下的节点设置允许你控制节点行为并添加节点注释。

¥The node settings under the Settings tab allow you to control node behaviors and add node notes.

启用或设置后,它们将执行以下操作:

¥When active or set, they do the following:

  • 始终输出数据:即使节点在执行期间未返回任何数据,该节点也会返回一个空项。在 IF 节点上设置此项时务必谨慎,因为它可能会导致无限循环。

¥Always Output Data: The node returns an empty item even if the node returns no data during execution. Be careful setting this on IF nodes, as it could cause an infinite loop.

  • 执行一次:该节点执行一次,使用接收到的第一个数据项。它不处理任何额外项目。

¥Execute Once: The node executes once, with data from the first item it receives. It doesn't process any extra items.

  • 失败后重试:执行失败时,节点将重新运行,直到成功为止。

¥Retry On Fail: When an execution fails, the node reruns until it succeeds.

  • 发生错误时:

¥On Error:

  • 停止工作流程:发生错误时,会停止整个工作流程,阻止后续节点的执行。

    ¥Stop Workflow: Halts the entire workflow when an error occurs, preventing further node execution.

  • 继续:即使出现错误,也会使用上次的有效数据继续执行下一个节点。

    ¥Continue: Proceeds to the next node despite the error, using the last valid data.

  • 继续(使用错误输出):继续执行工作流,并将错误信息传递给下一个节点进行处理。

    ¥Continue (using error output): Continues workflow execution, passing error information to the next node for potential handling.

你可以使用节点注释来记录你的工作流:

¥You can document your workflow using node notes:

  • 备注:请注意,需要随节点一起保存。

¥Notes: Note to save with the node.

  • 流程中的显示注释:如果已激活,n8n 会将工作流中的注释显示为副标题。

¥Display note in flow: If active, n8n displays the note in the workflow as a subtitle.