8
n8n 中文网amn8n.com

使用Gemini AI、实时Amadeus航班和Airbnb住宿规划旅行行程

中级

这是一个Personal Productivity, AI Chatbot领域的自动化工作流,包含 10 个节点。主要使用 Set, Code, Webhook, HttpRequest, McpClientTool 等节点。 使用Gemini AI、实时Amadeus航班和Airbnb住宿规划旅行行程

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "b6731f6e46273cffeac6b5188a5b3bcb0840c00108e73b48ae2b799ac6e8e081",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "bfc008db-0ce3-408e-81e0-7ae4a59827ae",
      "name": "MCP 客户端列表工具",
      "type": "n8n-nodes-mcp.mcpClientTool",
      "position": [
        2240,
        208
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4c023674-f122-461f-8b2a-7a4cf8bcf0f8",
      "name": "MCP 执行工具",
      "type": "n8n-nodes-mcp.mcpClientTool",
      "position": [
        2432,
        208
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "261e170e-3cc4-46af-99c1-7258689c37ba",
      "name": "Google Vertex 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleVertex",
      "position": [
        2048,
        208
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0b8d99c9-2e6c-45c9-a357-4e367fb9f74e",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1888,
        -32
      ],
      "webhookId": "87b12eb4-a4fb-418d-816e-a72730c35480",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ff786384-4d96-4dac-bf7a-2a0874c61254",
      "name": "响应 Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3472,
        -32
      ],
      "parameters": {},
      "typeVersion": 1.4
    },
    {
      "id": "0ff2d625-a11d-4f46-8a43-319d80737eee",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        3248,
        -32
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "76879d17-f704-44a4-a201-3779581ea062",
      "name": "带票价的航班搜索",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2800,
        -32
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "0ad516da-6610-40d4-b0d6-e41b15b7fa2b",
      "name": "抓取清洁数据",
      "type": "n8n-nodes-base.code",
      "position": [
        2576,
        -32
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f88182f5-aa5a-42b1-acf0-7196aa614278",
      "name": "航班数据 + Airbnb 房源",
      "type": "n8n-nodes-base.code",
      "position": [
        3024,
        -32
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "c4d03699-1ae0-4b90-be6b-16e6fd245cbf",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2144,
        -32
      ],
      "parameters": {},
      "typeVersion": 1.8
    }
  ],
  "pinData": {},
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Grabbing Clean Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MCP Execute Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Grabbing Clean Data": {
      "main": [
        [
          {
            "node": "Flight Search with fare",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MCP Client List Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Flight Search with fare": {
      "main": [
        [
          {
            "node": "Flight Data + Airbnb Listings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Vertex Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Flight Data + Airbnb Listings": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 个人效率, AI 聊天机器人

需要付费吗?

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

工作流信息
难度等级
中级
节点数量10
分类2
节点类型8
难度说明

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

外部链接
在 n8n.io 查看

分享此工作流