Skip to content

HTTP 请求工具节点(HTTP Request Tool node)#

旧版工具

你在工作流中添加的 HTTP 请求工具节点的新实例使用标准的 HTTP 请求 节点作为工具。本页面描述的是旧版独立 HTTP 请求工具节点。

你可以通过检查在画布上打开节点时节点是否具有 添加选项 属性来识别工作流中使用的工具版本。如果存在该按钮,则表示你使用的是新版本,而不是本页面描述的版本。

HTTP 请求工具的工作方式与 HTTP 请求 节点完全一样,但它被设计为可与 AI 代理 一起使用,作为从网站或 API 收集信息的工具。

🌐 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 请求节点支持的操作列表以及更多资源的链接。

🌐 On this page, you'll find a list of operations the HTTP Request node supports and links to more resources.

凭证

请参阅 HTTP 请求凭据 以获取有关设置身份验证的指南。

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.

模板和示例(Templates and examples)#

Template widget placeholder.

Refer to LangChain's documentation on tools for more information about tools in LangChain.

View n8n's Advanced AI documentation.