Generate personalized tour itineraries via email with GPT-4o and Pinecone
Needs changesWhat this workflow does
This AI workflow has 12 nodes and runs when a new email arrives over IMAP. Along the way it connects OpenRouter Chat Model, OpenAI Chat Model, Vector Store Question Answer and Pinecone Vector Store and 1 more.
How it runs
Trigger: When a new email arrives over IMAP.
- Route Workflow by Email Type (Text Classifier): classifies text into categories with AI, with model: OpenRouter Chat Model
- Format email content (Code): runs custom JavaScript code
- Tour Recommendation AI Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Answer questions with a vector store); memory: Simple Memory
- Package Response Email (Send Email): sends an email over SMTP
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Tour Recommendation AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Tour Recommendation AI Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - Send Email
n8n-nodes-base.emailSend
From the author
🏖️ AI-Based Tour Itineraries via Email Using OpenAI & Pinecone Vector Search Overview This workflow automates the process of handling new tour package requests received via email, analyzes the request, and provides personalized tour package recommendations…