8
n8n 中文网amn8n.com

Instagram自动点赞(个人资料帖子提取器)- 创作者中心

高级

这是一个Social Media领域的自动化工作流,包含 38 个节点。主要使用 If, Set, Code, Wait, HttpRequest 等节点。 使用Phantombuster和SharePoint自动点赞选定个人资料的Instagram帖子

前置要求
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "yjW8e13sgz8fb9PJ",
  "meta": {
    "instanceId": "2cf742429c2e3ee4e5a20069d3d8a75208519303b864f026a79464efa726bd95",
    "templateCredsSetupCompleted": true
  },
  "name": "Instagram 自动点赞(个人资料帖子提取器)- 创作者中心",
  "tags": [
    {
      "id": "Tl9QVfvwkdFQyffg",
      "name": "n8n Creators Hub",
      "createdAt": "2025-08-01T09:19:22.310Z",
      "updatedAt": "2025-08-01T09:19:22.310Z"
    }
  ],
  "nodes": [
    {
      "id": "7baf316f-9de7-4919-bbf2-4a494d0e4ee1",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        -880,
        -1872
      ],
      "webhookId": "8378df85-61b5-4ee6-9634-6ad4042a7f61",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "d0421508-f235-4db1-819a-87af7151fa59",
      "name": "等待1",
      "type": "n8n-nodes-base.wait",
      "position": [
        352,
        -1440
      ],
      "webhookId": "54ec5f5a-470f-404b-ab74-1d583f0d3f8e",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "f1eb23c4-266b-4dca-86b9-ff14e39978d4",
      "name": "获取随机帖子",
      "type": "n8n-nodes-base.code",
      "position": [
        -2128,
        -1440
      ],
      "parameters": {
        "jsCode": "const data = $input.all().map(item => item.json);\n\nif (!data || data.length === 0) {\n  throw new Error('No Instagram posts data found');\n}\n\n// Get a random post\nconst randomPost = data[Math.floor(Math.random() * data.length)];\n\n// Return only postUrl and description\nreturn {\n  json: {\n    postUrl: randomPost.postUrl\n  }\n};"
      },
      "typeVersion": 2
    },
    {
      "id": "402107d7-6935-4304-b7d6-447aa70042a8",
      "name": "创建 CSV 二进制文件",
      "type": "n8n-nodes-base.code",
      "position": [
        -688,
        -1440
      ],
      "parameters": {
        "jsCode": "// Extract correct values\nconst postUrl = $('Get Random Post').first().json.postUrl;\n\n// Clean utility\nconst clean = str => String(str || \"\").replace(/[\\u200B-\\u200D\\uFEFF]/g, \"\").trim();\n\n// Escape and quote single data row\nconst row = [\n  `\"${clean(postUrl).replace(/\"/g, '\"\"')}\"`\n];\n\n// Convert to buffer without header or BOM\nconst csvBuffer = Buffer.from(row.join(\",\") + \"\\n\", \"utf8\");\n\n// Return binary file\nreturn [\n  {\n    binary: {\n      data: {\n        data: csvBuffer,\n        mimeType: \"text/csv\",\n        fileName: \"phantombuster_clean.csv\"\n      }\n    }\n  }\n];\n"
      },
      "typeVersion": 2
    },
    {
      "id": "bcf735a0-3262-40d9-9f1f-bf740e75a94f",
      "name": "上传 CSV",
      "type": "n8n-nodes-base.microsoftSharePoint",
      "position": [
        -496,
        -1440
      ],
      "parameters": {
        "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": "instagram_posts_to_like.csv",
        "operation": "upload",
        "fileContents": "data",
        "requestOptions": {}
      },
      "credentials": {
        "microsoftSharePointOAuth2Api": {
          "id": "jZkLTQXyVEzxtmp3",
          "name": "Microsoft SharePoint account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "6b75ce32-6c2c-4bcb-aad1-69f9068e8d74",
      "name": "获取响应",
      "type": "n8n-nodes-base.phantombuster",
      "position": [
        576,
        -1440
      ],
      "parameters": {
        "agentId": "7281446865767808",
        "operation": "getOutput",
        "additionalFields": {}
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "780a8a6b-db44-4128-8350-5910b3ea5144",
      "name": "获取自动点赞代理",
      "type": "n8n-nodes-base.phantombuster",
      "position": [
        -80,
        -1440
      ],
      "parameters": {
        "agentId": "1308386990292658",
        "operation": "get"
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "818fb213-0de9-43ec-b586-5a5abe4cc2b1",
      "name": "启动自动点赞代理",
      "type": "n8n-nodes-base.phantombuster",
      "position": [
        144,
        -1440
      ],
      "parameters": {
        "agentId": "1308386990292658",
        "jsonParameters": true,
        "additionalFields": {
          "argumentsJson": "={\n  \"numberOfPostsPerLaunch\": 1,\n  \"sessionCookie\": \"{{ $('Set ENV Variables').first().json.ENV_SESSION_COOKIE }}\",\n  \"spreadsheetUrl\": \"{{ $('Upload CSV').item.json['@content.downloadUrl'] }}\"\n}"
        }
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "93179ea9-ce10-48ef-bce7-33d67363e3f7",
      "name": "设置环境变量",
      "type": "n8n-nodes-base.set",
      "position": [
        -416,
        -2288
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "debcbe7a-3298-46ec-a8ab-96e8dc0184a7",
              "name": "ENV_SESSION_COOKIE",
              "type": "string",
              "value": "={{ $('Select Cookie').first().json.output.parseJson().session_cookie }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "35b0afa6-e833-4f21-bf6c-48e904550517",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1328,
        -2288
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 2,
              "triggerAtMinute": 15
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "9546e366-42f6-42bc-a473-2db71c555a89",
      "name": "更新文件",
      "type": "n8n-nodes-base.microsoftSharePoint",
      "position": [
        -880,
        -1440
      ],
      "parameters": {
        "file": {
          "__rl": true,
          "mode": "list",
          "value": "01M45PWAZQIMNOGWOEPZBJXCNUHQ2W5JEC",
          "cachedResultName": "instagram_posts_already_liked.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": "instagram_posts_already_liked.csv",
        "operation": "update",
        "fileContents": "data",
        "requestOptions": {},
        "changeFileContent": true
      },
      "credentials": {
        "microsoftSharePointOAuth2Api": {
          "id": "jZkLTQXyVEzxtmp3",
          "name": "Microsoft SharePoint account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "f3b26a48-6428-4d18-8ec2-c70fd0dcdbd1",
      "name": "下载文件",
      "type": "n8n-nodes-base.microsoftSharePoint",
      "position": [
        -1952,
        -1440
      ],
      "parameters": {
        "file": {
          "__rl": true,
          "mode": "list",
          "value": "01M45PWAZQIMNOGWOEPZBJXCNUHQ2W5JEC",
          "cachedResultName": "instagram_posts_already_liked.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"
        },
        "requestOptions": {}
      },
      "credentials": {
        "microsoftSharePointOAuth2Api": {
          "id": "jZkLTQXyVEzxtmp3",
          "name": "Microsoft SharePoint account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a695afe0-f563-4dce-bee2-ca370e8f27f3",
      "name": "检查是否在列表中",
      "type": "n8n-nodes-base.code",
      "position": [
        -1584,
        -1440
      ],
      "parameters": {
        "jsCode": "const randomPost = normalizeUrl($('Get Random Post').first().json.postUrl);\nconst allItems = $('Extract from File').all();\n\nif (!allItems || allItems.length === 0) {\n  return [{ json: { isDuplicate: false } }];\n}\n\nfunction normalizeUrl(url) {\n  if (typeof url !== 'string') {\n    console.log(\"🚨 NOT A STRING:\", url);\n    return '';\n  }\n  return url.trim().toLowerCase().replace(/\\/$/, '');\n}\n\n// Helper function to get postUrl value regardless of BOM\nfunction getPostUrl(item) {\n  const json = item.json;\n  // Try normal field name first\n  if (json.postUrl) return json.postUrl;\n  \n  // Look for any field containing \"postUrl\"\n  const postUrlKey = Object.keys(json).find(key => key.includes('postUrl'));\n  return postUrlKey ? json[postUrlKey] : null;\n}\n\nconsole.log(\"✅ randomPost:\", randomPost);\nconsole.log(\"✅ allItems:\", allItems);\n\nlet isDuplicate = false;\n\nfor (const item of allItems) {\n  const candidateRaw = getPostUrl(item);\n  const candidate = normalizeUrl(candidateRaw);\n\n  console.log(`🟠 Comparing:\\n→ raw: ${candidateRaw}\\n→ normalized: ${candidate}\\n→ target: ${randomPost}`);\n\n  if (candidate === randomPost) {\n    isDuplicate = true;\n    break;\n  }\n}\n\nreturn [{ json: { isDuplicate } }];"
      },
      "typeVersion": 2
    },
    {
      "id": "b49359a7-1ac7-4e13-b219-d8e4bbce277a",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        -1408,
        -1440
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "bcef43b3-e773-45ba-b245-19ab3fc1e508",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $('Check if in List').first().json.isDuplicate }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "4558e24d-53c7-48ba-8ce5-c68550cc15e6",
      "name": "等待2",
      "type": "n8n-nodes-base.wait",
      "position": [
        -2288,
        -1440
      ],
      "webhookId": "e96e74a5-2c8e-41e2-b894-a1dffe851bb6",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "a97ea279-eeb5-4bf2-9521-e9eabd12c136",
      "name": "准备更新数据",
      "type": "n8n-nodes-base.code",
      "position": [
        -1232,
        -1440
      ],
      "parameters": {
        "jsCode": "const existingUrls = $('Extract from File').all().map(item => {\n  // Get the first key (which has the BOM) and use its value\n  const firstKey = Object.keys(item.json)[0];\n  return { postUrl: item.json[firstKey] };\n});\n\nconsole.log(\"existingUrls: \", existingUrls);\n\nconst randomPost = $('Get Random Post').first().json.postUrl;\nconsole.log(\"randomPost: \", randomPost);\n\nreturn [\n  ...existingUrls,\n  { postUrl: randomPost }\n].map(entry => ({ json: entry }));"
      },
      "typeVersion": 2
    },
    {
      "id": "b0a7d1e4-eb62-4720-80cc-4a5dd7f19235",
      "name": "从文件提取",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -1760,
        -1440
      ],
      "parameters": {
        "options": {
          "headerRow": true
        }
      },
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "f64adee4-8775-42c2-8e52-0c044ad3441d",
      "name": "转换为文件",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -1056,
        -1440
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "6d744136-7257-4cd0-b874-372d204a6099",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -784,
        -2096
      ],
      "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": "f74219a2-c747-423d-9ed0-57f1eccf3bd6",
      "name": "获取可用会话 Cookie",
      "type": "n8n-nodes-base.microsoftSharePoint",
      "position": [
        -1168,
        -2288
      ],
      "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": "d1d4fc06-0035-4397-a955-a4c54d3db0e0",
      "name": "提取 Cookie",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -960,
        -2288
      ],
      "parameters": {
        "options": {},
        "operation": "text"
      },
      "typeVersion": 1
    },
    {
      "id": "11c37cd5-f76a-4f96-b724-88e07bf59946",
      "name": "选择 Cookie",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -752,
        -2288
      ],
      "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": "1ebe586f-d24f-4342-bef0-fcba2bef43bc",
      "name": "启动代理",
      "type": "n8n-nodes-base.phantombuster",
      "position": [
        -1024,
        -1872
      ],
      "parameters": {
        "agentId": "={{ $('Get Profile Extractor Agent').item.json.id }}",
        "jsonParameters": true,
        "additionalFields": {
          "argumentsJson": "={\n  \"numberOfPostsPerProfile\": 20,\n  \"filters\": \"postUrl\",\n  \"spreadsheetUrl\": \"{{$('Get List of Accounts').item.json['@content.downloadUrl']}}\",\n  \"sessionCookie\": \"{{$('Set ENV Variables').item.json.ENV_SESSION_COOKIE}}\"\n}"
        }
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ebe727e3-4e01-4345-91ba-6b546aa9dc66",
      "name": "获取个人资料提取器代理",
      "type": "n8n-nodes-base.phantombuster",
      "position": [
        -1344,
        -1872
      ],
      "parameters": {
        "agentId": "7569425938663423",
        "operation": "get"
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5e170ac0-e10a-49dd-ab23-c2b2856f9988",
      "name": "获取账户列表",
      "type": "n8n-nodes-base.microsoftSharePoint",
      "position": [
        -1184,
        -1872
      ],
      "parameters": {
        "file": {
          "__rl": true,
          "mode": "list",
          "value": "01M45PWA5UGUOGJDHZDVEJOKYNQFNF4ERC",
          "cachedResultName": "instagram_profiles_to_scrape.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": "instagram_profiles_to_scrape.csv",
        "operation": "update",
        "requestOptions": {}
      },
      "credentials": {
        "microsoftSharePointOAuth2Api": {
          "id": "jZkLTQXyVEzxtmp3",
          "name": "Microsoft SharePoint account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5d11ec57-9af0-471a-8e36-2889b87b4050",
      "name": "如果为空",
      "type": "n8n-nodes-base.if",
      "position": [
        -320,
        -1872
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "77805c7a-32a4-492e-9084-6a459e8d6b65",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $json.isEmpty() }}",
              "rightValue": "true"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "187077fc-7cf7-4a1e-85b1-fbea041b44e8",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -736,
        -1872
      ],
      "parameters": {
        "url": "https://api.phantombuster.com/api/v2/agents/fetch?id=7569425938663423",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "phantombusterApi"
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "b78ecdb0-8827-4bc0-942b-35aba3ff5341",
      "name": "HTTP请求1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -592,
        -1872
      ],
      "parameters": {
        "url": "=https://phantombuster.s3.amazonaws.com/{{ $json.data?.orgS3Folder || $json.orgS3Folder }}/{{ $json.data?.s3Folder || $json.s3Folder }}/filtered_result.csv\n",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "phantombusterApi"
      },
      "credentials": {
        "phantombusterApi": {
          "id": "Zf0AAqqdjBFfyW4W",
          "name": "Phantombuster account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "bd08f58a-8cf6-4bbb-a26f-b10b23bfba6e",
      "name": "准备帖子",
      "type": "n8n-nodes-base.code",
      "position": [
        -448,
        -1872
      ],
      "parameters": {
        "jsCode": "// Split the \"data\" field into lines\nconst raw = $json[\"data\"] || \"\";\nconst lines = raw.split(\"\\n\").map(l => l.trim()).filter(Boolean);\n\n// First line is the header (\"postUrl\")\nconst header = lines.shift();\n\n// Build an array of { postUrl } objects\nreturn lines.map(url => {\n  return {\n    json: {\n      postUrl: url\n    }\n  };\n});\n"
      },
      "typeVersion": 2
    },
    {
      "id": "8da474d3-5d18-46bd-ba6f-4525125bbb9d",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1392,
        -2000
      ],
      "parameters": {
        "color": 5,
        "width": 1180,
        "height": 400,
        "content": "## 通过自定义话题标签获取 Instagram 帖子"
      },
      "typeVersion": 1
    },
    {
      "id": "33cf094c-3706-493f-bdcd-8168b3f4461d",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2336,
        -1584
      ],
      "parameters": {
        "color": 3,
        "width": 2124,
        "height": 404,
        "content": "## 处理帖子并检查是否已处理"
      },
      "typeVersion": 1
    },
    {
      "id": "92d47a96-3211-4a26-a851-ffd90cb9b5bc",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -1584
      ],
      "parameters": {
        "width": 992,
        "height": 404,
        "content": "## 启动自动点赞代理以点赞帖子"
      },
      "typeVersion": 1
    },
    {
      "id": "59e1a490-3b79-43d8-8e0f-fcd8aeb96392",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1392,
        -2416
      ],
      "parameters": {
        "color": 6,
        "width": 1180,
        "height": 400,
        "content": "## 启动工作流并检索会话 Cookie"
      },
      "typeVersion": 1
    },
    {
      "id": "5c727010-1bcf-4ed7-9597-f4026bba2cfa",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -2416
      ],
      "parameters": {
        "width": 448,
        "height": 272,
        "content": "### 1) Cookie 和话题标签选择"
      },
      "typeVersion": 1
    },
    {
      "id": "922c64a6-4ae5-46fa-9f6c-e025187e6110",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -2000
      ],
      "parameters": {
        "width": 464,
        "height": 240,
        "content": "### 2) 抓取 Instagram 帖子"
      },
      "typeVersion": 1
    },
    {
      "id": "3b02aab2-7285-4b5d-9286-536f4d7be19e",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2336,
        -1168
      ],
      "parameters": {
        "width": 432,
        "height": 256,
        "content": "### 3) 重复检查"
      },
      "typeVersion": 1
    },
    {
      "id": "49ef0839-42d9-4d40-9259-a522438323e3",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        -1584
      ],
      "parameters": {
        "width": 320,
        "height": 256,
        "content": "### 5) 速率限制与调度"
      },
      "typeVersion": 1
    },
    {
      "id": "ffc63ccc-b097-40ef-8293-968dc2f70281",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -1168
      ],
      "parameters": {
        "width": 416,
        "height": 272,
        "content": "### 4) CSV 上传与自动点赞"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "3a24d44c-9ffd-4341-af08-2625b65d47a0",
  "connections": {
    "b49359a7-1ac7-4e13-b219-d8e4bbce277a": {
      "main": [
        [
          {
            "node": "4558e24d-53c7-48ba-8ce5-c68550cc15e6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "a97ea279-eeb5-4bf2-9521-e9eabd12c136",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7baf316f-9de7-4919-bbf2-4a494d0e4ee1": {
      "main": [
        [
          {
            "node": "187077fc-7cf7-4a1e-85b1-fbea041b44e8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d0421508-f235-4db1-819a-87af7151fa59": {
      "main": [
        [
          {
            "node": "6b75ce32-6c2c-4bcb-aad1-69f9068e8d74",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4558e24d-53c7-48ba-8ce5-c68550cc15e6": {
      "main": [
        [
          {
            "node": "f1eb23c4-266b-4dca-86b9-ff14e39978d4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5d11ec57-9af0-471a-8e36-2889b87b4050": {
      "main": [
        [],
        [
          {
            "node": "4558e24d-53c7-48ba-8ce5-c68550cc15e6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bcf735a0-3262-40d9-9f1f-bf740e75a94f": {
      "main": [
        [
          {
            "node": "780a8a6b-db44-4128-8350-5910b3ea5144",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9546e366-42f6-42bc-a473-2db71c555a89": {
      "main": [
        [
          {
            "node": "402107d7-6935-4304-b7d6-447aa70042a8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "187077fc-7cf7-4a1e-85b1-fbea041b44e8": {
      "main": [
        [
          {
            "node": "b78ecdb0-8827-4bc0-942b-35aba3ff5341",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1ebe586f-d24f-4342-bef0-fcba2bef43bc": {
      "main": [
        [
          {
            "node": "7baf316f-9de7-4919-bbf2-4a494d0e4ee1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f3b26a48-6428-4d18-8ec2-c70fd0dcdbd1": {
      "main": [
        [
          {
            "node": "b0a7d1e4-eb62-4720-80cc-4a5dd7f19235",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b78ecdb0-8827-4bc0-942b-35aba3ff5341": {
      "main": [
        [
          {
            "node": "bd08f58a-8cf6-4bbb-a26f-b10b23bfba6e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bd08f58a-8cf6-4bbb-a26f-b10b23bfba6e": {
      "main": [
        [
          {
            "node": "5d11ec57-9af0-471a-8e36-2889b87b4050",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "11c37cd5-f76a-4f96-b724-88e07bf59946": {
      "main": [
        [
          {
            "node": "93179ea9-ce10-48ef-bce7-33d67363e3f7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f64adee4-8775-42c2-8e52-0c044ad3441d": {
      "main": [
        [
          {
            "node": "9546e366-42f6-42bc-a473-2db71c555a89",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d1d4fc06-0035-4397-a955-a4c54d3db0e0": {
      "main": [
        [
          {
            "node": "11c37cd5-f76a-4f96-b724-88e07bf59946",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f1eb23c4-266b-4dca-86b9-ff14e39978d4": {
      "main": [
        [
          {
            "node": "f3b26a48-6428-4d18-8ec2-c70fd0dcdbd1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "818fb213-0de9-43ec-b586-5a5abe4cc2b1": {
      "main": [
        [
          {
            "node": "d0421508-f235-4db1-819a-87af7151fa59",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a695afe0-f563-4dce-bee2-ca370e8f27f3": {
      "main": [
        [
          {
            "node": "b49359a7-1ac7-4e13-b219-d8e4bbce277a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "35b0afa6-e833-4f21-bf6c-48e904550517": {
      "main": [
        [
          {
            "node": "f74219a2-c747-423d-9ed0-57f1eccf3bd6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "402107d7-6935-4304-b7d6-447aa70042a8": {
      "main": [
        [
          {
            "node": "bcf735a0-3262-40d9-9f1f-bf740e75a94f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b0a7d1e4-eb62-4720-80cc-4a5dd7f19235": {
      "main": [
        [
          {
            "node": "a695afe0-f563-4dce-bee2-ca370e8f27f3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "93179ea9-ce10-48ef-bce7-33d67363e3f7": {
      "main": [
        [
          {
            "node": "ebe727e3-4e01-4345-91ba-6b546aa9dc66",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6d744136-7257-4cd0-b874-372d204a6099": {
      "ai_languageModel": [
        [
          {
            "node": "11c37cd5-f76a-4f96-b724-88e07bf59946",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "780a8a6b-db44-4128-8350-5910b3ea5144": {
      "main": [
        [
          {
            "node": "818fb213-0de9-43ec-b586-5a5abe4cc2b1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5e170ac0-e10a-49dd-ab23-c2b2856f9988": {
      "main": [
        [
          {
            "node": "1ebe586f-d24f-4342-bef0-fcba2bef43bc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a97ea279-eeb5-4bf2-9521-e9eabd12c136": {
      "main": [
        [
          {
            "node": "f64adee4-8775-42c2-8e52-0c044ad3441d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ebe727e3-4e01-4345-91ba-6b546aa9dc66": {
      "main": [
        [
          {
            "node": "5e170ac0-e10a-49dd-ab23-c2b2856f9988",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f74219a2-c747-423d-9ed0-57f1eccf3bd6": {
      "main": [
        [
          {
            "node": "d1d4fc06-0035-4397-a955-a4c54d3db0e0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 社交媒体

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量38
分类1
节点类型13
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
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.

外部链接
在 n8n.io 查看

分享此工作流

分类

分类: 34