Block 1 - OpenAI Chat Model
- Type / Role
- @n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
- Config choices
- Version 1.2
This workflow is provided as-is. Please review and test before using in production.
Personalized Tour Package Recommendations via n8n + Pinecone + Lovable UI I've created an intelligent Travel Itinerary Planner that connects a Lovable front end UI with a smart backend powered by n...
@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.toolvectorstore, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.respondtowebhook
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Mohan Gopal.
Original n8n.io sourceI've created an intelligent Travel Itinerary Planner that connects a Lovable front-end UI with a smart backend powered by n8n, Pinecone, and OpenAI to deliver personalized tour packages based on natural language queries.
Users type in their travel destination and duration (e.g., "Paris 5 days trip" or "Bali Trip for 7 Days, would love water sports, adventures and trekking included, also some historical monuments") through a Lovable UI.
This triggers a webhook in n8n, which processes the request, searches vectorized tour data in Pinecone, and generates a personalized itinerary using OpenAI’s GPT.
The results are then structured and sent back to the frontend UI for display in an interactive, reorderable format.
Lovable UI ➝ Webhook ➝ Tour Recommendation Agent ➝ Vector Search ➝ OpenAI Response ➝ Structured Output ➝ Response to Lovable
Webhook Acts as the entry point between the Lovable frontend and n8n.
Captures the user query (destination, duration) and forwards it into the workflow.
OpenAI Chat Model To interpret the user query.
To generate a user-friendly, structured tour package from the matched results.
Simple Memory Keeps chat state and context for follow-up queries (extendable for future features like multi-step planning or saved itineraries).
Question Answering with Vector Store Searches vector embeddings of pre-loaded tour data.
Finds the most relevant tour packages by comparing query embeddings.
Pinecone Vector Store Stores tour packages and activity data in vectorized format.
Enables fast and scalable semantic search across destinations, themes (e.g., "adventure", "cultural"), and duration.
OpenAI Embeddings Embeds all tour and activity documents stored in Pinecone.
Converts input user queries into embedding vectors for semantic search.
Structured Output Parser Parses the final OpenAI-generated response into a consistent, frontend-consumable JSON format.
Frontend (Lovable UI) User types in destination or their travel package needs in the Tour Search.
Lovable queries the n8n workflow.
Displays beautifully structured, editable itineraries.
Set Webhook URL and connect it with Lovable frontend.
Store the embeddings in a Pinecone namespace (e.g., kuala-lumpur-3-days).
Configure “Answer with Vector Store” Tool Connect the tool to your Pinecone instance and pass query embedding for matching.
Connect to OpenAI Chat Use the GPT model to process query + context from Pinecone to generate an engaging itinerary description.
Optionally chain a second model to format it into UI-consumable output.
Smart itinerary planning for OTAs or DMCs
Personalized travel recommendations in chatbots or apps
Travel advisors and agents automating package generation
Highly relevant, contextual travel suggestions
Natural query understanding via OpenAI
Seamless frontend-backend integration via Webhook
If you’re building personalized experiences for travelers using AI, give this approach a try!
Let me know if you’d like the JSON for this workflow or help setting up the Pinecone data pipeline.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Personalized tour package recommendations with GPT-4o, Pinecone & Lovable UI |
|---|---|
| Complexity | intermediate |
| Nodes | 11 |
| Categories | Support Chatbot, AI RAG |
| Author | Mohan Gopal |
| Published | 15 Jul 2025 |
Use the JSON export at /data/workflows/6022/6022.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Personalized Tour Package Recommendations via n8n + Pinecone + Lovable UI I've created an intelligent Travel Itinerary Planner that connects a Lovable front end UI with a smart backend powered by n...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.