HTTP Request Tool node#
HTTP Request Tool 节点#
Legacy tool version
旧版工具版本
New instances of the HTTP Request tool node that you add to workflows use the standard HTTP Request node as a tool. This page is describes the legacy, standalone HTTP Request tool node.
您添加到工作流程中的新 HTTP Request 工具节点实例使用标准 HTTP Request 节点作为工具。此页面描述的是旧版独立 HTTP Request 工具节点。
您可以通过检查在画布上打开节点时节点是否具有 Add option 属性来识别工作流程中的工具版本。如果存在该按钮,则您使用的是新版本,而不是此页面上描述的版本。
The HTTP Request tool works just like the HTTP Request node, but it's designed to be used with an AI agent as a tool to collect information from a website or API.
HTTP Request 工具的工作方式与 HTTP Request 节点完全相同,但它设计用于与 AI 代理 一起作为从网站或 API 收集信息的工具。
On this page, you'll find a list of operations the HTTP Request node supports and links to more resources.
在此页面上,您将找到 HTTP Request 节点支持的操作列表以及更多资源的链接。
Credentials
凭据
Refer to HTTP Request credentials for guidance on setting up authentication.
请参阅 HTTP Request 凭据 获取设置身份验证的指导。
子节点中的参数解析
子节点在使用表达式处理多个项目时的行为与其他节点不同。
大多数节点,包括根节点,接受任意数量的项目作为输入,处理这些项目,并输出结果。您可以使用表达式引用输入项目,节点会依次为每个项目解析表达式。例如,给定五个 name
值的输入,表达式 {{ $json.name }}
会依次解析为每个名称。
在子节点中,表达式始终解析为第一个项目。例如,给定五个 name
值的输入,表达式 {{ $json.name }}
始终解析为第一个名称。
Templates and examples#
模板和示例#
Related resources#
相关资源#
有关 LangChain 中工具的更多信息,请参阅 LangChain 关于工具的文档。
查看 n8n 的高级 AI文档。
AI 术语表#
- completion(完成/补全): 完成是由 GPT 等模型生成的响应。
- hallucinations(幻觉): AI 中的幻觉是指大语言模型(LLM)错误地感知到不存在的模式或对象。
- vector database(向量数据库): 向量数据库存储信息的数学表示。与嵌入和检索器一起使用,创建 AI 在回答问题时可以访问的数据库。
- vector store(向量存储): 向量存储或向量数据库,存储信息的数学表示。与嵌入和检索器一起使用,创建 AI 在回答问题时可以访问的数据库。