{
  "name": "Travel planning agent with Couchbase vector search, Gemini 2.0 Flash and OpenAI",
  "nodes": [
    {
      "id": "0f361616-a552-43ed-9754-794780113955",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        380,
        240
      ]
    },
    {
      "id": "e8b9815d-0fe5-4e7c-a20b-1602384580cd",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        560,
        480
      ]
    },
    {
      "id": "a4b15997-de4d-4c78-b623-e936442134af",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1260,
        280
      ],
      "parameters": {
        "width": 800,
        "height": 500,
        "content": "## AI Travel Agent Powered by Couchbase.\n\n### You will need to:\n1. Setup your Google API Credentials for the Gemini LLM\n2. Setup your OpenAI Credentials for the OpenAI embedding nodes.\n3. Create a Cou"
      }
    },
    {
      "id": "34866f8e-00b0-4706-82d7-491b9531a8b6",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        800,
        1000
      ]
    },
    {
      "id": "26d4e62a-42b0-4e09-8585-827e5bcc9fff",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        1180,
        1360
      ]
    },
    {
      "id": "63fc308f-4d1c-4d24-9b20-68d7e6c2dbba",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        1280,
        1540
      ]
    },
    {
      "id": "84f8c32b-8e0c-457c-aaec-17827042674d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        1060
      ],
      "parameters": {
        "width": 720,
        "height": 460,
        "content": "## CURL Command to Ingest Data.\n\nHere is an example of how you can load data into your webhook once its active and ready to get requests.\n\n```\ncurl -X POST \"webhook url\" \\\n  -H \"Content-Type: applicat"
      }
    },
    {
      "id": "b2cf8788-849c-4420-b448-bd49caa4941e",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        720,
        480
      ]
    },
    {
      "id": "0bf7fef9-f999-42a8-a6a8-ab111fe9a084",
      "name": "AI Travel Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        600,
        240
      ]
    },
    {
      "id": "799f1931-bdac-4b16-9080-bf8ecc23d36e",
      "name": "Retrieve docs with Couchbase Search Vector",
      "type": "n8n-nodes-couchbase.vectorStoreCouchbaseSearch",
      "position": [
        860,
        480
      ]
    },
    {
      "id": "9278f747-c8b4-4a16-8bee-b94b59ddeab4",
      "name": "Insert docs with Couchbase Search Vector",
      "type": "n8n-nodes-couchbase.vectorStoreCouchbaseSearch",
      "position": [
        1100,
        1200
      ]
    },
    {
      "id": "4c0274c3-6647-4f45-b7d4-d63cfe2102ea",
      "name": "Generate OpenAI Embeddings using text-embedding-3-small",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        960,
        740
      ]
    },
    {
      "id": "83f864fa-a298-4738-a102-ca2d283377de",
      "name": "Generate OpenAI Embeddings using text-embedding-3-small1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        1000,
        1340
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Insert docs with Couchbase Search Vector",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Travel Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Insert docs with Couchbase Search Vector",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Travel Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Travel Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve docs with Couchbase Search Vector": {
      "ai_tool": [
        [
          {
            "node": "AI Travel Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Generate OpenAI Embeddings using text-embedding-3-small": {
      "ai_embedding": [
        [
          {
            "node": "Retrieve docs with Couchbase Search Vector",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Generate OpenAI Embeddings using text-embedding-3-small1": {
      "ai_embedding": [
        [
          {
            "node": "Insert docs with Couchbase Search Vector",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    }
  }
}