Skip to content

信息提取器节点#

¥Information Extractor node

使用“信息提取器”节点,从传入数据中提取结构化信息。

¥Use the Information Extractor node to extract structured information from incoming data.

本页包含信息提取器节点的节点参数以及更多资源的链接。

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

节点参数#

¥Node parameters

  • 文本定义要从中提取信息的输入文本。这通常是一个引用输入项中某个字段的表达式。例如,如果输入是聊天触发器,则该属性可以是 {{ $json.chatInput }};如果前一个节点是“从 PDF 提取”,则该属性可以是 {{ $json.text }}

¥Text defines the input text to extract information from. This is usually an expression that references a field from the input items. For example, this could be {{ $json.chatInput }} if the input is a chat trigger, or {{ $json.text }} if a previous node is Extract from PDF.

  • 使用模式类型选择描述所需输出数据格式的方式。你可以选择:

¥Use Schema Type to choose how you want to describe the desired output data format. You can choose between:

  • 从属性描述获取:此选项允许你通过指定属性列表及其描述来定义模式。

    ¥From Attribute Descriptions: This option allows you to define the schema by specifying the list of attributes and their descriptions.

  • 从 JSON 示例生成:输入一个示例 JSON 对象以自动生成模式。此节点使用对象属性类型和名称。它忽略实际值。n8n 在从 JSON 示例生成模式时,会将每个字段都视为必填项。

    ¥Generate From JSON Example: Input an example JSON object to automatically generate the schema. The node uses the object property types and names. It ignores the actual values. n8n treats every field as mandatory when generating schemas from JSON examples.

  • 使用 JSON Schema 定义:手动输入 JSON 模式。阅读 JSON Schema 指南和示例 文档,了解如何创建有效的 JSON Schema。

    ¥Define using JSON Schema: Manually input the JSON schema. Read the JSON Schema guides and examples for help creating a valid JSON schema.

节点选项#

¥Node options

  • 系统提示模板:使用此选项可更改用于信息提取的系统提示。n8n 会自动将格式规范说明附加到提示符。

¥System Prompt Template: Use this option to change the system prompt that's used for the information extraction. n8n automatically appends format specification instructions to the prompt.

相关资源#

¥Related resources

View n8n's Advanced AI documentation.