Skip to content

AI Agent 节点#

AI 代理是一种自主系统,能够接收数据、做出合理决策并在其环境中执行操作以实现特定目标。AI 代理的环境是指代理可以访问的所有非代理本身的事物。该代理使用外部工具和 API 来执行操作并检索信息。它能够理解不同工具的功能,并根据任务决定使用哪个工具。

连接工具

您必须至少连接一个工具子节点到 AI Agent 节点。

代理类型

在 1.82.0 版本之前,AI Agent 有设置不同代理类型的选项。此功能现已被移除,所有 AI Agent 节点都作为 Tools Agent 工作,这是之前推荐且最常用的设置。如果您在工作流或模板中使用旧版本的 AI Agent,只要它们设置为 'Tools Agent',更新后的节点仍会按预期工作。

模板和示例#

AI agent chat

by n8n Team

View template details
Building Your First WhatsApp Chatbot

by Jimleuk

View template details
AI agent that can scrape webpages

by Eduard

View template details
Browse AI Agent integration templates, or search all templates

相关资源#

更多关于该服务的信息,请参考 LangChain 关于代理的文档

初次接触 AI 代理?阅读 n8n 博客对 AI 代理的介绍

查看 n8n 的高级 AI 文档。

常见问题#

关于常见错误或问题及建议解决步骤,请参阅常见问题

AI glossary#

  • completion: Completions are the responses generated by a model like GPT.
  • hallucinations: Hallucination in AI is when an LLM (large language model) mistakenly perceives patterns or objects that don't exist.
  • vector database: A vector database stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.
  • vector store: A vector store, or vector database, stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.