AI 旅行助手
中级
这是一个Support, AI领域的自动化工作流,包含 7 个节点。主要使用 Set, EmailSend, EmailReadImap, ChainLlm, LmOllama 等节点,结合人工智能技术实现智能自动化。 通过邮件使用 Llama AI 自动生成旅行行程
前置要求
- •AI 服务 API Key(如 OpenAI、Anthropic 等)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "UlSHcKupAZfb0FZt",
"meta": {
"instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
"templateCredsSetupCompleted": true
},
"name": "AI 旅行助手",
"tags": [],
"nodes": [
{
"id": "6f0a745d-aa01-4edd-ac2a-444de56e8c60",
"name": "Ollama 模型",
"type": "@n8n/n8n-nodes-langchain.lmOllama",
"position": [
-300,
80
],
"parameters": {
"model": "llama3.2-16000:latest",
"options": {}
},
"credentials": {
"ollamaApi": {
"id": "h9CEBFmYALm3FvZf",
"name": "Ollama account"
}
},
"typeVersion": 1
},
{
"id": "261ba61b-5c01-4cd3-8033-41db9ad2b625",
"name": "邮件触发器(IMAP)",
"type": "n8n-nodes-base.emailReadImap",
"position": [
-500,
-120
],
"parameters": {
"options": {
"customEmailConfig": "[\"UNSEEN\", [\"SUBJECT\", \"itinerary\"]]"
}
},
"credentials": {
"imap": {
"id": "D3nLrSlP1dHWcIDE",
"name": "IMAP account"
}
},
"typeVersion": 2
},
{
"id": "750101d2-7fc0-44d7-a615-d98803669ff2",
"name": "基础 LLM",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
-300,
-120
],
"parameters": {
"text": "={{ $json.textPlain }}",
"messages": {
"messageValues": [
{
"message": "=Create a friendly, human-style travel itinerary based on the email content in {{ $json.textPlain }}. The itinerary should be casual, easy to read, and feel like it was written by a person — not a robot.\n\nInclude the following elements:\n\nA short, warm greeting at the top\n\nA one-line summary of the destination and a few top highlights mentioned in the email\n\nAlways Daily breakdowns starting with \"Day 1:\", \"Day 2:\", etc., matching the number of days specified in the email (e.g., if the email says 4 days, include only Day 1 to Day 4, with Day 4 as the departure day).This thing is important so keep it in mind.\n\nFor each day, include key activities, hotel info, flight times, and transport details — in simple language\n\nKeep the tone conversational, light, and informative — like you're helping a friend plan their trip\n\nAvoid using markdown, emojis, special characters, or extra spacing\n\n\"\"\"\"Use this exact structure, do not add any extra words, and match the number of days to the email content and highlights imp things\"\"\"\"\":\n\nHello Traveller,\n\nHere’s your itinerary for your [destination] adventure! Get ready to explore amazing places like [a few highlights based on the email].\n\nDay 1: [Arrival details, flight info, hotel check-in, maybe a light activity or dinner nearby]\nDay 2: [Activities, any planned tours, transport details if moving around]\nDay 3: [Activities, hotel name if changing, any travel between cities]\nDay 4: [Departure day – include checkout time, transport to airport, and flight info]\n\nBest regards,\nOneclick\n\n\nthis is sample mail \n\nDelhi, the vibrant capital of India! I'd be delighted to help you plan your 4-day trip to Delhi with your family.\n\nHere's a suggested itinerary that covers some of the top attractions, cultural experiences, and culinary delights:\n\n**Day 1: Red Fort, Qutub Minar, and Chandni Chowk**\n\n* Morning: Start at the Red Fort (open from 9:30 AM), a majestic Mughal fort with stunning architecture. Explore the fort's imposing walls, gardens, and palaces.\n* Afternoon: Visit Qutub Minar (open from 10:00 AM), the tallest minaret in India, built by Qutb-ud-din Aibak in 1199 AD.\n* Evening: Take a leisurely stroll through Chandni Chowk, one of Delhi's oldest and most vibrant streets, lined with street food stalls, shops, and historic landmarks.\n\n**Day 2: Humayun's Tomb, Lotus Temple, and Indian Museum**\n\n* Morning: Visit Humayun's Tomb (open from 9:30 AM), a beautiful Mughal mausoleum built by Haji Begum in 1573 AD.\n* Afternoon: Explore the Baha'i Temple (Lotus Temple) in Ashok Vihar (open from 10:00 AM), an iconic temple with stunning architecture and peaceful surroundings.\n* Evening: Head to the Indian Museum, a treasure trove of Indian history and culture, located in Central Delhi.\n\n**Day 3: Akshardham Temple, Laxmi Nagar Shopping Mall, and Chilla Village**\n\n* Morning: Visit the Akshardham Temple (open from 9:00 AM), a magnificent temple complex with intricate carvings, stunning architecture, and beautiful gardens.\n* Afternoon: Spend some time shopping at Laxmi Nagar Shopping Mall, one of Delhi's popular shopping destinations.\n* Evening: Head to Chilla Village, a small village located on the outskirts of Delhi, where you can experience rural India and enjoy a peaceful evening.\n\n**Day 4: Gandhi Smriti, India Gate, and Hauz Khas Village**\n\n* Morning: Visit Gandhi Smriti (open from 9:30 AM), the museum dedicated to Mahatma Gandhi's life and legacy.\n* Afternoon: Explore India Gate (open from 10:00 AM), a stunning war memorial built in honor of Indian soldiers who fought in World War I.\n* Evening: Head to Hauz Khas Village, a trendy neighborhood with boutique shops, cafes, and restaurants.\n\n**Additional Tips**\n\n* Be prepared for the crowds and heat during peak summer months (April to June).\n* Wear comfortable shoes, as you'll be doing a lot of walking throughout the day.\n* Try some local street food, like chaat items or kebabs, but ensure they're cooked and served hygienically.\n* Don't forget to bargain when shopping at local markets!\n* Take breaks and stay hydrated throughout the day.\n\n**Getting Around**\n\n* Use an auto-rickshaw, taxi, or ride-hailing apps (like Ola, Uber) to get around Delhi. Be prepared for traffic congestion.\n* The Metro network in Delhi is efficient and convenient, but be aware of peak hours (7:00 AM - 9:00 AM and 4:00 PM - 6:00 PM).\n\n**Budget Breakdown**\n\n* Accommodation: ₹5,000-₹10,000 (approximately $65-$130 USD) for a family of four, depending on the hotel or hostel you choose.\n* Transportation: ₹1,500-₹3,000 (approximately $20-$40 USD) for auto-rickshaws, taxis, and ride-hailing services.\n* Food: ₹2,000-₹4,000 (approximately $25-$50 USD) per day for meals at local restaurants and street food stalls.\n\nThis itinerary provides a good balance of culture, history, and fun activities that are suitable for families. Feel free to adjust it according to your interests and preferences!\n\n**Are there any specific requests or changes you'd like me to make?\n"
}
]
},
"promptType": "define"
},
"typeVersion": 1.6
},
{
"id": "e5e3a173-43dd-41e5-b373-97c457c70025",
"name": "邮件字段设置",
"type": "n8n-nodes-base.set",
"position": [
100,
-120
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "7d428c48-4809-45d8-ba1e-c96d68c02c07",
"name": "from",
"type": "string",
"value": "={{ $('Trigger From Mail (IMAP)').first().json.from }}"
},
{
"id": "63b99545-3d2d-4563-b9d7-078cbc20dbcc",
"name": "subject",
"type": "string",
"value": "=Re: {{ $('Trigger From Mail (IMAP)').first().json.subject }}"
},
{
"id": "11d94d3f-2170-4b54-b5f9-b85bb95ad472",
"name": "text",
"type": "string",
"value": "={{ $json.text }} "
}
]
}
},
"typeVersion": 3.4
},
{
"id": "f42413ba-81fb-4995-ad56-21f469f7da82",
"name": "发送邮件",
"type": "n8n-nodes-base.emailSend",
"position": [
320,
-120
],
"webhookId": "8ddf4c83-5990-4b1c-ab0d-4cc55932d2c4",
"parameters": {
"text": "={{ $json.text }}",
"options": {},
"subject": "={{ $json.subject }}",
"toEmail": "={{ $json.from }}",
"fromEmail": "XYZ@gmail.com",
"emailFormat": "text"
},
"credentials": {
"smtp": {
"id": "3QSx1pWoS0BZcK4c",
"name": "SMTP account"
}
},
"typeVersion": 2.1
},
{
"id": "9a3324e1-3fe5-4b13-924d-dcb05daf4c8d",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1000,
-340
],
"parameters": {
"width": 420,
"height": 220,
"content": "#### 配置邮件触发器节点的邮件凭据"
},
"typeVersion": 1
},
{
"id": "0e562abb-7c3a-41e2-8a98-7d583dfa2c90",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1000,
-100
],
"parameters": {
"width": 420,
"height": 220,
"content": "#### 配置发送邮件节点的 SMTP 设置"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "2742d28b-b293-481a-8ef2-ec0972d34fe5",
"connections": {
"Basic LLM": {
"main": [
[
{
"node": "Email Field Setup",
"type": "main",
"index": 0
}
]
]
},
"Ollama Model": {
"ai_languageModel": [
[
{
"node": "Basic LLM",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Email Field Setup": {
"main": [
[
{
"node": "Sending Email",
"type": "main",
"index": 0
}
]
]
},
"Trigger From Mail (IMAP)": {
"main": [
[
{
"node": "Basic LLM",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 客户支持, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
智能邮件草稿生成器
智能邮件草稿生成器
Set
Gmail
Email Read Imap
+3
6 节点Oneclick AI Squad
人工智能
LinkedIn帖子创建
使用Claude AI和邮件自动化将语音转录转换为LinkedIn帖子
Set
Code
Merge
+8
15 节点Kyle Morse
人工智能
入职
AI客户入职代理:自动欢迎邮件生成器
Set
Gmail
Error Trigger
+6
20 节点Yaron Been
客户支持
入职流程
AI客户入职代理:自动欢迎邮件生成器
Set
Gmail
Error Trigger
+6
11 节点Yaron Been
客户支持
AI邮件自动回复系统 - 邮箱RAG智能代理
AI邮件自动回复系统 - 邮箱RAG智能代理
If
Set
Gmail
+18
34 节点LukaszB
客户支持
AI邮件分诊与GPT-4警报系统及Telegram通知
AI邮件分诊与GPT-4警报系统及Telegram通知
If
Set
Gmail
+22
104 节点Peter Joslyn
客户支持
工作流信息
难度等级
中级
节点数量7
分类2
节点类型6
作者
OneClick IT Consultancy P Limited
@oneclick-itOneClick is an award-winning offshore software development services company. Clients trust us for quality of service, innovation and AI driven technology solutions.
外部链接
在 n8n.io 查看 →
分享此工作流