Suivi automatique Instagram - Creator Center

Avancé

Ceci est unSocial Mediaworkflow d'automatisation du domainecontenant 22 nœuds.Utilise principalement des nœuds comme Set, Wait, Phantombuster, Agent, ExtractFromFile. Suivre automatiquement les profils Instagram en utilisant Phantombuster et SharePoint

Prérequis
  • 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
{
  "id": "nM8KB1VpIzL1qQAM",
  "meta": {
    "instanceId": "2cf742429c2e3ee4e5a20069d3d8a75208519303b864f026a79464efa726bd95",
    "templateCredsSetupCompleted": true
  },
  "name": "Instagram Auto Following - Creators Hub",
  "tags": [],
  "nodes": [
    {
      "id": "c8aa6db4-9ac4-4dd6-a6e5-199fc00e91f6",
      "name": "Attente",
      "type": "n8n-nodes-base.wait",
      "position": [
        -480,
        -1600
      ],
      "webhookId": "a863956e-9993-4723-bab6-116be5b6483b",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "040e11d3-58be-48ed-b927-3d3d23c7d76f",
      "name": "Lancer Agent",
      "type": "n8n-nodes-base.phantombuster",
      "position": [
        -704,
        -1600
      ],
      "parameters": {
        "agentId": "={{ $('Get Follower Collector').item.json.id }}",
        "jsonParameters": true,
        "additionalFields": {
          "argumentsJson": "={\n  \"numberofProfilesperLaunch\": {{ $('Set ENV Variables').item.json.ENV_PROFILES_TO_PROCESS }},\n  \"sessionCookie\": \"{{ $('Set ENV Variables').item.json.ENV_SESSION_COOKIE }}\",\n  \"spreadsheetUrl\": \"{{ $json['@content.downloadUrl'] }}\",\n  \"numberMaxOfFollowers\": {{ $('Set ENV Variables').item.json.ENV_AMOUNT_FOLLOWERS_PER_PROFILE }}\n} "
        }
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "4a236261-c86d-4ffe-870f-dcd671e5df6d",
      "name": "Lancer Agent AC",
      "type": "n8n-nodes-base.phantombuster",
      "position": [
        -976,
        -1216
      ],
      "parameters": {
        "agentId": "798529539709482",
        "jsonParameters": true,
        "additionalFields": {
          "argumentsJson": "={\n  \"numberOfProfilesPerLaunch\": {{ $('Set ENV Variables').first().json.ENV_PROFILES_TO_PROCESS }},\n  \"sessionCookie\": \"{{ $('Set ENV Variables').first().json.ENV_SESSION_COOKIE }}\",\n  \"spreadsheetUrl\": \"{{ $('Get Followers').first().json.profileUrl }}\"\n}"
        }
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "0151529b-c837-46cd-9206-a9aa852a245c",
      "name": "Obtenir Réponse",
      "type": "n8n-nodes-base.phantombuster",
      "position": [
        -576,
        -1216
      ],
      "parameters": {
        "agentId": "798529539709482",
        "operation": "getOutput",
        "additionalFields": {}
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d02ecaab-1458-4c7f-aa42-8ca090502861",
      "name": "Note Adhésive",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1424,
        -1744
      ],
      "parameters": {
        "color": 5,
        "width": 1324,
        "height": 412,
        "content": "## Get List of Accounts and all Followers of that Account\n"
      },
      "typeVersion": 1
    },
    {
      "id": "74e88554-9696-49d1-bf60-26e715c21dca",
      "name": "Note Adhésive2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1424,
        -1312
      ],
      "parameters": {
        "width": 1316,
        "height": 348,
        "content": "## Launch Autofollow Agent to Follow Accounts\n"
      },
      "typeVersion": 1
    },
    {
      "id": "175074db-a8d4-42fe-97bb-ef45394bc666",
      "name": "Obtenir Collecteur d'Abonnés",
      "type": "n8n-nodes-base.phantombuster",
      "position": [
        -1152,
        -1600
      ],
      "parameters": {
        "agentId": "1481471730276201",
        "operation": "get"
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b93020ae-5c68-42d4-b100-13bab41fb7f3",
      "name": "Obtenir Abonnés",
      "type": "n8n-nodes-base.phantombuster",
      "position": [
        -272,
        -1600
      ],
      "parameters": {
        "agentId": "1481471730276201",
        "operation": "getOutput",
        "additionalFields": {}
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "81c0399f-db23-40a8-a3ee-039db367d6ee",
      "name": "Obtenir Liste de Comptes",
      "type": "n8n-nodes-base.microsoftSharePoint",
      "position": [
        -928,
        -1600
      ],
      "parameters": {
        "file": {
          "__rl": true,
          "mode": "list",
          "value": "01M45PWA2DXMAMDIHRJ5DLNZFFQRKUD25O",
          "cachedResultName": "accounts_to_follow.csv"
        },
        "site": {
          "__rl": true,
          "mode": "list",
          "value": "plemeo.sharepoint.com,f304c34c-1252-4b99-a852-059c2036c718,c3bf26ab-bf44-4334-8e5b-e8b680bb9e1d",
          "cachedResultName": "plemeo"
        },
        "folder": {
          "__rl": true,
          "mode": "list",
          "value": "01M45PWAY4RSXX7PGSC5CL27V2Y7XYSNQZ",
          "cachedResultName": "Phantombuster"
        },
        "fileName": "accounts_to_follow.csv",
        "operation": "update",
        "requestOptions": {}
      },
      "credentials": {
        "microsoftSharePointOAuth2Api": {
          "id": "jZkLTQXyVEzxtmp3",
          "name": "Microsoft SharePoint account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "fcab1649-9f85-4dd6-ae96-b6b9756ed7dc",
      "name": "Obtenir Agent de Suivi Automatique",
      "type": "n8n-nodes-base.phantombuster",
      "position": [
        -1216,
        -1216
      ],
      "parameters": {
        "agentId": "798529539709482",
        "operation": "get"
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c9a884f0-6ccb-4ae3-ab1e-724bbd96a1e7",
      "name": "Attendre le résultat",
      "type": "n8n-nodes-base.wait",
      "position": [
        -784,
        -1216
      ],
      "webhookId": "ed20e8e0-6e55-41d7-bda6-4cf1c0d32b1e",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "5604adb6-3ddf-4c64-8589-170caa1813df",
      "name": "Définir Variables ENV",
      "type": "n8n-nodes-base.set",
      "position": [
        -1328,
        -1600
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "a897adc5-6c18-4bc6-b1ae-6db02b884f2f",
              "name": "ENV_SESSION_COOKIE",
              "type": "string",
              "value": "={{ $('Select Cookie').first().json.output.parseJson().session_cookie }}"
            },
            {
              "id": "3d571e3c-7110-48c5-af2d-7727079b3747",
              "name": "ENV_PROFILES_TO_PROCESS",
              "type": "string",
              "value": "1"
            },
            {
              "id": "fc8e2505-be84-4cfd-973a-5dd7d717a9a5",
              "name": "ENV_AMOUNT_FOLLOWERS_PER_PROFILE",
              "type": "string",
              "value": "1"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "01f1c2cc-59aa-467f-94f1-874d157e460d",
      "name": "Planifier Déclencheur",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1264,
        -2032
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "triggerAtMinute": 35
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "afb4b5f2-3288-41cc-9b65-e73cc7785a93",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -640,
        -1856
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "chatgpt-4o-latest",
          "cachedResultName": "chatgpt-4o-latest"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "E4PFATctY0kV00hl",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e225ded4-30c6-41e1-99f6-354d3ec32282",
      "name": "Obtenir Cookies de Session Disponibles",
      "type": "n8n-nodes-base.microsoftSharePoint",
      "position": [
        -1040,
        -2032
      ],
      "parameters": {
        "file": {
          "__rl": true,
          "mode": "list",
          "value": "01M45PWA5FHBKEDCMCXRBJK64QFIFWOCQE",
          "cachedResultName": "instagram_session_cookies.txt"
        },
        "site": {
          "__rl": true,
          "mode": "list",
          "value": "plemeo.sharepoint.com,f304c34c-1252-4b99-a852-059c2036c718,c3bf26ab-bf44-4334-8e5b-e8b680bb9e1d",
          "cachedResultName": "plemeo"
        },
        "folder": {
          "__rl": true,
          "mode": "list",
          "value": "01M45PWAY4RSXX7PGSC5CL27V2Y7XYSNQZ",
          "cachedResultName": "Phantombuster"
        },
        "requestOptions": {}
      },
      "credentials": {
        "microsoftSharePointOAuth2Api": {
          "id": "jZkLTQXyVEzxtmp3",
          "name": "Microsoft SharePoint account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "be9bcd84-c3d0-464e-9db2-0aedd4b3c6c2",
      "name": "Extraire Cookies",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -832,
        -2032
      ],
      "parameters": {
        "options": {},
        "operation": "text"
      },
      "typeVersion": 1
    },
    {
      "id": "7396cbf4-8078-4eb2-866b-2baa63cf4812",
      "name": "Sélectionner Cookie",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -624,
        -2032
      ],
      "parameters": {
        "text": "=##################  PROMPT  ##################\n\n**ROLE:**  You are a session-cookie selector.\n\n**CURRENT BERLIN TIME**  \nDate & time : {{ $now.setZone('Europe/Berlin').format('DD HH:mm:ss') }}  \nHour (00-23): {{ $now.setZone('Europe/Berlin').format('HH') }}\n\n**SESSION COOKIES (keep order):**  \n{{ $json.data }}\n\n**SELECTION LOGIC**\n\n1. Let  \n   • N = number of cookies in the list (2 ≤ N ≤ 4).  \n   • H = current hour as an integer (0–23).  \n   • W = 24 ÷ N  (the width of each time slice in hours, always an integer).\n\n2. Determine the slice index:  \n   sliceIndex = floor(H ÷ W)  // 0-based\n\n3. Choose the cookie at position *(sliceIndex + 1)* in the list.  \n   • Example when N = 4 (W = 6):  \n     00-05 → 1st, 06-11 → 2nd, 12-17 → 3rd, 18-23 → 4th  \n   • Example when N = 3 (W = 8):  \n     00-07 → 1st, 08-15 → 2nd, 16-23 → 3rd  \n   • Example when N = 2 (W = 12):  \n     00-11 → 1st, 12-23 → 2nd\n\n**OUTPUT FORMAT**  \nReturn only the selected session cookie value in a valid JSON-Field called \"session_cookie\", nothing else.\n\n##############################################",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 2
    },
    {
      "id": "0e998d01-aab5-40b7-8659-4562ac6afbed",
      "name": "Note Adhésive3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1424,
        -2176
      ],
      "parameters": {
        "color": 6,
        "width": 1324,
        "height": 412,
        "content": "## Start Workflow and Retrieve Session Cookie\n"
      },
      "typeVersion": 1
    },
    {
      "id": "f0d9133c-ec1e-48ea-bb33-af1c3597bf88",
      "name": "Note Adhésive4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1904,
        -2176
      ],
      "parameters": {
        "width": 464,
        "height": 288,
        "content": "### 1) Cookie Rotation  \n**What it does**  \n• Downloads cookie list ➜ **Select Cookie** picks one based on time slice  \n  (0–23 h divided evenly).\n\n**Credentials**  \nSharePoint OAuth2 + optional OpenAI.\n\n**Tweaks**  \n• Add/remove cookies in SharePoint file.  \n• Adjust selection logic in the prompt if you add more cookies."
      },
      "typeVersion": 1
    },
    {
      "id": "d7bab9f3-4b87-4a55-ab65-4472e68a7897",
      "name": "Note Adhésive5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1904,
        -1744
      ],
      "parameters": {
        "width": 464,
        "height": 272,
        "content": "### 2) Seed Profile Handling  \n**What it does**  \n• Gets `accounts_to_follow.csv` from SharePoint.  \n• **Follower Collector Agent** gathers followers of each seed profile.\n\n**Credentials**  \nSharePoint OAuth2 + Phantombuster API.\n\n**Tweaks**  \n• Add or remove seed profiles in the CSV.  \n• Change `ENV_AMOUNT_FOLLOWERS_PER_PROFILE` to limit scrape size."
      },
      "typeVersion": 1
    },
    {
      "id": "5c8f8d24-dc66-4082-b562-d80d729568dc",
      "name": "Note Adhésive6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1872,
        -1312
      ],
      "parameters": {
        "width": 432,
        "height": 288,
        "content": "### 3) Auto-follow Execution  \n**What it does**  \n• **Autofollow Agent** follows up to\n  `ENV_PROFILES_TO_PROCESS` new profiles per launch.\n\n**Credentials**  \nPhantombuster API + SharePoint OAuth2 (for cookie download).\n\n**Tweaks**  \n• Increase `ENV_PROFILES_TO_PROCESS` for faster growth.  \n• Edit arguments JSON inside **Launch AC Agent** to follow in batches."
      },
      "typeVersion": 1
    },
    {
      "id": "d3e9b8ed-349a-4b2c-a258-a8158dce5f84",
      "name": "Note Adhésive7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -1312
      ],
      "parameters": {
        "width": 448,
        "height": 272,
        "content": "### 4) Rate Limiting & Scheduling  \n**What it does**  \n• Hourly cron plus **Wait** nodes limit follows (1–40/h).\n\n**Credentials**  \nNone\n\n**Tweaks**  \n• Change cron minute or interval.  \n• Reduce Wait times if your plan allows more runs/day."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "959522e3-de06-4bb2-92c5-ecb1a2cca62f",
  "connections": {
    "c8aa6db4-9ac4-4dd6-a6e5-199fc00e91f6": {
      "main": [
        [
          {
            "node": "b93020ae-5c68-42d4-b100-13bab41fb7f3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0151529b-c837-46cd-9206-a9aa852a245c": {
      "main": [
        []
      ]
    },
    "040e11d3-58be-48ed-b927-3d3d23c7d76f": {
      "main": [
        [
          {
            "node": "c8aa6db4-9ac4-4dd6-a6e5-199fc00e91f6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b93020ae-5c68-42d4-b100-13bab41fb7f3": {
      "main": [
        [
          {
            "node": "fcab1649-9f85-4dd6-ae96-b6b9756ed7dc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7396cbf4-8078-4eb2-866b-2baa63cf4812": {
      "main": [
        [
          {
            "node": "5604adb6-3ddf-4c64-8589-170caa1813df",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "be9bcd84-c3d0-464e-9db2-0aedd4b3c6c2": {
      "main": [
        [
          {
            "node": "7396cbf4-8078-4eb2-866b-2baa63cf4812",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4a236261-c86d-4ffe-870f-dcd671e5df6d": {
      "main": [
        [
          {
            "node": "c9a884f0-6ccb-4ae3-ab1e-724bbd96a1e7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c9a884f0-6ccb-4ae3-ab1e-724bbd96a1e7": {
      "main": [
        [
          {
            "node": "0151529b-c837-46cd-9206-a9aa852a245c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "01f1c2cc-59aa-467f-94f1-874d157e460d": {
      "main": [
        [
          {
            "node": "e225ded4-30c6-41e1-99f6-354d3ec32282",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "afb4b5f2-3288-41cc-9b65-e73cc7785a93": {
      "ai_languageModel": [
        [
          {
            "node": "7396cbf4-8078-4eb2-866b-2baa63cf4812",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "5604adb6-3ddf-4c64-8589-170caa1813df": {
      "main": [
        [
          {
            "node": "175074db-a8d4-42fe-97bb-ef45394bc666",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fcab1649-9f85-4dd6-ae96-b6b9756ed7dc": {
      "main": [
        [
          {
            "node": "4a236261-c86d-4ffe-870f-dcd671e5df6d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "81c0399f-db23-40a8-a3ee-039db367d6ee": {
      "main": [
        [
          {
            "node": "040e11d3-58be-48ed-b927-3d3d23c7d76f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "175074db-a8d4-42fe-97bb-ef45394bc666": {
      "main": [
        [
          {
            "node": "81c0399f-db23-40a8-a3ee-039db367d6ee",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e225ded4-30c6-41e1-99f6-354d3ec32282": {
      "main": [
        [
          {
            "node": "be9bcd84-c3d0-464e-9db2-0aedd4b3c6c2",
            "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é ?

Avancé - Réseaux sociaux

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.

Informations sur le workflow
Niveau de difficulté
Avancé
Nombre de nœuds22
Catégorie1
Types de nœuds9
Description de la difficulté

Adapté aux utilisateurs avancés, avec des workflows complexes contenant 16+ nœuds

Auteur
plemeo

plemeo

@plemeo

Hi, I'm Gerhard from Plemeo. At plemeo.ai, we focus on AI-driven automation and workflow optimization. Our deep expertise with n8n enables us to streamline processes and boost efficiency in software development. This allows us to deliver real, measurable improvements. Curious how plemeo.ai and n8n can benefit your business? Reach out at info@plemeo.de or visit plemeo.ai.

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34