Skip to main content

Personalized tour package recommendations with GPT-4o, Pinecone & Lovable UI

Workflow preview

Workflow preview
100%
Personalized tour package recommendations with GPT-4o, Pinecone & Lovable UI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@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

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Mohan Gopal.

Original n8n.io source

1.1 Workflow description

Title
Personalized tour package recommendations with GPT-4o, Pinecone & Lovable UI
Workflow name
Personalized tour package recommendations with GPT-4o, Pinecone & Lovable UI

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 n8n, Pinecone, and OpenAI to deliver personalized tour packages based on natural language queries.

What It Does

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.

Workflow Architecture

Lovable UI ➝ Webhook ➝ Tour Recommendation Agent ➝ Vector Search ➝ OpenAI Response ➝ Structured Output ➝ Response to Lovable

Tools & Components Used

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.

How to Set It Up

  1. Webhook Setup in n8n Create a POST webhook node.

Set Webhook URL and connect it with Lovable frontend.

  1. Pinecone & Embeddings Convert your static tour package documents (PDFs, JSON, CSV, etc.) into embeddings using OpenAI.

Store the embeddings in a Pinecone namespace (e.g., kuala-lumpur-3-days).

  1. Configure “Answer with Vector Store” Tool Connect the tool to your Pinecone instance and pass query embedding for matching.

  2. 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.

  1. Output Parser & Return Use Structured Output Parser to parse the response and pass it to Respond to Webhook node for UI display.

Ideal Use Cases

Smart itinerary planning for OTAs or DMCs

Personalized travel recommendations in chatbots or apps

Travel advisors and agents automating package generation

Benefits

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.

1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Answer questions with a vector store

Type / Role
@n8n/n8n-nodes-langchain.toolVectorStore - toolVectorStore
Config choices
Version 1.1

Block 3 - Pinecone Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.1

Block 4 - Embeddings OpenAI1

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 5 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 6 - Tour Recommendation AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 9 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 10 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

3. Summary Table

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

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6022/6022.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does Personalized tour package recommendations with GPT-4o, Pinecone & Lovable UI do?

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...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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.