8
n8n 中文网amn8n.com

通过Dumpling AI自动抓取TikTok用户数据并在Airtable中分段

中级

这是一个AI, Marketing领域的自动化工作流,包含 6 个节点。主要使用 If, Airtable, HttpRequest, AirtableTrigger 等节点,结合人工智能技术实现智能自动化。 通过Dumpling AI自动抓取TikTok用户数据并在Airtable中分段

前置要求
  • Airtable API Key
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "thlRQfqORNJEz5Wm",
  "meta": {
    "instanceId": "a1ae5c8dc6c65e674f9c3947d083abcc749ef2546dff9f4ff01de4d6a36ebfe6",
    "templateCredsSetupCompleted": true
  },
  "name": "通过Dumpling AI自动抓取TikTok用户数据并在Airtable中分段",
  "tags": [],
  "nodes": [
    {
      "id": "ff24f466-3350-4259-b8c4-12525f8fffce",
      "name": "在Airtable中监控新的TikTok账号",
      "type": "n8n-nodes-base.airtableTrigger",
      "position": [
        -660,
        -80
      ],
      "parameters": {
        "baseId": {
          "__rl": true,
          "mode": "id",
          "value": ""
        },
        "tableId": {
          "__rl": true,
          "mode": "id",
          "value": ""
        },
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "triggerField": "Tik tok username",
        "authentication": "airtableTokenApi",
        "additionalFields": {}
      },
      "credentials": {
        "airtableTokenApi": {
          "id": "H8PVkBgUPCcUhhRC",
          "name": "Airtable Personal Access Token account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "0f31947a-154a-4902-9cb4-d4b30979539e",
      "name": "通过Dumpling AI获取TikTok资料数据",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -440,
        -80
      ],
      "parameters": {
        "url": "https://app.dumplingai.com/api/v1/get-tiktok-profile",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"handle\": \"{{ $json.fields['Tik tok username'] }}\"\n}\n ",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "RLFzAcGRepr5eXZB",
          "name": "n8n"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "ba10cc9a-dede-41e3-9027-93fc07b039a0",
      "name": "检查粉丝数是否达到10万或更多",
      "type": "n8n-nodes-base.if",
      "position": [
        -220,
        -80
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "aa9c64c8-e59d-4f8a-bf9b-e264027bf975",
              "operator": {
                "type": "number",
                "operation": "gte"
              },
              "leftValue": "={{ $json.stats.followerCount }}",
              "rightValue": 100000
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "a0556542-a7f6-4e2a-9154-7f862f13f8fd",
      "name": "使用基础TikTok统计数据更新记录",
      "type": "n8n-nodes-base.airtable",
      "position": [
        0,
        -180
      ],
      "parameters": {
        "base": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "https://airtable.com/appPSvSKdA6075xJC",
          "cachedResultName": "Testing n8n"
        },
        "table": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "https://airtable.com/appPSvSKdA6075xJC/tblmqgjEwgIR6rpUZ",
          "cachedResultName": "Table 1"
        },
        "columns": {
          "value": {
            "ID": "={{ $json.user.id }}",
            "id": "={{ $('Watch for New TikTok Handles in Airtable').item.json.id }}",
            "heartCount": "={{ $json.stats.heart }}",
            "videoCount": "={{ $json.stats.videoCount }}",
            "followerCount": "={{ $json.stats.followerCount }}",
            "followingCount": "={{ $json.stats.followingCount }}",
            "Tik tok username": "={{ $('Watch for New TikTok Handles in Airtable').item.json.fields['Tik tok username'] }}"
          },
          "schema": [
            {
              "id": "id",
              "type": "string",
              "display": true,
              "removed": false,
              "readOnly": true,
              "required": false,
              "displayName": "id",
              "defaultMatch": true
            },
            {
              "id": "Tik tok username",
              "type": "string",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "Tik tok username",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "ID",
              "type": "string",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "ID",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "followerCount",
              "type": "number",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "followerCount",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "followingCount",
              "type": "number",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "followingCount",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "heartCount",
              "type": "number",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "heartCount",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "videoCount",
              "type": "number",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "videoCount",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "avatarLarger",
              "type": "array",
              "display": true,
              "removed": true,
              "readOnly": false,
              "required": false,
              "displayName": "avatarLarger",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "update"
      },
      "credentials": {
        "airtableTokenApi": {
          "id": "H8PVkBgUPCcUhhRC",
          "name": "Airtable Personal Access Token account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "d3662656-b23e-49d6-8a85-0c9662ea3025",
      "name": "使用完整TikTok统计数据更新记录",
      "type": "n8n-nodes-base.airtable",
      "position": [
        40,
        0
      ],
      "parameters": {
        "base": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "https://airtable.com/appPSvSKdA6075xJC",
          "cachedResultName": "Testing n8n"
        },
        "table": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "https://airtable.com/appPSvSKdA6075xJC/tblmqgjEwgIR6rpUZ",
          "cachedResultName": "Table 1"
        },
        "columns": {
          "value": {
            "ID": "={{ $json.user.id }}",
            "id": "={{ $('Watch for New TikTok Handles in Airtable').item.json.id }}",
            "heartCount": "={{ $json.stats.heart }}",
            "videoCount": "={{ $json.stats.videoCount }}",
            "avatarLarger": "={{ $json.user.avatarThumb }}",
            "followerCount": "={{ $json.stats.followerCount }}",
            "followingCount": "={{ $json.stats.followingCount }}",
            "Tik tok username": "={{ $('Watch for New TikTok Handles in Airtable').item.json.fields['Tik tok username'] }}"
          },
          "schema": [
            {
              "id": "id",
              "type": "string",
              "display": true,
              "removed": false,
              "readOnly": true,
              "required": false,
              "displayName": "id",
              "defaultMatch": true
            },
            {
              "id": "Tik tok username",
              "type": "string",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "Tik tok username",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "ID",
              "type": "string",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "ID",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "followerCount",
              "type": "number",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "followerCount",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "followingCount",
              "type": "number",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "followingCount",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "heartCount",
              "type": "number",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "heartCount",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "videoCount",
              "type": "number",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "videoCount",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "avatarLarger",
              "type": "array",
              "display": true,
              "removed": false,
              "readOnly": false,
              "required": false,
              "displayName": "avatarLarger",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "update"
      },
      "credentials": {
        "airtableTokenApi": {
          "id": "H8PVkBgUPCcUhhRC",
          "name": "Airtable Personal Access Token account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "5db3da72-a48b-4b79-bb28-730ed2529406",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -860,
        -460
      ],
      "parameters": {
        "width": 760,
        "height": 360,
        "content": "### 📊 TikTok资料抓取器和Airtable筛选器(使用Dumpling AI)"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "7b954f02-3201-44d8-bb10-ed0036bb71ed",
  "connections": {
    "Get TikTok Profile Data via Dumpling AI": {
      "main": [
        [
          {
            "node": " Check if Follower Count is 100k or More",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    " Check if Follower Count is 100k or More": {
      "main": [
        [
          {
            "node": "Update Record with Basic TikTok Stats",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update Record with All TikTok Stats ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Watch for New TikTok Handles in Airtable": {
      "main": [
        [
          {
            "node": "Get TikTok Profile Data via Dumpling AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能, 营销

需要付费吗?

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

工作流信息
难度等级
中级
节点数量6
分类2
节点类型5
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

外部链接
在 n8n.io 查看

分享此工作流