{
  "name": "Extract insights from LinkedIn with Apify, Pinecone Assistant, and GPT-4.1",
  "nodes": [
    {
      "id": "ac7fa355-5fe2-462d-8687-fbefb2665210",
      "name": "Run weekly",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -32,
        0
      ]
    },
    {
      "id": "4f263558-9c87-4bb4-9936-53842481a95f",
      "name": "Get dataset items",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        512,
        0
      ]
    },
    {
      "id": "b73e249e-7212-4795-b9fd-86b287130470",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        416,
        320
      ]
    },
    {
      "id": "0cad6b86-5c0f-4be1-9a5f-c235fa4b26cd",
      "name": "Filter posts",
      "type": "n8n-nodes-base.filter",
      "position": [
        704,
        0
      ]
    },
    {
      "id": "dc853687-f43a-42c8-89c5-cc9132bd8277",
      "name": "Extract comments",
      "type": "n8n-nodes-base.set",
      "position": [
        144,
        320
      ]
    },
    {
      "id": "9326ed62-1ee9-491d-9085-1582e366d9e0",
      "name": "Upload file",
      "type": "@pinecone-database/n8n-nodes-pinecone-assistant.pineconeAssistant",
      "position": [
        672,
        320
      ]
    },
    {
      "id": "188f986b-a7c5-4430-8d8a-ce217ee79388",
      "name": "If has comments",
      "type": "n8n-nodes-base.if",
      "position": [
        880,
        0
      ]
    },
    {
      "id": "f08adc5a-df36-4bc6-8295-a90029df5304",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        128,
        624
      ]
    },
    {
      "id": "b644f23f-899f-434a-b5f0-ab7599eca430",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        480,
        624
      ]
    },
    {
      "id": "ed74470b-7dce-4164-94a3-b5adbcdb4f60",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        400,
        864
      ]
    },
    {
      "id": "d0ea2f2c-965c-4c4d-8004-7dfb94175fb9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -128
      ],
      "parameters": {
        "width": 1200,
        "height": 336,
        "content": "## Step 1: Scrape comments from LinkedIn and upload to Pinecone Assistant"
      }
    },
    {
      "id": "55b7065f-3a14-4198-bbd7-e2e3d67df742",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        528
      ],
      "parameters": {
        "width": 1200,
        "height": 512,
        "content": "## Step 3: Extract insights from LinkedIn comments through chat"
      }
    },
    {
      "id": "6515b20f-95a2-4365-8949-a131f822fe6a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        224
      ],
      "parameters": {
        "width": 1200,
        "height": 288,
        "content": "## Step 2: Extract comments to json file and upload to Pinecone Assistant"
      }
    },
    {
      "id": "bd611285-6b27-4bdb-933a-fa88d1499caa",
      "name": "Run actor to scrape data",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        320,
        0
      ]
    },
    {
      "id": "88e8a468-8ebd-4f40-91a9-bdffd037f066",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -768,
        -128
      ],
      "parameters": {
        "width": 620,
        "height": 1168,
        "content": "![Pinecone logo](https://www.pinecone.io/images/pinecone-logo-for-n8n-templates.png)\n\n\n## Try it out\n\nThis n8n workflow template lets you extract insights from comments on your LinkedIn posts using Pi"
      }
    },
    {
      "id": "ab526e05-aa07-4179-86e1-e03834b33f60",
      "name": "Set LinkedIn url",
      "type": "n8n-nodes-base.set",
      "position": [
        144,
        0
      ]
    },
    {
      "id": "15dbcefd-6458-4633-89b9-80326e9f0856",
      "name": "Pinecone Assistant tool",
      "type": "@pinecone-database/n8n-nodes-pinecone-assistant.pineconeAssistantTool",
      "position": [
        752,
        864
      ]
    }
  ],
  "connections": {
    "Run weekly": {
      "main": [
        [
          {
            "node": "Set LinkedIn url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter posts": {
      "main": [
        [
          {
            "node": "If has comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If has comments": {
      "main": [
        [
          {
            "node": "Extract comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract comments": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set LinkedIn url": {
      "main": [
        [
          {
            "node": "Run actor to scrape data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get dataset items": {
      "main": [
        [
          {
            "node": "Filter posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Assistant tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Run actor to scrape data": {
      "main": [
        [
          {
            "node": "Get dataset items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}