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

1,271 views · ⚡ Personal Productivity

Description

> 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

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

🔗 Nodes Used

Webhook, AI Agent, Embeddings OpenAI, Simple Memory, Recursive Character Text Splitter, Default Data Loader

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup