使用Dumpling AI + GPT-4根据关键词查找TikTok视频问题
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 16 个节点。主要使用 Code, Wait, Limit, SplitOut, DataTable 等节点。 使用Dumpling AI + GPT-4根据关键词查找TikTok视频问题
前置要求
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "z82YLTAObSRGi4C7",
"meta": {
"instanceId": "a1ae5c8dc6c65e674f9c3947d083abcc749ef2546dff9f4ff01de4d6a36ebfe6",
"templateCredsSetupCompleted": true
},
"name": "使用 Dumpling AI + GPT-4 根据关键词查找 TikTok 视频问题",
"tags": [],
"nodes": [
{
"id": "1fb5c245-3539-4d68-bdb6-60619577e6d4",
"name": "无操作,不执行任何动作",
"type": "n8n-nodes-base.noOp",
"position": [
1040,
-240
],
"parameters": {},
"typeVersion": 1
},
{
"id": "b09c504c-ceeb-4a00-889f-4a9c19eb0be4",
"name": "接收关键词输入",
"type": "n8n-nodes-base.formTrigger",
"position": [
-528,
208
],
"webhookId": "d4b23900-f9c3-4436-b41b-a7b2a95dc050",
"parameters": {
"options": {},
"formTitle": "Tik Tok Search ",
"formFields": {
"values": [
{
"fieldLabel": "Keywords"
}
]
}
},
"typeVersion": 2.3
},
{
"id": "bc607c71-7c66-43ef-b879-98f9131bb35d",
"name": "搜索 TikTok 用户(Dumpling AI)",
"type": "n8n-nodes-base.httpRequest",
"position": [
-304,
208
],
"parameters": {
"url": "https://app.dumplingai.com/api/v1/search-tiktok-users",
"method": "POST",
"options": {},
"sendBody": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "query",
"value": "={{ $json.Keywords }}"
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "RLFzAcGRepr5eXZB",
"name": "Dumpling AI-n8n"
}
},
"typeVersion": 4.2
},
{
"id": "cd3017fb-7ff0-477c-b213-b90dfe728225",
"name": "将搜索结果拆分为用户",
"type": "n8n-nodes-base.splitOut",
"position": [
-80,
208
],
"parameters": {
"options": {},
"fieldToSplitOut": "userList"
},
"typeVersion": 1
},
{
"id": "589d6871-c469-403a-adbc-f387eb07d007",
"name": "限制为 3 个用户(可选)",
"type": "n8n-nodes-base.limit",
"position": [
144,
208
],
"parameters": {},
"typeVersion": 1
},
{
"id": "986d014a-8c4e-40b5-9350-dc31e1529319",
"name": "遍历 TikTok 用户",
"type": "n8n-nodes-base.splitInBatches",
"position": [
368,
208
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "27944e93-66b9-4e2a-a6c7-2a0978cfe96d",
"name": "等待以遵守速率限制",
"type": "n8n-nodes-base.wait",
"position": [
624,
288
],
"webhookId": "492f8f72-27ad-4255-a5a6-d0cb928cc89a",
"parameters": {
"amount": 15
},
"typeVersion": 1.1
},
{
"id": "314fddf5-735e-43a2-bf2f-d2758d010640",
"name": "获取 TikTok 个人资料视频(Dumpling AI)",
"type": "n8n-nodes-base.httpRequest",
"position": [
816,
288
],
"parameters": {
"url": "https://app.dumplingai.com/api/v1/get-tiktok-profile-videos",
"method": "POST",
"options": {},
"sendBody": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "handle",
"value": "={{ $json.user.search_user_name }}"
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "RLFzAcGRepr5eXZB",
"name": "Dumpling AI-n8n"
}
},
"typeVersion": 4.2
},
{
"id": "fd4266b2-8de3-46ea-9d9c-699cdc4ed31d",
"name": "从个人资料中拆分视频",
"type": "n8n-nodes-base.splitOut",
"position": [
528,
-112
],
"parameters": {
"options": {},
"fieldToSplitOut": "aweme_list"
},
"typeVersion": 1
},
{
"id": "ae9dbbbe-6fed-4c34-ba8b-1923b39f5f66",
"name": "遍历视频",
"type": "n8n-nodes-base.splitInBatches",
"position": [
848,
-112
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "06fc76b0-85a2-4313-948d-50e46a2882b2",
"name": "获取每个视频的评论",
"type": "n8n-nodes-base.httpRequest",
"position": [
1040,
-64
],
"parameters": {
"url": "https://app.dumplingai.com/api/v1/get-tiktok-video-comments",
"method": "POST",
"options": {},
"sendBody": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "url",
"value": "={{ $json.share_info.share_url }}"
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "RLFzAcGRepr5eXZB",
"name": "Dumpling AI-n8n"
}
},
"typeVersion": 4.2
},
{
"id": "e8c9360a-2ea2-4814-90a8-691f4774a37c",
"name": "提取纯净评论(Python)",
"type": "n8n-nodes-base.code",
"position": [
1264,
-64
],
"parameters": {
"language": "python",
"pythonCode": "# n8n Python Code Node\n# Extract all TikTok comment texts and return them in one structured block under \"Comment\"\n\ncomments_list = []\n\ndef extract_texts(comments):\n for comment in comments:\n if \"text\" in comment and comment[\"text\"]:\n comments_list.append({\"text\": comment[\"text\"]})\n if \"reply_comment\" in comment and comment[\"reply_comment\"]:\n extract_texts(comment[\"reply_comment\"])\n\ndata = items[0].get(\"json\", {})\n\nif isinstance(data, list) and len(data) > 0 and \"comments\" in data[0]:\n extract_texts(data[0][\"comments\"])\nelif \"comments\" in data:\n extract_texts(data[\"comments\"])\n\nreturn [{\n \"json\": {\n \"Comment\": comments_list\n }\n}]\n"
},
"typeVersion": 2
},
{
"id": "2d41131b-a582-46ce-ae5a-167fdf213ec6",
"name": "查找热门观众问题(GPT-4)",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
1488,
-64
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1",
"cachedResultName": "GPT-4.1"
},
"options": {},
"messages": {
"values": [
{
"role": "system",
"content": "You are an experienced TikTok content strategist. I will give you a collection of comments from a TikTok video. Your job is to carefully read through all the comments and identify the most commonly asked questions. These questions should be phrased exactly or very closely to how viewers ask them, not reworded in a generic way.\n\nPlease follow these steps:\n\nRead all the comments carefully and group similar questions together, even if they are worded slightly differently.\n\nIdentify the top recurring questions that appear the most.\n\nPresent the top questions clearly and concisely, ranked by frequency.\n\nExclude spam, unrelated chatter, or emoji-only comments.\n\nDo not generate answers, only list the questions."
},
{
"content": "=Here is the comment data: {{ JSON.stringify($json.Comment) }}\n\n"
}
]
}
},
"credentials": {
"openAiApi": {
"id": "fdhWALG84tBLgSZT",
"name": "OpenAi account"
}
},
"typeVersion": 1.8
},
{
"id": "7dfc9bb9-8fbe-443d-abb5-5c8cafb17009",
"name": "将结果插入数据表",
"type": "n8n-nodes-base.dataTable",
"position": [
1840,
16
],
"parameters": {
"columns": {
"value": {
"Videos": "={{ $('Loop Through Videos').item.json.share_info.share_url }}",
"Keywords": "={{ $json.message.content }}"
},
"schema": [
{
"id": "Videos",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Videos",
"defaultMatch": false
},
{
"id": "Keywords",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Keywords",
"defaultMatch": false
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"dataTableId": {
"__rl": true,
"mode": "list",
"value": "2fPy6VQQ9KIeBIFC",
"cachedResultUrl": "/projects/BTzFLWjYjhwngt0G/datatables/2fPy6VQQ9KIeBIFC",
"cachedResultName": "Tik Tok Keywords"
}
},
"typeVersion": 1
},
{
"id": "f1dddf8a-5393-4a3c-a719-7a9b8977bea3",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-544,
-64
],
"parameters": {
"width": 1008,
"height": 512,
"content": "## 🔎 分支 1 – 搜索 TikTok 用户并获取视频"
},
"typeVersion": 1
},
{
"id": "1b1e9809-c98a-4bd6-a5e3-ab354330319b",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
560,
-464
],
"parameters": {
"color": 6,
"width": 1440,
"height": 576,
"content": "## 💬 分支 2 – 使用 AI 从评论中提取问题"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "4997fe2b-496d-446d-8f99-0c35d1b65b29",
"connections": {
"Loop Through Videos": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
],
[
{
"node": "Get Comments for Each Video",
"type": "main",
"index": 0
}
]
]
},
"Receive Keyword Input": {
"main": [
[
{
"node": "Search TikTok Users (Dumpling AI)",
"type": "main",
"index": 0
}
]
]
},
"Loop Through TikTok Users": {
"main": [
[
{
"node": "Split Videos from Profile",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait to Respect Rate Limits",
"type": "main",
"index": 0
}
]
]
},
"Split Videos from Profile": {
"main": [
[
{
"node": "Loop Through Videos",
"type": "main",
"index": 0
}
]
]
},
"Get Comments for Each Video": {
"main": [
[
{
"node": "Extract Clean Comments (Python)",
"type": "main",
"index": 0
}
]
]
},
"Limit to 3 Users (Optional)": {
"main": [
[
{
"node": "Loop Through TikTok Users",
"type": "main",
"index": 0
}
]
]
},
"Wait to Respect Rate Limits": {
"main": [
[
{
"node": "Get TikTok Profile Videos (Dumpling AI)",
"type": "main",
"index": 0
}
]
]
},
"Insert Result into DataTable": {
"main": [
[
{
"node": "Loop Through Videos",
"type": "main",
"index": 0
}
]
]
},
"Extract Clean Comments (Python)": {
"main": [
[
{
"node": "Find Top Viewer Questions (GPT-4)",
"type": "main",
"index": 0
}
]
]
},
"Split Search Results into Users": {
"main": [
[
{
"node": "Limit to 3 Users (Optional)",
"type": "main",
"index": 0
}
]
]
},
"Find Top Viewer Questions (GPT-4)": {
"main": [
[
{
"node": "Insert Result into DataTable",
"type": "main",
"index": 0
}
]
]
},
"Search TikTok Users (Dumpling AI)": {
"main": [
[
{
"node": "Split Search Results into Users",
"type": "main",
"index": 0
}
]
]
},
"Get TikTok Profile Videos (Dumpling AI)": {
"main": [
[
{
"node": "Loop Through TikTok Users",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用 Dumpling AI 和 Google 文档的表单转博客自动化
使用 Dumpling AI、OpenAI 和 Google 文档从关键词自动化博客创建
Code
Wait
Limit
+8
17 节点Yang
内容创作
使用 Dumpling AI 从表单自动生成电影级动物视频和声音
使用GPT-4、Dumpling AI和ElevenLabs音频将表单输入转换为电影级视频
Set
Code
Wait
+9
23 节点Yang
内容创作
使用Dumpling AI和GPT-4o生成YouTube视频创意
通过视频分析使用Dumpling AI和GPT-4o生成YouTube内容创意
Code
Wait
Gmail
+8
13 节点Yang
内容创作
使用GPT-5和fal.ai图像从关键词到WordPress自动化SEO博客流程
使用GPT-5和fal.ai图像从关键词到WordPress自动化SEO博客流程
Set
Code
Wait
+20
96 节点Paul
内容创作
使用GPT-4、Dumpling AI和Google Drive生成广告图片变体
使用GPT-4、Dumpling AI和Google Drive生成广告图片变体
Split Out
Form Trigger
Google Drive
+8
14 节点Yang
内容创作
使用 Dumpling AI、GPT-4 和 Captions.ai 将 TikTok 评论转化为 AI 头像视频
使用Dumpling AI、GPT-4和Captions.ai将TikTok评论转换为AI头像视频
If
Code
Wait
+7
16 节点Yang
内容创作