Skip to main content

Travel planning agent with Couchbase vector search, Gemini 2.0 Flash and OpenAI

Workflow preview

Workflow preview
100%
Travel planning agent with Couchbase vector search, Gemini 2.0 Flash and OpenAI preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Disclaimer: this workflow template uses the community package. Community nodes are unverified and usage of them comes with some risks...

Best for

  • Personal Productivity automation workflows
  • AI RAG automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.stickynote, n8n-nodes-base.webhook, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.agent

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Travel planning agent with Couchbase vector search, Gemini 2.0 Flash and OpenAI
Workflow name
Travel planning agent with Couchbase vector search, Gemini 2.0 Flash and OpenAI

> Disclaimer: this workflow template uses the n8n-nodes-couchbase community package. Community nodes are unverified and usage of them comes with some risks. See here for instructions on installing n8n community nodes.

This template is intended for use by those interested in learning more about Agentic AI workflow development, as well as those interested in learning how to use the Couchbase Search Vector Store node for practical applications.

This workflow helps users decide on travel destinations based on descriptions of several points of interest loaded into Couchbase and retrieved using Vector Search.

How it Works

This template contains two workflows:

  1. The Data Ingestion workflow uses the following nodes
    1. Webhook node (to listen for HTTP requests)
    2. OpenAI Embeddings node (to generate embeddings on document insertion)
      1. Note: You’ll need to configure OpenAI credentials for this node
    3. Couchbase Vector node (configured for document insertion)
    4. Default Data Loader and Recursive Character Text Splitter
  2. The Chat Application workflow uses the following nodes
    1. Chat Trigger node
    2. AI Tools Agent node connect to:
      • Gemini (as the Chat Model, for generating responses)
      • Simple Memory (as the Memory, to maintain conversation context)
      • Couchbase Search Vector node (as the Tool, for search)
      • OpenAI Embeddings node (as the Embedding model for the Couchbase Search Vector node, to convert queries to vectors)

Set up

Setting up this workflow is easy and only takes around 10 minutes.

Prerequisites
  • A Couchbase Cluster running the Search Service, and corresponding database access credentials
    • Be sure the Couchbase cluster allows the incoming IP address for n8n
    • Create a Vector Search Index using this index definition
    • Create a bucket (called travel-agent), scope (called vectors), and collection (called points-of-interest) in your Cluster
  • OpenAI API Key
  • Gemini API Key
Steps
  1. Configure all necessary credentials (Couchbase, OpenAI, and Gemini)
  2. Select your bucket, scope, and collection for each of the Couchbase vector nodes
  3. Ingest data, either using the cURL statements found on the sticky note within the workflow, or using this shell script to ingest 6 points of interest
  4. Open the chat and test out your travel agent!

Customization and Next Steps

  • This workflow template can be made more robust by enhancing the data model to include more information about each point of interest. For example, the addition of price ranges, ideal seasons to visit, activity types, and accomodation options can help inform the LLM further about each destination, and in turn allow it to provide a more tailored response and be more helpful for travel planning.
  • Alternatively, the data model could be entirely re-configured to suit a wide variety of other use cases. This template can serve as a building block for all sorts of AI Agent applications using RAG and is not limited to only travel recommendations.

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 - When chat message received

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

Block 2 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 3 - Sticky Note

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

Block 4 - Webhook

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

Block 5 - Default Data Loader

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 6 - Recursive Character Text Splitter

Type / Role
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - textSplitterRecursiveCharacterTextSplitter
Config choices
Version 1

Block 7 - Sticky Note1

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

Block 8 - Simple Memory

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

Block 9 - AI Travel Agent

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

Block 10 - Retrieve docs with Couchbase Search Vector

Type / Role
n8n-nodes-couchbase.vectorStoreCouchbaseSearch - vectorStoreCouchbaseSearch
Config choices
Version 2

Block 11 - Insert docs with Couchbase Search Vector

Type / Role
n8n-nodes-couchbase.vectorStoreCouchbaseSearch - vectorStoreCouchbaseSearch
Config choices
Version 2

Block 12 - Generate OpenAI Embeddings using text-embedding-3-small

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

Block 13 - Generate OpenAI Embeddings using text-embedding-3-small1

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

3. Summary Table

Workflow Travel planning agent with Couchbase vector search, Gemini 2.0 Flash and OpenAI
Complexity intermediate
Nodes 13
Categories Personal Productivity, AI RAG
Author Elliot Scribner
Published 05 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3881/3881.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 Travel planning agent with Couchbase vector search, Gemini 2.0 Flash and OpenAI do?

Disclaimer: this workflow template uses the community package. Community nodes are unverified and usage of them comes with some risks...

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 Personal Productivity, AI RAG use case.