Skip to content

n8n#

用于与 n8n 集成的节点。此节点允许你在工作流中使用 n8n API

¥A node to integrate with n8n itself. This node allows you to consume the n8n API in your workflows.

有关使用 n8n API 的更多信息,请参阅 n8n REST API 文档。有关直接使用 API 端点的信息,请参阅 API 端点参考

¥Refer to the n8n REST API documentation for more information on using the n8n API. Refer to API endpoint reference for working with the API endpoints directly.

Credentials

你可以在 API 身份验证 文档中找到此节点的身份验证信息。

¥You can find authentication information for this node in the API authentication documentation.

SSL

此节点不支持 SSL。如果你的服务器需要 SSL 连接,请使用 HTTP 请求节点 调用 n8n API。HTTP 请求节点支持 提供 SSL 证书 元素。

¥This node doesn't support SSL. If your server requires an SSL connection, use the HTTP Request node to call the n8n API. The HTTP Request node has options to provide the SSL certificate.

操作#

¥Operations

  • 审计

¥Audit

¥Credential

¥Execution

¥Workflow

生成审计信息#

¥Generate audit

此操作没有参数。使用以下选项进行配置:

¥This operation has no parameters. Configure it with these options:

  • 类别:选择要包含的风险类别。选项包括:

¥Categories: Select the risk categories you want the audit to include. Options include:

  • 凭据

    ¥Credentials

  • 数据库

    ¥Database

  • 文件系统

    ¥Filesystem

  • 实例

    ¥Instance

  • 节点

    ¥Nodes

  • 工作流放弃天数:使用此选项可设置工作流在多少天未执行后被视为已放弃。输入天数。默认值为 90

¥Days Abandoned Workflow: Use this option to set the number of days without execution after which a workflow should be considered abandoned. Enter a number of days. The default is 90.

创建凭据#

¥Create credential

使用以下参数配置此操作:

¥Configure this operation with these parameters:

  • 名称:输入要创建的凭据名称。

¥Name: Enter the name of the credential you'd like to create.

  • 凭据类型:输入凭据类型。可用类型取决于 n8n 实例上安装的节点。一些内置类型包括 githubApinotionApislackApi

¥Credential Type: Enter the credential's type. The available types depend on nodes installed on the n8n instance. Some built-in types include githubApi, notionApi, and slackApi.

  • 数据:输入一个有效的 JSON 对象,包含此凭据类型所需的属性。要查看预期格式,请使用“获取架构”操作。

¥Data: Enter a valid JSON object with the required properties for this Credential Type. To see the expected format, use the Get Schema operation.

删除凭据#

¥Delete credential

使用此参数配置此操作:

¥Configure this operation with this parameter:

  • 凭据 ID:输入要删除的凭据的 ID。

¥Credential ID: Enter the ID of the credential you want to delete.

获取凭据架构#

¥Get credential schema

使用此参数配置此操作:

¥Configure this operation with this parameter:

  • 凭据类型:输入凭据类型。可用类型取决于 n8n 实例上安装的节点。一些内置类型包括 githubApinotionApislackApi

¥Credential Type: Enter the credential's type. The available types depend on nodes installed on the n8n instance. Some built-in types include githubApi, notionApi, and slackApi.

获取执行#

¥Get execution

使用此参数配置此操作:

¥Configure this operation with this parameter:

  • 执行 ID:输入要检索的执行的 ID。

¥Execution ID: Enter the ID of the execution you want to retrieve.

获取执行选项#

¥Get execution option

你可以使用此选项进一步配置此操作:

¥You can further configure this operation with this Option:

  • 包含执行详情:使用此控件设置是否包含详细的执行数据(启用)或不包含(禁用)。

¥Include Execution Details: Use this control to set whether to include the detailed execution data (turned on) or not (turned off).

获取多个执行#

¥Get many executions

使用以下参数配置此操作:

¥Configure this operation with these parameters:

  • 返回全部:设置是否返回所有结果(启用)或将结果限制在指定的限制范围内(启用)。

¥Return All: Set whether to return all results (turned on) or whether to limit the results to the entered Limit (turned on).

  • 限制:设置如果“全部返回”控件关闭,则返回的结果数。

¥Limit: Set the number of results to return if the Return All control is turned off.

获取多个执行筛选条件#

¥Get many executions filters

你可以使用以下过滤器进一步配置此操作:

