Skip to content

工作流检索器节点#

¥Workflow Retriever node

使用工作流检索器节点从 n8n 工作流中检索数据,以便在检索 QA 链或其他检索器节点中使用。

¥Use the Workflow Retriever node to retrieve data from an n8n workflow for use in a Retrieval QA Chain or another Retriever node.

本页包含工作流检索器节点的节点参数以及更多资源的链接。

¥On this page, you'll find the node parameters for the Workflow Retriever node, and links to more resources.

Parameter resolution in sub-nodes

Sub-nodes behave differently to other nodes when processing multiple items using an expression.

Most nodes, including root nodes, take any number of items as input, process these items, and output the results. You can use expressions to refer to input items, and the node resolves the expression for each item in turn. For example, given an input of five name values, the expression {{ $json.name }} resolves to each name in turn.

In sub-nodes, the expression always resolves to the first item. For example, given an input of five name values, the expression {{ $json.name }} always resolves to the first name.

节点参数#

¥Node parameters

#

¥Source

指示 n8n 要调用哪个工作流。你可以选择以下任一选项:

¥Tell n8n which workflow to call. You can choose either:

  • 在数据库中输入工作流 ID。

¥Database and enter a workflow ID.

¥Parameter and copy in a complete workflow JSON.

工作流值#

¥Workflow values

Set values to pass to the workflow you're calling.

These values appear in the output data of the trigger node in the workflow you call. You can access these values in expressions in the workflow. For example, if you have:

  • Workflow Values with a Name of myCustomValue
  • A workflow with an Execute Sub-workflow Trigger node as its trigger

The expression to access the value of myCustomValue is {{ $('Execute Sub-workflow Trigger').item.json.myCustomValue }}.

模板和示例#

¥Templates and examples

Template widget placeholder.

相关资源#

¥Related resources

有关服务的更多信息,请参阅 LangChain 的通用检索器文档

¥Refer to LangChain's general retriever documentation for more information about the service.

View n8n's Advanced AI documentation.