提取X帖子评论
中级
这是一个Marketing领域的自动化工作流,包含 7 个节点。主要使用 Set, Airtop, FormTrigger, ExecuteWorkflowTrigger 等节点。 使用Airtop浏览器自动化提取并结构化X帖子评论
前置要求
- •无特殊前置要求,导入即可使用
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "H2dcncE2ycWUMZkR",
"meta": {
"instanceId": "28a947b92b197fc2524eaba16e57560338657b2b0b5796300b2f1cedc1d0d355",
"templateCredsSetupCompleted": true
},
"name": "提取 X 帖子评论",
"tags": [
{
"id": "gNiDOCnjqCXR7phD",
"name": "Marketing",
"createdAt": "2025-04-15T01:08:25.516Z",
"updatedAt": "2025-04-15T01:08:25.516Z"
}
],
"nodes": [
{
"id": "505ad6cb-0c11-4272-a13d-01f64d2e82e5",
"name": "编辑字段",
"type": "n8n-nodes-base.set",
"position": [
420,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "45120659-ed42-40a3-9c6a-545db1028a7a",
"name": "data.modelResponse",
"type": "object",
"value": "={{ $json.data.modelResponse }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "c3e20b9d-9d46-4c19-841c-667ac657c263",
"name": "提取 X 帖子评论",
"type": "n8n-nodes-base.airtop",
"position": [
220,
0
],
"parameters": {
"url": "={{ $json.x_post_url }}",
"prompt": "=This is an x post. Extract up to {{ $json.max_number_of_comments }} comments to the post. For each comment extract the name of the author, the x profile URL of the author, and the text of the comment. ",
"resource": "extraction",
"profileName": "={{ $json.airtop_profile }}",
"sessionMode": "new",
"additionalFields": {
"outputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"comments\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"author_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the author of the comment\"\n },\n \"author_profile_url\": {\n \"type\": \"string\",\n \"description\": \"The X profile URL of the author\"\n },\n \"comment_text\": {\n \"type\": \"string\",\n \"description\": \"The text content of the comment\"\n }\n },\n \"required\": [\n \"author_name\",\n \"author_profile_url\",\n \"comment_text\"\n ],\n \"additionalProperties\": false\n },\n \"description\": \"A list of comments extracted from the X post, with each comment containing the author's name, profile URL, and text.\"\n }\n },\n \"required\": [\n \"comments\"\n ],\n \"additionalProperties\": false,\n \"$schema\": \"http://json-schema.org/draft-07/schema#\"\n}",
"paginationMode": "infinite-scroll"
}
},
"credentials": {
"airtopApi": {
"id": "Yi4YPNnovLVUjFn5",
"name": "Airtop Official Org"
}
},
"typeVersion": 1
},
{
"id": "59c05430-1bea-49c6-b320-ad58611e48e0",
"name": "表单提交时",
"type": "n8n-nodes-base.formTrigger",
"position": [
-280,
-100
],
"webhookId": "2d5e3676-5284-4da1-bdf5-34f92d8d435f",
"parameters": {
"options": {},
"formTitle": "Extract comments from a specific post on X",
"formFields": {
"values": [
{
"fieldLabel": "X Post URL",
"placeholder": "https://x.com/levikwelch/status/1923467917997334537",
"requiredField": true
},
{
"fieldLabel": "Airtop Profile (connected to X)",
"requiredField": true
},
{
"fieldType": "number",
"fieldLabel": "Max number of comments",
"placeholder": "10"
}
]
},
"formDescription": "=This automation takes X post URL and Airtop Profile (authenticated for X) and returns the list of comments made on the post"
},
"typeVersion": 2.2
},
{
"id": "0bd8e64e-8de4-492e-b7ba-beb4b2190f15",
"name": "统一参数",
"type": "n8n-nodes-base.set",
"position": [
-60,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "f071e020-6701-4ef3-8f32-db59d68206c8",
"name": "x_post_url",
"type": "string",
"value": "={{ $json[\"X Post URL\"] || $json.x_post_url }}"
},
{
"id": "571ddf88-a16a-4a5a-ba4b-c5d06dd92334",
"name": "airtop_profile",
"type": "string",
"value": "={{ $json[\"Airtop Profile (connected to X)\"] || $json.airtop_profile }}"
},
{
"id": "fd9acf61-4a8d-4bcf-842b-0468c4df6c55",
"name": "max_number_of_comments",
"type": "number",
"value": "={{ $json['Max number of comments'] || $json.max_number_of_comments }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "7837359e-7ee6-49d0-b292-948e4c4d0ba6",
"name": "当由另一个工作流执行时",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-280,
100
],
"parameters": {
"workflowInputs": {
"values": [
{
"name": "x_post_url"
},
{
"name": "airtop_profile"
},
{
"name": "max_number_of_comments",
"type": "number"
}
]
}
},
"typeVersion": 1.1
},
{
"id": "1a6ce30d-04d4-4608-a2f9-00fc6ed0493d",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
-200
],
"parameters": {
"width": 400,
"height": 460,
"content": "## 输入参数"
},
"typeVersion": 1
},
{
"id": "543a0f9e-55ae-42d4-b6f3-63052c675f56",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1080,
-540
],
"parameters": {
"width": 700,
"height": 960,
"content": "README"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "1ac46447-4e57-40e0-b873-e969196bab1d",
"connections": {
"Unify params": {
"main": [
[
{
"node": "Extract X Post Comments",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "Unify params",
"type": "main",
"index": 0
}
]
]
},
"Extract X Post Comments": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Unify params",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
X - 线程中的响应
使用Airtop浏览器自动化的X线程自动回复
Set
Wait
Airtop
+3
11 节点Airtop
人工智能
LinkedIn帖子互动数据提取器 - 模板
使用Airtop提取LinkedIn帖子互动数据
Set
Code
Airtop
+3
7 节点Airtop
营销
提取LinkedIn个人资料信息
使用Airtop和AI解析提取结构化LinkedIn个人资料数据
Set
Airtop
Form Trigger
+2
6 节点Airtop
销售
个人 ICP 评分与 LinkedIn
使用 Airtop 评估 LinkedIn 个人资料与理想客户画像匹配度
Set
Airtop
Form Trigger
+2
8 节点Airtop
产品
网站抓取器
基于Airtop的LLM网站抓取器
If
Set
Code
+6
24 节点Airtop
营销
监控X
使用Airtop进行X帖子实时监控与自动分类
Set
Code
Airtop
+3
9 节点Airtop
营销
工作流信息
难度等级
中级
节点数量7
分类1
节点类型5
作者
Airtop
@cesar-at-airtopAirtop provides an intelligent browser automation API for AI agents, enabling seamless web interaction, including login, navigation, and data extraction from any site, even those with complex authentication - all with natural language instructions.In simple terms, we allow you to automate anything humans can do online, on any site with just words
外部链接
在 n8n.io 查看 →
分享此工作流