AI 代理节点#
¥AI Agent node
AI 代理 是一个自主系统,它接收数据、做出理性决策,并在其环境中采取行动以实现特定目标。AI 代理的环境是指代理可以访问的除代理自身之外的所有内容。此代理使用外部 tools 和 API 来执行操作和检索信息。它可以了解不同工具的功能,并根据任务确定使用哪个工具。
¥An AI agent is an autonomous system that receives data, makes rational decisions, and acts within its environment to achieve specific goals. The AI agent's environment is everything the agent can access that isn't the agent itself. This agent uses external tools and APIs to perform actions and retrieve information. It can understand the capabilities of different tools and determine which tool to use depending on the task.
Connect a tool
你必须将至少一个工具 sub-node 连接到 AI Agent 节点。
¥You must connect at least one tool sub-node to an AI Agent node.
Agent type
在 1.82.0 版本之前,AI 代理有一个设置,可以作为不同的代理类型运行。此限制现已移除,所有 AI Agent 节点均作为 Tools Agent 运行,这是推荐且最常用的设置。如果你在工作流或模板中使用旧版本的 AI 代理,只要它们之前设置为 'Tools Agent',更新后的节点应该也能正常运行。
¥Prior to version 1.82.0, the AI Agent had a setting for working as different agent types. This has now been removed and all AI Agent nodes work as a Tools Agent which was the recommended and most frequently used setting. If you're working with older versions of the AI Agent in workflows or templates, as long as they were set to 'Tools Agent', they should continue to behave as intended with the updated node.
模板和示例#
¥Templates and examples
相关资源#
¥Related resources
有关服务的更多信息,请参阅 LangChain 的代理文档。
¥Refer to LangChain's documentation on agents for more information about the service.
AI 代理新手?读取 n8n AI 代理博客介绍。
¥New to AI Agents? Read the n8n blog introduction to AI agents.
View n8n's Advanced AI documentation.
常见问题#
¥Common issues
有关常见错误或问题以及建议的解决方法,请参阅 常见问题。
¥For common errors or issues and suggested resolution steps, refer to Common Issues.