Build a Travel Planning Agent with Couchbase, Gemini, and OpenAI in n8n

This n8n workflow automates a travel planning assistant using Couchbase vector search, Google Gemini 2.0 Flash, and OpenAI embeddings to deliver smart, context-aware travel recommendations. It solves the time-consuming challenge of searching vast travel data manually by enabling fast, AI-powered query responses.
chatTrigger
lmChatGoogleGemini
stickyNote
+7
Workflow Identifier: 2192
NODES in Use: chatTrigger, lmChatGoogleGemini, stickyNote, webhook, documentDefaultDataLoader, textSplitterRecursiveCharacterTextSplitter, couchvectorStoreCouchbaseSearch, embeddingsOpenAi, memoryBufferWindow, agent
Automate travel planning with n8n and OpenAI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow answers travel questions fast. It uses AI and a vector search to find travel spots quickly. When a user asks about places or hotels, the system finds related info from a big travel database. Then, it replies with good travel ideas. This stops wasting time on searching manual papers or many websites. The user gets smart replies that help plan trips easier.

The main problem solved is slow, mistake-prone manual search for travel info. The outcome is faster, correct answers that save hours of work each day.


Who should use this workflow

This workflow fits travel agents, like people helping clients pick trips. It works for anyone with lots of destination, hotel, or place info. Users who want less manual searching and better chat help can use this. It helps people who want quick, accurate travel advice from a big collection of data.


Tools and services used

  • n8n: Automates the whole chat and data process.
  • LangChain Chat Trigger node: Listens to user messages to start the workflow.
  • Couchbase Vector Search: Finds points of interest by matching vectors fast.
  • Google Gemini 2.0 Flash model: Produces natural chat replies with travel ideas.
  • OpenAI Embeddings: Converts text into vectors to search and store.
  • Couchbase database: Stores vectorized travel points for fast retrieval.

How the workflow works

Inputs

The conversation starts when user sends a chat message via the LangChain Chat Trigger node webhook.

Processing steps

  1. The Simple Memory node saves recent chats to keep context.
  2. The system uses Couchbase Vector Search to find travel spots related to the question.
  3. New travel data is split and vectorized using OpenAI embeddings.
  4. Vector data is saved into Couchbase for future fast search.
  5. Google Gemini 2.0 Flash model creates chat replies using retrieved info.
  6. AI Travel Agent node controls the flow and logic with max 10 idea steps.
  7. All chat and data flow are connected through configured n8n nodes to respond quickly.

Output

The system gives a chat reply with clear, accurate travel advice based on indexed data. The user gets meaningful, personal travel ideas fast.


Beginner step-by-step: How to use this workflow in n8n

Step 1: Import the workflow

  1. Download the full workflow file using the Download button on this page.
  2. Inside the n8n editor, choose “Import from File” and pick the downloaded workflow file.
  3. Open the workflow; all nodes and connections will show.

Step 2: Configure credentials

  1. Add your Google API Key for Gemini 2.0 Flash in the Google Gemini Chat Model node credentials.
  2. Add your OpenAI API Key in the Generate OpenAI Embeddings nodes credentials.
  3. Update Couchbase connection details in nodes that use Couchbase vector search or insert. Include bucket, scope, collection, and IP whitelist if needed.
  4. Check if the Couchbase Full-Text Search index is correctly set up matching the collection.

Step 3: Set any needed IDs or expressions

  1. Check the Default Data Loader node has the correct JSON expression for your data input (
    {{$json.body.raw_body.point_of_interest.title}} - {{$json.body.raw_body.point_of_interest.description}}

    ).

  2. Change topK or other parameters in the vector search node if needed.

Step 4: Test the workflow

  1. Send a test chat message to the LangChain Chat Trigger webhook URL to see if it triggers.
  2. If testing data insert, POST JSON to the Webhook node using a command like:
    curl -X POST "<Webhook URL>" \
      -H "Content-Type: application/json" \
      -d '{
        "raw_body": {
          "point_of_interest": {
            "title": "Eiffel Tower",
            "description": "Iconic iron lattice tower located on the Champ de Mars in Paris, France."
          }
        }
      }'
    
  3. Check if data inserts and embedding runs successfully in Couchbase.
  4. Make sure the chatbot returns relevant travel answers.

Step 5: Activate for production

  1. Turn on the workflow using the “Active” toggle in n8n.
  2. Monitor runs under the execution logs for errors or warnings.
  3. Make sure your network settings allow n8n to connect to Couchbase and APIs.
  4. If self hosting n8n, consider using reliable hosting such as self-host n8n options.

Inputs and outputs

Input: Chat messages from users via webhook trigger, and JSON data for new travel points.

Process: Splitting, embedding, inserting vector data into Couchbase, searching vectors, then generating chat answers.

Output: AI-generated conversational replies with travel recommendations, delivered back to users instantly.


Common problems and fixes

  • Error retrieving vectors from Couchbase: Check if Couchbase search index exists and matches the bucket and collection.
  • OpenAI API key invalid or missing: Update or add correct API Key in n8n credentials.
  • Webhook not working: Make sure workflow is active and webhook URL is correct in your POST requests.

Customization ideas

  • Change topK in Couchbase vector search to control how many travel spots are found.
  • Replace Google Gemini 2.0 Flash model with another version for different chat style.
  • Upgrade Simple Memory node to hold more chat history for better context.
  • Edit the system message prompt in AI Travel Agent node to change assistant personality.

Summary of benefits and results

✓ Saves hours by automating travel data search and chat replies.
✓ Gives fast, clear travel advice from a large indexed dataset.
✓ Keeps chat context for natural conversations.
✓ Helps travel agents focus on clients not data search.
✓ Lets users add new travel points easily via webhook.

→ Workflow runs inside n8n, connecting Couchbase vector search and Google Gemini AI.
→ Easy import and configuration lets beginners deploy quickly.

Automate travel planning with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Frequently Asked Questions

The workflow is built to work with Couchbase vector search nodes specifically. Changing to another vector database requires swapping those nodes with compatible ones.
Yes, embedding text and generating chat replies use API calls. Monitor usage limits on OpenAI and Google Gemini accounts.
All connections should use HTTPS or secure protocols. Store API Keys safely in n8n credentials.
Handling many users depends on Couchbase cluster capacity and API plans. Testing load is recommended before large scale use.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.