快速入门(The very quick quickstart)#
本快速入门将帮助你尽快开始使用 n8n。它允许你尝试界面,并介绍两个关键功能:工作流模板 和 表达式。它不包括详细的解释,也不会深入探讨概念。
🌐 This quickstart gets you started using n8n as quickly as possible. Its allows you to try out the UI and introduces two key features: workflow templates and expressions. It doesn't include detailed explanations or explore concepts in-depth.
在本教程中,你将:
🌐 In this tutorial, you will:
- 从工作流模板库加载一个工作流
- 添加节点并使用表达式进行配置。
- 运行你的第一个工作流
第一步:打开工作流程模板并注册 n8n 云(Step one: Open a workflow template and sign up for n8n Cloud)#
n8n 提供了一个使用训练节点的快速入门模板。你可以使用它处理模拟数据,而无需设置凭证。
🌐 n8n provides a quickstart template using training nodes. You can use this to work with fake data and avoid setting up credentials.
本快速入门使用 n8n Cloud。新用户可享受免费试用。
🌐 This quickstart uses n8n Cloud. A free trial is available for new users.
- 前往 模板 | 非常快速入门。
- 选择 免费使用 以查看使用该模板的选项。
- 选择 使用 n8n 云免费开始 来注册一个新的云实例。
此工作流程:
🌐 This workflow:
- 从 Customer Datastore 节点获取示例数据。
- 使用 编辑字段 节点仅提取所需的数据,并将这些数据分配给变量。在此示例中,你将映射客户名称、ID 和描述。
n8n 工作流中的各个独立部分称为节点。双击一个节点可以查看其设置以及它是如何处理数据的。
🌐 The individual pieces in an n8n workflow are called nodes. Double click a node to explore its settings and how it processes data.
第二步:运行工作流程(Step two: Run the workflow)#
选择 执行工作流。这将运行工作流,从客户数据存储节点加载数据,然后通过编辑字段进行转换。你需要在工作流中使用这些数据,以便在下一步中使用。
🌐 Select Execute Workflow. This runs the workflow, loading the data from the Customer Datastore node, then transforming it with Edit Fields. You need this data available in the workflow so that you can work with it in the next step.
第三步:添加一个节点(Step three: Add a node)#
添加第三个节点给每个客户发送消息并告知他们的描述。使用客户消息节点向虚拟接收者发送消息。
🌐 Add a third node to message each customer and tell them their description. Use the Customer Messenger node to send a message to fake recipients.
- 在“编辑字段”节点上,选择 添加节点
连接器。 - 搜索 Customer Messenger。n8n 会显示与搜索匹配的节点列表。
- 选择 客户消息(n8n 培训) 将节点添加到 画布。n8n 会自动打开节点。
-
使用表达式来映射客户ID并创建消息:
- 在 输入 面板中选择 模式 选项卡。
- 将 Edit Fields1 > customer_id 拖到节点设置中的 Customer ID 字段。
- 将鼠标悬停在 消息 上。选择 表情 选项卡,然后选择展开按钮
以打开完整的表情编辑器。 -
将此表达式复制到编辑器中:
1Hi {{ $json.customer_name }}. Your description is: {{ $json.customer_description }}
-
关闭表达式编辑器,然后通过点击节点外部或选择“返回画布”来关闭客户消息节点。
- 选择 执行工作流。n8n 将运行该工作流。
完整的流程应如下所示:
🌐 The complete workflow should look like this:
Workflow preview placeholder.