{
  "id": "9wzQXONqaSbZWXqh",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Tour Package Recomendation Database - Process Tour PDF",
  "tags": [
    {
      "id": "oKGIn6U0wpeHShTN",
      "name": "working flow",
      "createdAt": "2025-06-02T06:27:44.762Z",
      "updatedAt": "2025-06-02T06:27:44.762Z"
    }
  ],
  "nodes": [
    {
      "id": "ff4ada8f-0e63-4035-afb2-9f459cd7f158",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -920,
        1060
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b17ec584-be56-49c2-ad9d-a85bc98285c2",
      "name": "PDF Tour Package Folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -680,
        1060
      ],
      "parameters": {
        "filter": {
          "folderId": {
            "__rl": true,
            "mode": "list",
            "value": "1ANNp1YrfmcNhYm2ZqUGtxxLrvPenBlhh",
            "cachedResultUrl": "https://drive.google.com/drive/folders/1ANNp1YrfmcNhYm2ZqUGtxxLrvPenBlhh",
            "cachedResultName": "TestPackages"
          }
        },
        "options": {},
        "resource": "fileFolder",
        "returnAll": true
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "5c4e9e98-4f1f-4024-ab88-6183f4583c00",
      "name": "Download Package Files",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -440,
        1060
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        },
        "options": {},
        "operation": "download"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "ad967561-1968-4bdb-9c36-17200f291593",
      "name": "Loop Over each PDF file",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -180,
        1060
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "6408c50e-99fe-46f1-995b-0d9b99e42ca1",
      "name": "Pinecone Vector Store - Store Vector Data",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        160,
        1100
      ],
      "parameters": {
        "mode": "insert",
        "options": {},
        "pineconeIndex": {
          "__rl": true,
          "mode": "list",
          "value": "package1536",
          "cachedResultName": "package1536"
        }
      },
      "credentials": {
        "pineconeApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "687269c8-74ca-44fb-8f37-a860ae82f162",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        60,
        1360
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "068cde17-e656-440d-abb8-2e498cee82b1",
      "name": "Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        220,
        1360
      ],
      "parameters": {
        "options": {},
        "dataType": "binary"
      },
      "typeVersion": 1
    },
    {
      "id": "adaeaaf3-1bfc-4b27-878b-5d5ddb1fc9a5",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        300,
        1540
      ],
      "parameters": {
        "options": {},
        "chunkOverlap": 50
      },
      "typeVersion": 1
    },
    {
      "id": "4184166f-f2ea-448e-9876-a432fd85a8c3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        920
      ],
      "parameters": {
        "width": 460,
        "height": 320,
        "content": "## Extract PDF file from Google Drive\n**Connect & Download PDF file**"
      },
      "typeVersion": 1
    },
    {
      "id": "cfcef192-f80d-43dc-beac-0b7bfab7d9ba",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        920
      ],
      "parameters": {
        "width": 360,
        "height": 320,
        "content": "## Loop over each PDF file\n**Extract each tour package content from the pdf file and vectorise the data in the pinecone database. "
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1"
  },
  "versionId": "f3d6347b-1f02-4869-8cc0-b4f45029d1f0",
  "connections": {
    "Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store - Store Vector Data",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store - Store Vector Data",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Download Package Files": {
      "main": [
        [
          {
            "node": "Loop Over each PDF file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over each PDF file": {
      "main": [
        [],
        [
          {
            "node": "Pinecone Vector Store - Store Vector Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PDF Tour Package Folder": {
      "main": [
        [
          {
            "node": "Download Package Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "PDF Tour Package Folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store - Store Vector Data": {
      "main": [
        [
          {
            "node": "Loop Over each PDF file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}