Entdeckung von Instagram-Kooperationsleads mit Apify-Scraping und GPT-4o-Bewertung

Fortgeschritten

Dies ist ein Lead Generation, AI Summarization-Bereich Automatisierungsworkflow mit 12 Nodes. Hauptsächlich werden Set, HttpRequest, ManualTrigger, Agent, LmChatOpenAi und andere Nodes verwendet. Finde Instagram-Kooperationsmöglichkeiten durch Apify-Scraping und GPT-4o-Bewertung

Voraussetzungen
  • Möglicherweise sind Ziel-API-Anmeldedaten erforderlich
  • OpenAI API Key
Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
  "meta": {
    "instanceId": "efb474b59b0341d7791932605bd9ff04a6c7ed9941fdd53dc4a2e4b99a6f9439",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "82533369-cc25-43f8-9698-c852ff0c6feb",
      "name": "Bei Klick auf 'Workflow ausführen'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -480,
        440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d55cb854-75f0-4cfd-98dc-16a1560fcfcd",
      "name": "KI-Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        760,
        280
      ],
      "parameters": {
        "text": "=followers: {{ $json.followersCount }} bio: {{ $json.bio }} ",
        "options": {
          "systemMessage": "You are a helpful assistant. I'm lookig for n8n creators to collaborate with. read their bio, and output yes or no if they are a good person for me to reach out to in order to collaborate on a project. I need the follower count to be 2k at leaset. \n\noutput like this. \n\n{\n\t\"lead status\": \"Yes or No\",\n\t\"Reasoning\": \"reasoning for why they are a good or bad lead. \"\n}"
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2
    },
    {
      "id": "de7abe87-394e-49d1-b049-286ee6d1d477",
      "name": "OpenAI Chat-Modell",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        760,
        480
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "ghJTvay8CvwXDsXz",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "c3ffa5c7-8ebd-4be3-a9f3-2232ecb19c97",
      "name": "Strukturierter Ausgabe-Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        940,
        460
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\t\"lead status\": \"Yes or No\",\n\t\"Reasoning\": \"reasoning for why they are a good or bad lead. \"\n}"
      },
      "typeVersion": 1.2
    },
    {
      "id": "ba19cddd-f3e4-4b1f-8c19-c5ebeca3d72a",
      "name": "Kürzliche Beiträge finden",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -40,
        440
      ],
      "parameters": {
        "url": "=https://api.apify.com/v2/acts/apify~instagram-hashtag-scraper/run-sync-get-dataset-items\n",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n    \"hashtags\": [\n        \"{{ $json.Search_Term }}\"\n    ],\n    \"resultsLimit\": 5,\n    \"resultsType\": \"posts\"\n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpQueryAuth"
      },
      "credentials": {
        "httpQueryAuth": {
          "id": "yLUXsSPePLOGnHmf",
          "name": "Query Auth account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "7e3e1c9a-3bcc-4cbc-880d-e2f8c6440159",
      "name": "Suchbegriff erstellen",
      "type": "n8n-nodes-base.set",
      "position": [
        -260,
        300
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "ad5c9a23-7fe0-4ed4-b1e7-d3da417bcb86",
              "name": "Search_Term",
              "type": "string",
              "value": "n8n"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "b34f82fa-0286-4913-abc6-6b35eb155e44",
      "name": "Konten erfassen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        200
      ],
      "parameters": {
        "url": "=https://api.apify.com/v2/acts/apify~instagram-profile-scraper/run-sync-get-dataset-items\n",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n    \"usernames\": [\n        \"{{ $json.ownerUsername }}\"\n    ]\n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpQueryAuth"
      },
      "credentials": {
        "httpQueryAuth": {
          "id": "yLUXsSPePLOGnHmf",
          "name": "Query Auth account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "8c2b4344-0b26-4eca-98b7-136593e21c7b",
      "name": "Bio und Follower-Anzahl setzen",
      "type": "n8n-nodes-base.set",
      "position": [
        500,
        400
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "f2cfdd81-ee6c-4b27-885a-6cf21f6efffb",
              "name": "bio",
              "type": "string",
              "value": "={{ $json.biography }}"
            },
            {
              "id": "2761d89a-2de3-4aeb-8a05-fc61a20f9ed4",
              "name": "followersCount",
              "type": "number",
              "value": "={{ $json.followersCount }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "3a1e36af-6e34-4ded-85cd-45f7f6788b22",
      "name": "Notizzettel",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -160
      ],
      "parameters": {
        "color": 3,
        "width": 780,
        "height": 800,
        "content": "#### 1️⃣ Manual Trigger  \n- **Node**: `When clicking ‘Execute workflow’`  \n- **Use**: Allows you to run the workflow manually while testing.\n\n#### 2️⃣ Define Hashtag  \n- **Node**: `Create Search Term`  \n- **Value**: Sets `\"n8n\"` as the default Instagram hashtag to scan.  \n- You can edit this to any other hashtag you'd like.\n\n#### 3️⃣ Find Recent Posts  \n- **Node**: `Find Recent Posts`  \n- **API**: [Apify Instagram Hashtag Scraper](https://console.apify.com/actors/apify/instagram-hashtag-scraper)  \n- **Auth Setup**:  \n  - Go to your [Apify Console](https://console.apify.com/)  \n  - Click “Create new token”  \n  - In n8n, create a new **HTTP Query Auth** credential  \n    - Set token in the `token` query param (e.g., `?token=yourTokenHere`)  \n  - Choose the credential in this node"
      },
      "typeVersion": 1
    },
    {
      "id": "196cab38-3830-4a0e-8885-f1bc1fc0c57a",
      "name": "Notizzettel1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        -160
      ],
      "parameters": {
        "color": 4,
        "width": 440,
        "height": 800,
        "content": "#### 4️⃣ Scrape Each Profile  \n- **Node**: `Scrape Accounts`  \n- **API**: [Apify Instagram Profile Scraper](https://console.apify.com/actors/apify/instagram-profile-scraper)  \n- **Body**: JSON with `usernames` from the hashtag search  \n- **Note**: Uses the same `httpQueryAuth` credential as the previous node.\n\n#### 5️⃣ Extract Fields  \n- **Node**: `Set bio and follower count`  \n- **What it does**: Extracts `biography` and `followersCount` from the profile JSON and stores them in clean variables for AI input.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "d0c8ca4e-519c-452c-b906-7d07782ed166",
      "name": "Notizzettel2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -160
      ],
      "parameters": {
        "color": 6,
        "width": 420,
        "height": 800,
        "content": "#### 6️⃣ AI Lead Scoring  \n- **Node**: `AI Agent`  \n- **Purpose**: Uses GPT-4o-mini to analyze the bio and follower count  \n- **Prompt Details**:\n#### 7️⃣ AI Model  \n- **Node**: `OpenAI Chat Model`  \n- **Model**: `gpt-4o-mini`  \n- **Credential**: Connect your OpenAI account via API Key.  \n- Go to [OpenAI API Keys](https://platform.openai.com/account/api-keys)  \n- Copy your key and create a new **OpenAI API** credential in n8n.\n\n#### 8️⃣ Output Parser  \n- **Node**: `Structured Output Parser`  \n- **What it does**: Parses the response from the AI into structured JSON for further use \n\n---"
      },
      "typeVersion": 1
    },
    {
      "id": "7c5fb223-1d60-4134-96f8-e3bb03de25e5",
      "name": "Notizzettel3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -340
      ],
      "parameters": {
        "width": 1680,
        "content": "## 📬 Need More Help?\n\n**👤 Robert Breen**  \nAutomation Consultant | AI Workflow Designer | n8n Expert  \n📧 [robert@ynteractive.com](mailto:robert@ynteractive.com)  \n🔗 [LinkedIn](https://www.linkedin.com/in/robert-breen-29429625/)\n"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "b34f82fa-0286-4913-abc6-6b35eb155e44": {
      "main": [
        [
          {
            "node": "8c2b4344-0b26-4eca-98b7-136593e21c7b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ba19cddd-f3e4-4b1f-8c19-c5ebeca3d72a": {
      "main": [
        [
          {
            "node": "b34f82fa-0286-4913-abc6-6b35eb155e44",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "de7abe87-394e-49d1-b049-286ee6d1d477": {
      "ai_languageModel": [
        [
          {
            "node": "d55cb854-75f0-4cfd-98dc-16a1560fcfcd",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "7e3e1c9a-3bcc-4cbc-880d-e2f8c6440159": {
      "main": [
        [
          {
            "node": "ba19cddd-f3e4-4b1f-8c19-c5ebeca3d72a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c3ffa5c7-8ebd-4be3-a9f3-2232ecb19c97": {
      "ai_outputParser": [
        [
          {
            "node": "d55cb854-75f0-4cfd-98dc-16a1560fcfcd",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "8c2b4344-0b26-4eca-98b7-136593e21c7b": {
      "main": [
        [
          {
            "node": "d55cb854-75f0-4cfd-98dc-16a1560fcfcd",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "82533369-cc25-43f8-9698-c852ff0c6feb": {
      "main": [
        [
          {
            "node": "7e3e1c9a-3bcc-4cbc-880d-e2f8c6440159",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Häufig gestellte Fragen

Wie verwende ich diesen Workflow?

Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.

Für welche Szenarien ist dieser Workflow geeignet?

Fortgeschritten - Lead-Generierung, KI-Zusammenfassung

Ist es kostenpflichtig?

Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.

Workflow-Informationen
Schwierigkeitsgrad
Fortgeschritten
Anzahl der Nodes12
Kategorie2
Node-Typen7
Schwierigkeitsbeschreibung

Für erfahrene Benutzer, mittelkomplexe Workflows mit 6-15 Nodes

Autor
Robert Breen

Robert Breen

@rbreen

Professional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.

Externe Links
Auf n8n.io ansehen

Diesen Workflow teilen

Kategorien

Kategorien: 34