¥You can further configure this operation with these Filters:

  • 工作流:按工作流筛选执行。选项包括:

¥Workflow: Filter the executions by workflow. Options include:

  • 从列表获取:选择要用作过滤器的工作流。

    ¥From list: Select a workflow to use as a filter.

  • 按 URL:输入一个工作流 URL,用作筛选条件。

    ¥By URL: Enter a workflow URL to use as a filter.

  • 按 ID:输入一个工作流 ID,用作筛选条件。

    ¥By ID: Enter a workflow ID to use as a filter.

  • 状态:按状态筛选执行。选项包括:

¥Status: Filter the executions by status. Options include:

  • 错误

    ¥Error

  • 成功

    ¥Success

  • 正在等待

    ¥Waiting

获取多个执行选项#

¥Get many execution options

你可以使用此选项进一步配置此操作:

¥You can further configure this operation with this Option:

  • 包含执行详情:使用此控件设置是否包含详细的执行数据(启用)或不包含(禁用)。

¥Include Execution Details: Use this control to set whether to include the detailed execution data (turned on) or not (turned off).

删除执行#

¥Delete execution

使用此参数配置此操作:

¥Configure this operation with this parameter:

  • 执行 ID:输入要删除的执行的 ID。

¥Execution ID: Enter the ID of the execution you want to delete.

激活、停用、删除和获取工作流#

¥Activate, deactivate, delete, and get workflow

“激活”、“停用”、“删除”和“获取”工作流操作都包含相同的参数,供你选择要对其执行操作的工作流。选项包括:

¥The Activate, Deactivate, Delete, and Get workflow operations all include the same parameter for you to select the Workflow you want to perform the operation on. Options include:

  • 从列表获取:从列表中选择工作流。

¥From list: Select the workflow from the list.

  • 按 URL:输入工作流 URL。

¥By URL: Enter the URL of the workflow.

  • 按 ID:输入工作流 ID。

¥By ID: Enter the ID of the workflow.

创建工作流#

¥Create workflow

使用此参数配置此操作:

¥Configure this operation with this parameter:

  • 工作流对象:输入一个有效的 JSON 对象,包含新工作流的详细信息。该对象需要以下字段:

¥Workflow Object: Enter a valid JSON object with the new workflow's details. The object requires these fields:

  • name

  • nodes

  • connections

  • settings

有关更多信息,请参阅 n8n API 参考

¥Refer to n8n API reference for more information.

获取多个工作流#

¥Get many workflows

使用以下参数配置此操作:

¥Configure this operation with these parameters:

  • 返回全部:设置是否返回所有结果(启用)或将结果限制在指定的限制范围内(启用)。

¥Return All: Set whether to return all results (turned on) or whether to limit the results to the entered Limit (turned on).

  • 限制:设置如果“全部返回”控件关闭,则返回的结果数。

¥Limit: Set the number of results to return if the Return All control is turned off.

获取多个工作流筛选条件#

¥Get many workflows filters

你可以使用以下过滤器进一步配置此操作:

¥You can further configure this operation with these Filters:

  • 仅返回活动工作流:选择仅返回活动工作流(已开启)还是返回活动和非活动工作流(已关闭)。

¥Return Only Active Workflows: Select whether to return only active workflows (turned on) or active and inactive workflows (turned off).

  • 标签:输入返回的工作流必须包含的标签列表(以逗号分隔)。

¥Tags: Enter a comma-separated list of tags the returned workflows must have.

更新工作流#

¥Update workflow

使用以下参数配置此操作:

¥Configure this operation with these parameters:

  • 工作流:选择要更新的工作流。选项包括:

¥Workflow: Select the workflow you want to update. Options include:

  • 从列表获取:从列表中选择工作流。

    ¥From list: Select the workflow from the list.

  • 按 URL:输入工作流 URL。

    ¥By URL: Enter the URL of the workflow.

  • 按 ID:输入工作流 ID。

    ¥By ID: Enter the ID of the workflow.

  • 工作流对象:输入一个有效的 JSON 对象,用于更新工作流。该对象需要以下字段:

¥Workflow Object: Enter a valid JSON object to update the workflow with. The object requires these fields:

  • name

  • nodes

  • connections

  • settings

更多信息,请参阅 n8n API | 更新工作流文档

¥Refer to the n8n API | Update a workflow documentation for more information.

模板和示例#

¥Templates and examples

Template widget placeholder.