Descubrir oportunidades de colaboración en Instagram con Apify Scraping y evaluación por GPT-4o

Intermedio

Este es unLead Generation, AI Summarizationflujo de automatización del dominio deautomatización que contiene 12 nodos.Utiliza principalmente nodos como Set, HttpRequest, ManualTrigger, Agent, LmChatOpenAi. Descubrir oportunidades de colaboración en Instagram mediante scraping con Apify y evaluación con GPT-4o

Requisitos previos
  • Pueden requerirse credenciales de autenticación para la API de destino
  • Clave de API de OpenAI
Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "meta": {
    "instanceId": "efb474b59b0341d7791932605bd9ff04a6c7ed9941fdd53dc4a2e4b99a6f9439",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "82533369-cc25-43f8-9698-c852ff0c6feb",
      "name": "Al hacer clic en 'Ejecutar flujo de trabajo'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -480,
        440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d55cb854-75f0-4cfd-98dc-16a1560fcfcd",
      "name": "Agente de 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": "Modelo 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": "Analizador de salida estructurada",
      "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": "Encontrar publicaciones recientes",
      "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": "Crear término de búsqueda",
      "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": "Extraer cuentas",
      "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": "Establecer biografía y número de seguidores",
      "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": "Nota adhesiva",
      "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": "Nota adhesiva 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": "Nota adhesiva 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": "Nota adhesiva 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
          }
        ]
      ]
    }
  }
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Intermedio - Generación de leads, Resumen de IA

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Flujos de trabajo relacionados recomendados

Extraer contactos de empresas locales con Google Sheets, SerpAPI, Apify y GPT-4o
Extraer contactos de empresas locales usando Google Sheets, SerpAPI, Apify y GPT-4o
Code
Filter
Summarize
+
Code
Filter
Summarize
18 NodosRobert Breen
Generación de leads
Grabador de notas de podcast
Crear guiones de anuncios de Meta de alta tasa de conversión utilizando datos de rendimiento combinados de GPT y Gemini
Set
Code
Merge
+
Set
Code
Merge
16 NodosRobert Breen
Generación de leads
Extraer correos electrónicos de creadores de YouTube usando el crawler de Apify y GPT-4o Mini
Usar un crawler de Apify y GPT-4o Mini para extraer correos electrónicos de creadores de YouTube
Set
Http Request
Manual Trigger
+
Set
Http Request
Manual Trigger
12 NodosRobert Breen
Resumen de IA
Usar GPT-4o para clasificar correos de Outlook en categorías de color automáticamente
Usar GPT-4o para clasificar correos de Outlook en categorías de color automáticamente
Set
Manual Trigger
Split In Batches
+
Set
Manual Trigger
Split In Batches
13 NodosRobert Breen
Resumen de IA
Análisis de datos para principiantes: fusionar, filtrar y resumir en Google Sheets con GPT-4o
Análisis de datos para principiantes: fusionar, filtrar y resumir en Google Sheets con GPT-4o
If
Set
Code
+
If
Set
Code
21 NodosRobert Breen
Extracción de documentos
Generador automático de cartas de presentación conIndeed job scraping y GPT-4o-mini
Generador automatizado de cartas de presentación usandoIndeed scraping de empleos y GPT-4o-mini
Set
Http Request
Manual Trigger
+
Set
Http Request
Manual Trigger
10 NodosRobert Breen
IA Multimodal
Información del flujo de trabajo
Nivel de dificultad
Intermedio
Número de nodos12
Categoría2
Tipos de nodos7
Descripción de la dificultad

Adecuado para usuarios con experiencia intermedia, flujos de trabajo de complejidad media con 6-15 nodos

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.

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34