构建工作流
How tools work
In AI, 'tools' has a specific meaning. Tools act like addons that your AI can use to access extra context or resources.
Here are a couple of other ways of expressing it:
Tools are interfaces that an agent can use to interact with the world (source)
We can think of these tools as being almost like functions that your AI model can call (source)
AI tools in n8n
n8n provides tool sub-nodes1 that you can connect to your AI agent2. As well as providing some popular tools, such as Wikipedia and SerpAPI, n8n provides three especially powerful tools:
- Call n8n Workflow Tool: use this to load any n8n workflow as a tool.
- Custom Code Tool: write code that your agent can run.
- HTTP Request Tool: make calls to fetch a website or data from an API.
The next three examples highlight the Call n8n Workflow Tool:
You can also learn how to let AI dynamically specify parameters for tools with the $fromAI() function.
Footnotes
- Back
n8n cluster nodes consist of one or more sub nodes connected to a root node. Sub nodes extend the functionality of the root node, providing access to specific services or resources or offering specific types of dedicated processing, like calculator functionality, for example.
- Back
AI agents are artificial intelligence systems capable of responding to requests, making decisions, and performing real-world tasks for users. They use large language models (LLMs) to interpret user input and make decisions about how to best process requests using the information and resources they have available.
官方原文和授权
本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。