8
n8n 中文网amn8n.com

语音呼叫旅行代理

中级

这是一个Lead Nurturing, AI Chatbot领域的自动化工作流,包含 10 个节点。主要使用 Webhook, Agent, RespondToWebhook, LmChatOpenAi, ToolVectorStore 等节点。 基于ElevenLabs、GPT-4o和Pinecone的语音驱动旅行行程生成器

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • OpenAI API Key
  • Pinecone API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "YuB6Lt8NQUCamKzZ",
  "meta": {
    "instanceId": "92e36925b2d06addd7a010605535ce53ac105737436355f7e52e2980c726ed3d",
    "templateCredsSetupCompleted": true
  },
  "name": "语音呼叫旅行代理",
  "tags": [
    {
      "id": "r3Cwkf4bJhSx5yQB",
      "name": "n8n Release done",
      "createdAt": "2025-07-19T05:10:40.581Z",
      "updatedAt": "2025-07-19T05:10:40.581Z"
    }
  ],
  "nodes": [
    {
      "id": "51a32127-fd25-4b43-a53e-b5e8e37c6ce1",
      "name": "OpenAI 嵌入",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        128,
        1424
      ],
      "parameters": {
        "model": "text-embedding-ada-002",
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "id",
          "name": "OpenAi account 5"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "22c1022f-3b27-4846-b60c-1ce51670bf87",
      "name": "OpenAI 聊天模型2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        544,
        1328
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o",
          "cachedResultName": "gpt-4o"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "id",
          "name": "OpenAi account 5"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "7018fadc-6ecc-44e0-8b4e-225deb189589",
      "name": "响应Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        576,
        880
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "dc0555a8-6a90-40db-89db-d361838b3594",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        64,
        1088
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "id",
          "name": "OpenAi account 5"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b56e15c4-4944-4faa-92da-f5350f87849a",
      "name": "旅游推荐 AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        80,
        880
      ],
      "parameters": {
        "text": "={{ $json.body }}",
        "options": {
          "systemMessage": "You are an experienced tours and Packages travel agent who build tour packages for customers as per the request you receive. \nYour source for tours is from the pinecone vector databse, and you smartly analyse and combine the tours and activities and recommend to the customers acordingly. \noutput the format as per the Structured Output Parser response\n\nConditions of daily tour recommendations:\n1. Always keep total duration of tours and activities between 8AM and 11.59 PM unless the activity itself is through the night like Casinos, bar hopping etc...\n2. If there is any 'full day' activity, do not include any other activity for that day. \n3. Group activities that are in proximity to one another unless the cusotmer specifically asks for or adds the activities manually.\n4. Add default 'Breakfast' between 8.00am and 9.00am as an activity.\n5. Add default 'Lunch' between 1.00pm and 2.00pm as an activity.\n6. Add defauly 'dinner' between 8.00pm and 9.00pm as an activity. \n "
        },
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "c648861d-bcb7-4c11-8f60-56486218135f",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        784
      ],
      "parameters": {
        "width": 1088,
        "height": 816,
        "content": "## 语音驱动旅行代理"
      },
      "typeVersion": 1
    },
    {
      "id": "202c81b6-0d38-441b-978e-a926fc2a98eb",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        784
      ],
      "parameters": {
        "color": 4,
        "width": 440,
        "height": 820,
        "content": "## 步骤"
      },
      "typeVersion": 1
    },
    {
      "id": "1e9a4dec-ca35-49d8-a6f0-d4b245e3dc18",
      "name": "旅游列表数据存储",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        176,
        1248
      ],
      "parameters": {
        "options": {},
        "pineconeIndex": {
          "__rl": true,
          "mode": "list",
          "value": "value",
          "cachedResultName": "name"
        }
      },
      "credentials": {
        "pineconeApi": {
          "id": "id",
          "name": "PineconeApi account 2"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "e74a5928-f6ec-40a9-a4ae-3965f2932b13",
      "name": "旅游构建器问答",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        304,
        1088
      ],
      "parameters": {
        "description": "#角色#"
      },
      "typeVersion": 1.1
    },
    {
      "id": "3cf42ffa-ded3-41bc-8bcc-dd436fe1c968",
      "name": "语音代理 Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -160,
        880
      ],
      "webhookId": "b47fe152-af9c-4910-9cd4-d6300920a299",
      "parameters": {
        "path": "travel",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "d86bd654-1385-4bf6-9088-ee4b5a848525",
  "connections": {
    "Tour Builder Q&A": {
      "ai_tool": [
        [
          {
            "node": "Tour Recommendation AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Tour List Data store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Tour Builder Q&A",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Tour Recommendation AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Voice Agent Webhook": {
      "main": [
        [
          {
            "node": "Tour Recommendation AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tour List Data store": {
      "ai_vectorStore": [
        [
          {
            "node": "Tour Builder Q&A",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "Tour Recommendation AI Agent1": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 客户培育, AI 聊天机器人

需要付费吗?

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

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

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

作者
Mohan Gopal

Mohan Gopal

@mohan

B2B and B2C Travel App Consultant. Building AI Agent for Travel Solution.

外部链接
在 n8n.io 查看

分享此工作流