{
  "name": "Monitor Google Maps reviews with sentiment analysis & RAG agent using Pinecone",
  "nodes": [
    {
      "id": "2eb553e1-44c9-4eef-bf04-2553979d9315",
      "name": "Format Data (Reviews)",
      "type": "n8n-nodes-base.set",
      "position": [
        -2176,
        -224
      ]
    },
    {
      "id": "0e39c1c0-5d2b-4b22-a456-ff6087000acf",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2240,
        -608
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "1c951d25-7227-4331-89ab-9d8519d360c1",
      "name": "Trigger at midnight",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2432,
        -528
      ]
    },
    {
      "id": "f0c8475b-b171-45d2-9cd7-34d644f7a1cd",
      "name": "Wait 5s",
      "type": "n8n-nodes-base.wait",
      "position": [
        -2192,
        -16
      ]
    },
    {
      "id": "64d0df6a-d325-49f4-8182-b0432ccd4516",
      "name": "⚠️ CONFIGURATION2",
      "type": "n8n-nodes-base.set",
      "position": [
        -352,
        -640
      ]
    },
    {
      "id": "7a571871-3cc6-4c59-a0f8-98e504c6a705",
      "name": "⚠️ CONFIGURATION1",
      "type": "n8n-nodes-base.set",
      "position": [
        -1152,
        -528
      ]
    },
    {
      "id": "e717534c-3e21-4d8c-9e02-80636134f035",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -656,
        -784
      ]
    },
    {
      "id": "e06591dd-134c-4630-9329-b86cce1a0878",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1280,
        -768
      ]
    },
    {
      "id": "ec324a48-702c-460c-a84e-db8ab5dc7eb4",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1312,
        -880
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "fe3a7206-356d-45ba-98c9-ecbf872fb9de",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -960,
        -480
      ]
    },
    {
      "id": "ed97d72e-0062-4d16-8851-77cf157bee5f",
      "name": "Pinecone Search Tool",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        -960,
        -560
      ]
    },
    {
      "id": "c6ac3c0f-7431-4781-a0f9-61752b70cca5",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1024,
        -688
      ]
    },
    {
      "id": "d595eed2-4a3e-4af7-90e6-9afdaac4e131",
      "name": "AI Data Analyst",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1024,
        -784
      ]
    },
    {
      "id": "a66bb7c0-a072-4493-96ff-13694005f1ee",
      "name": "Confirmation text",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -336,
        -224
      ]
    },
    {
      "id": "26d3a11f-f888-4644-a92a-50a39599d280",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -496,
        -928
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f3eb1146-fbb3-4fb8-b100-4bc02b8949a5",
      "name": "Empty Namespace (Keep DB)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -352,
        -432
      ]
    },
    {
      "id": "e927c64a-a69b-4d09-8108-871025c06af4",
      "name": "Every Sunday at 11pm",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -368,
        -848
      ]
    },
    {
      "id": "8e105706-600c-4e2e-9fd5-997839ce70f6",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1056,
        -288
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "48952439-ee30-45fa-ac29-700d7ace7576",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1712,
        48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "4d8fe0c3-fa43-4b03-887a-7b9ee548fff8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1712,
        -320
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "97b7f579-d1d4-4227-90b8-0b05b986e882",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2224,
        -320
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b5f2b291-8af0-4ebb-94f3-6cce266cdb34",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3104,
        -736
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e4ddb158-9e39-4d3b-b1db-4d31cd483404",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        -1472,
        256
      ]
    },
    {
      "id": "530dbb8c-f04f-4791-8c96-20dcf4dc8263",
      "name": "Send Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -992,
        -240
      ]
    },
    {
      "id": "6acbf0e3-b8c8-4b7e-953b-e0c591539574",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1312,
        -144
      ]
    },
    {
      "id": "4bb9b879-5976-440b-a942-5e7490097733",
      "name": "AI Review Analyst",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1456,
        -240
      ]
    },
    {
      "id": "89f36600-fcfa-4f97-bfd2-cdf4d4c86cba",
      "name": "Aggregate Data",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -1680,
        -240
      ]
    },
    {
      "id": "443be718-74e7-455f-bea0-0f7580b6761d",
      "name": "Wait 2s",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1312,
        208
      ]
    },
    {
      "id": "d5d1d613-7bc5-42e8-9ece-d0507724e040",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -1664,
        256
      ]
    },
    {
      "id": "aad08c0c-ca44-4982-a92f-8e2fdac6544a",
      "name": "Pinecone Ingest",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        -1664,
        128
      ]
    },
    {
      "id": "0b878ad8-a916-4c22-802e-907e878c8d56",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1952,
        -16
      ]
    },
    {
      "id": "5da88a9d-6b05-4fc2-af90-3ec0ffec7739",
      "name": "Get Dataset Results",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1488,
        -528
      ]
    },
    {
      "id": "e0d49e40-fe30-4260-931b-fd174c75e010",
      "name": "Wait for Scraper",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1712,
        -528
      ]
    },
    {
      "id": "65aa0494-6195-4aa9-936f-32f93b46a3e6",
      "name": "Start Google Maps Scraper",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1936,
        -528
      ]
    },
    {
      "id": "86a48ea6-3a54-424f-9005-422e8efaff3c",
      "name": "⚠️ CONFIGURATION",
      "type": "n8n-nodes-base.set",
      "position": [
        -2176,
        -528
      ]
    },
    {
      "id": "f16655e8-e685-476f-a997-96a6edc24d79",
      "name": "When clicking \"Execute\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -2432,
        -704
      ]
    },
    {
      "id": "114b2166-af5b-4260-bc0d-7579f1018d6e",
      "name": "GPT 5 mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1456,
        -144
      ]
    },
    {
      "id": "c0fef67b-cfe8-449f-8828-17ffb94619ef",
      "name": "Log data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1952,
        -224
      ]
    }
  ],
  "connections": {
    "Wait 2s": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5s": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log data": {
      "main": [
        [
          {
            "node": "Wait 5s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT 5 mini": {
      "ai_languageModel": [
        [
          {
            "node": "AI Review Analyst",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Data": {
      "main": [
        [
          {
            "node": "AI Review Analyst",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Data Analyst": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Aggregate Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Pinecone Ingest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Ingest": {
      "main": [
        [
          {
            "node": "Wait 2s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "⚠️ CONFIGURATION1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Scraper": {
      "main": [
        [
          {
            "node": "Get Dataset Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Review Analyst": {
      "main": [
        [
          {
            "node": "Send Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Ingest",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Data Analyst",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Search Tool",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Ingest",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Get Dataset Results": {
      "main": [
        [
          {
            "node": "Format Data (Reviews)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger at midnight": {
      "main": [
        [
          {
            "node": "⚠️ CONFIGURATION",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every Sunday at 11pm": {
      "main": [
        [
          {
            "node": "⚠️ CONFIGURATION2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Search Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Data Analyst",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "⚠️ CONFIGURATION": {
      "main": [
        [
          {
            "node": "Start Google Maps Scraper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Data (Reviews)": {
      "main": [
        [
          {
            "node": "Log data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⚠️ CONFIGURATION1": {
      "main": [
        [
          {
            "node": "AI Data Analyst",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⚠️ CONFIGURATION2": {
      "main": [
        [
          {
            "node": "Empty Namespace (Keep DB)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Execute\"": {
      "main": [
        [
          {
            "node": "⚠️ CONFIGURATION",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Review Analyst",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Empty Namespace (Keep DB)": {
      "main": [
        [
          {
            "node": "Confirmation text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start Google Maps Scraper": {
      "main": [
        [
          {
            "node": "Wait for Scraper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}