Découvrir des opportunités de collaboration sur Instagram avec Apify scraping et GPT-4o

Intermédiaire

Ceci est unLead Generation, AI Summarizationworkflow d'automatisation du domainecontenant 12 nœuds.Utilise principalement des nœuds comme Set, HttpRequest, ManualTrigger, Agent, LmChatOpenAi. Découvrir des opportunités de collaboration sur Instagram avec scraping Apify et évaluation par GPT-4o

Prérequis
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
  • Clé API OpenAI
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "meta": {
    "instanceId": "efb474b59b0341d7791932605bd9ff04a6c7ed9941fdd53dc4a2e4b99a6f9439",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "82533369-cc25-43f8-9698-c852ff0c6feb",
      "name": "Lors du clic sur 'Exécuter le workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -480,
        440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d55cb854-75f0-4cfd-98dc-16a1560fcfcd",
      "name": "Agent IA",
      "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": "Modèle de chat OpenAI",
      "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": "Analyseur de sortie structurée",
      "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": "Trouver des publications récentes",
      "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": "Créer un terme de recherche",
      "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": "Extraire les comptes",
      "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": "Définir la biographie et le nombre d'abonnés",
      "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": "Note adhésive",
      "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": "Note adhésive 1",
      "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": "Note adhésive 2",
      "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": "Note adhésive 3",
      "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
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Génération de leads, Résumé IA

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Workflows recommandés

Extraction de contacts d'entreprises locales en utilisant Google Sheets, SerpAPI, Apify et GPT-4o
Extraire les contacts d'entreprises locales avec Google Sheets, SerpAPI, Apify et GPT-4o
Code
Filter
Summarize
+
Code
Filter
Summarize
18 NœudsRobert Breen
Génération de leads
Enregistreur de notes de podcast
Créer des scripts publicitaires Meta à fort taux de conversion avec GPT et Gemini en combinant les données de performance
Set
Code
Merge
+
Set
Code
Merge
16 NœudsRobert Breen
Génération de leads
Extraction d'adresses e-mail de créateurs YouTube avec Apify Scraper et GPT-4o Mini
Extraire les adresses e-mail des créateurs YouTube avec un crawler Apify et GPT-4o Mini
Set
Http Request
Manual Trigger
+
Set
Http Request
Manual Trigger
12 NœudsRobert Breen
Résumé IA
Classification automatique des e-mails Outlook dans des catégories colorées avec GPT-4o
Utiliser GPT-4o pour classer automatiquement les e-mails Outlook dans des catégories de couleur
Set
Manual Trigger
Split In Batches
+
Set
Manual Trigger
Split In Batches
13 NœudsRobert Breen
Résumé IA
Débutant en analyse de données : fusion, filtrage et résumé dans Google Sheets avec GPT-4o
Analyse de données pour débutants : fusion, filtrage et résumé dans Google Sheets avec GPT-4o
If
Set
Code
+
If
Set
Code
21 NœudsRobert Breen
Extraction de documents
Générateur automatisé de lettres de motivation avecIndeed Scraping et GPT-4o-mini
Générateur automatisé de lettres de motivation avec Indeed scraping et GPT-4o-mini
Set
Http Request
Manual Trigger
+
Set
Http Request
Manual Trigger
10 NœudsRobert Breen
IA Multimodale
Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds12
Catégorie2
Types de nœuds7
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur
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.

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34