8
n8n 中文网amn8n.com

🌐🪛 带有Jina.ai网页抓取器的AI代理聊天机器人

中级

这是一个AI领域的自动化工作流,包含 9 个节点。主要使用 Agent, ChatTrigger, LmChatOpenAi, ToolHttpRequest, MemoryBufferWindow 等节点,结合人工智能技术实现智能自动化。 🌐🪛 带有Jina.ai网页抓取器的AI代理聊天机器人

前置要求
  • OpenAI API Key
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "xEij0kj2I1DHbL3I",
  "meta": {
    "instanceId": "31e69f7f4a77bf465b805824e303232f0227212ae922d12133a0f96ffeab4fef"
  },
  "name": "🌐🪛 带有 Jina.ai 网页抓取器的 AI Agent 聊天机器人",
  "tags": [],
  "nodes": [
    {
      "id": "ea5369a0-4283-46fc-b738-8cf787181e93",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        0,
        -280
      ],
      "webhookId": "e298fd8c-2af9-4db2-bb8b-94d70fbc2938",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "07c8338b-d47e-467b-996f-99c9fbe67f89",
      "name": "便签14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -460
      ],
      "parameters": {
        "color": 5,
        "width": 680,
        "height": 700,
        "content": "## 带有 Jina.ai 网页抓取器的 AI Agent 聊天机器人"
      },
      "typeVersion": 1
    },
    {
      "id": "00da1c9b-b5f7-42b8-8bdd-938a8daf7410",
      "name": "窗口缓冲区内存",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        520,
        20
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "f14426ee-709d-4651-a0b7-e823bff5ee74",
      "name": "Jina.ai 网页抓取 Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        440,
        -280
      ],
      "parameters": {
        "text": "=You have access to a powerful scrape_website tool that can retrieve real-time web content. Use this tool to extract any needed information from the website, analyze the data, and craft a clear, accurate, and concise answer to the user's question. Be sure to include relevant details from the scraped content. \n\nUser Question: {{ $json.chatInput }}\n\n",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "3ce16f26-073b-4ccc-a65f-2ca870a9bd16",
      "name": "gpt-4o-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        340,
        20
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "jEMSvKmtYfzAkhe6",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "3a503859-ef0a-492d-81c6-37e4f0c4c25e",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        -20
      ],
      "parameters": {
        "width": 400,
        "height": 320,
        "content": "## Jina.ai 网页抓取工具"
      },
      "typeVersion": 1
    },
    {
      "id": "833d19c0-3a98-4cb0-a60c-412ea4d3a67a",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -460
      ],
      "parameters": {
        "color": 7,
        "width": 460,
        "height": 760,
        "content": "**带有 Jina.ai 网页抓取器的 AI Agent 聊天机器人**工作流是一个强大的自动化工具,旨在将实时网页抓取功能集成到 AI 驱动的聊天机器人中。以下是其工作原理及其重要性:"
      },
      "typeVersion": 1
    },
    {
      "id": "9e9cc23b-9881-44ab-bd20-5c9176ba1c43",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -80
      ],
      "parameters": {
        "color": 4,
        "width": 280,
        "height": 320,
        "content": "## 试试看!"
      },
      "typeVersion": 1
    },
    {
      "id": "a95efbfd-f908-4f7b-bf47-05b993250ed2",
      "name": "Jina.ai 网页抓取工具",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        860,
        140
      ],
      "parameters": {
        "url": "=https://r.jina.ai/{url}",
        "toolDescription": "Call this tool to scrape a website.  Extract the URL from the user prompt.",
        "placeholderDefinitions": {
          "values": [
            {
              "name": "url",
              "type": "string",
              "description": "User provided website url"
            }
          ]
        }
      },
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5ce466c5-2195-4038-9c52-cc7debd5f4b8",
  "connections": {
    "gpt-4o-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Jina.ai Web Scraping Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "Jina.ai Web Scraping Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Jina.ai Web Scraper Tool": {
      "ai_tool": [
        [
          {
            "node": "Jina.ai Web Scraping Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Jina.ai Web Scraping Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 人工智能

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量9
分类1
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Joseph LePage

Joseph LePage

@joe

As an AI Automation consultant based in Canada, I partner with forward-thinking organizations to implement AI solutions that streamline operations and drive growth.

外部链接
在 n8n.io 查看

分享此工作流