8
n8n 中文网amn8n.com

WhatsApp 旅行规划器 - 即时旅行助手

中级

这是一个Support Chatbot, AI Chatbot领域的自动化工作流,包含 7 个节点。主要使用 Wait, WhatsApp, Agent, WhatsAppTrigger, LmChatOllama 等节点。 基于 Llama 3.2 的 WhatsApp AI 旅行助手

前置要求
  • 无特殊前置要求,导入即可使用
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "j8cEUhUTfh7NrWYR",
  "meta": {
    "instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
    "templateCredsSetupCompleted": true
  },
  "name": "WhatsApp 旅行规划器 - 即时旅行助手",
  "tags": [],
  "nodes": [
    {
      "id": "121aa07e-2fef-4449-8971-4ebc679a5bfa",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -600
      ],
      "parameters": {
        "width": 480,
        "height": 180,
        "content": "此工作流通过 WhatsApp 自动化个性化旅行助手服务。它帮助用户规划旅行、探索目的地、获取签证/天气/酒店信息以及预订套餐 - 全部通过名为 Alex 的友好虚拟助手完成。它确保提供快速、类似人工的 24/7 支持,改善客户体验并减少旅行代理的手动处理"
      },
      "typeVersion": 1
    },
    {
      "id": "46233d6c-35a6-4d00-bc6a-f01e71ec538a",
      "name": "获取 WhatsApp 消息",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        -400,
        -140
      ],
      "webhookId": "66ee9d0b-5131-400f-b483-ded09c678cb2",
      "parameters": {
        "options": {},
        "updates": [
          "messages"
        ]
      },
      "credentials": {
        "whatsAppTriggerApi": {
          "id": "jt1wbDtaEmlHpPFc",
          "name": "WhatsApp -test"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ce1e12df-55f4-42ce-a72f-5c5e1a03a641",
      "name": "旅行助手",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -180,
        -140
      ],
      "parameters": {
        "text": "={{ $json.messages[0].text.body }}",
        "options": {
          "systemMessage": "You are Alex, a friendly, professional travel assistant, helping users on WhatsApp with trip planning, destination suggestions, tour packages, travel questions (like visas, weather, hotels), and bookings.\n\nYour style: Clear, concise, warm, and human-like. Avoid technical terms unless asked.\n\nAlways start with this message:\nHello! {{ $json.contacts[0].profile.name }}, welcome to OneClick. I’m your travel assistant. Where would you like to travel?"
        },
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "5293e129-1ef3-4500-a3f3-c31ee2516453",
      "name": "内存",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -32,
        80
      ],
      "parameters": {
        "sessionKey": "={{ $json.messages[0].text.body }}",
        "sessionIdType": "customKey",
        "contextWindowLength": 200
      },
      "typeVersion": 1.3
    },
    {
      "id": "6dc49e56-457c-44e2-a450-bdb17fd9d04b",
      "name": "旅行计划创建器",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        -152,
        80
      ],
      "parameters": {
        "model": "llama3.2-16000:latest",
        "options": {}
      },
      "credentials": {
        "ollamaApi": {
          "id": "7td3WzXCW2wNhraP",
          "name": "Ollama - test"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d48c5d6e-95f2-4e60-a4be-e4aa9d187229",
      "name": "等待回复",
      "type": "n8n-nodes-base.wait",
      "position": [
        196,
        -140
      ],
      "webhookId": "8069f833-ea9c-47a3-9a8a-a29c04c329a3",
      "parameters": {
        "amount": 10
      },
      "typeVersion": 1.1
    },
    {
      "id": "c0b1cb28-8f3e-4cbf-9119-29bc62b4a7fc",
      "name": "在 WhatsApp 上发送回复",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        416,
        -140
      ],
      "webhookId": "edbe9124-cc88-4af2-8cdb-af9ce7d7d673",
      "parameters": {
        "textBody": "={{ $json.output }}",
        "operation": "send",
        "phoneNumberId": "=+919876542345",
        "additionalFields": {},
        "recipientPhoneNumber": "={{ $('Get WhatsApp Message').item.json.contacts[0].wa_id }}"
      },
      "credentials": {
        "whatsAppApi": {
          "id": "b0PxTDPdWzznWnfG",
          "name": "WhatsApp-test "
        }
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "827ccd83-7f7a-41ce-8568-c3beb451fbd9",
  "connections": {
    "Memory": {
      "ai_memory": [
        [
          {
            "node": "Travel Assistant",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Travel Assistant": {
      "main": [
        [
          {
            "node": "Wait For Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait For Response": {
      "main": [
        [
          {
            "node": "Send Reply On WhatsApp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Travel Plan Creator": {
      "ai_languageModel": [
        [
          {
            "node": "Travel Assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get WhatsApp Message": {
      "main": [
        [
          {
            "node": "Travel Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 客服机器人, AI 聊天机器人

需要付费吗?

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

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

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

作者
Oneclick AI Squad

Oneclick AI Squad

@oneclick-ai

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.

外部链接
在 n8n.io 查看

分享此工作流