8
n8n 中文网amn8n.com

X - 线程中的响应

中级

这是一个AI, Marketing领域的自动化工作流,包含 11 个节点。主要使用 Set, Wait, Airtop, FormTrigger, ExecuteWorkflowTrigger 等节点,结合人工智能技术实现智能自动化。 使用Airtop浏览器自动化的X线程自动回复

前置要求
  • AI 服务 API Key(如 OpenAI、Anthropic 等)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "62A1O15JXFJXEhYH",
  "meta": {
    "instanceId": "28a947b92b197fc2524eaba16e57560338657b2b0b5796300b2f1cedc1d0d355",
    "templateCredsSetupCompleted": true
  },
  "name": "X - 线程中的响应",
  "tags": [],
  "nodes": [
    {
      "id": "87c5b743-acfe-4af6-8f35-2166a3e688cc",
      "name": "当被其他工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -260,
        -280
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "airtop_profile"
            },
            {
              "name": "thread_url"
            },
            {
              "name": "reply_text"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "84aecc2b-8edc-4488-b26c-113f50e86f0d",
      "name": "会话",
      "type": "n8n-nodes-base.airtop",
      "position": [
        180,
        -180
      ],
      "parameters": {
        "profileName": "={{ $('Parameters').item.json.airtop_profile }}"
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "9a5eb1d6-9a68-43ce-bd7c-a279ab6c12db",
      "name": "窗口",
      "type": "n8n-nodes-base.airtop",
      "position": [
        400,
        -280
      ],
      "parameters": {
        "url": "={{ $('Parameters').item.json.thread_url }}",
        "resource": "window",
        "sessionId": "={{ $('Session').item.json.sessionId }}",
        "getLiveView": true,
        "disableResize": true,
        "additionalFields": {
          "waitUntil": "complete"
        },
        "screenResolution": "1300x100"
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1e6bada8-3db1-488f-bacd-e1e6727099ef",
      "name": "输入响应",
      "type": "n8n-nodes-base.airtop",
      "position": [
        840,
        -280
      ],
      "parameters": {
        "text": "={{ $('Parameters').item.json.reply_text }}",
        "resource": "interaction",
        "windowId": "={{ $('Window').item.json.data.windowId }}",
        "operation": "type",
        "sessionId": "={{ $('Session').item.json.sessionId }}",
        "additionalFields": {
          "visualScope": "scan"
        },
        "elementDescription": "The input field labeled \"Post your reply\" located directly next to the \"Reply\" button"
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "406eb773-9f71-4adc-89d1-47f7e4add4ee",
      "name": "等待 8 秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        620,
        -280
      ],
      "webhookId": "03bcdb30-5811-4a9d-9e45-6ab8df7a06a1",
      "parameters": {
        "amount": 8
      },
      "typeVersion": 1.1
    },
    {
      "id": "136d7419-9445-481c-9d58-937eccdf8bc6",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -260,
        -80
      ],
      "webhookId": "959eabb9-4266-4f5c-94ea-38b56110a559",
      "parameters": {
        "options": {},
        "formTitle": "Reply to Thread",
        "formFields": {
          "values": [
            {
              "fieldLabel": "airtop_profile",
              "requiredField": true
            },
            {
              "fieldLabel": "thread_url",
              "requiredField": true
            },
            {
              "fieldLabel": "reply_text",
              "requiredField": true
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "dcdb51f4-2161-4bb6-b56b-4b901ccd7b37",
      "name": "参数",
      "type": "n8n-nodes-base.set",
      "position": [
        -40,
        -180
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "3069dadb-7312-4a34-bfee-cbc921893b8c",
              "name": "airtop_profile",
              "type": "string",
              "value": "={{ $json.airtop_profile }}"
            },
            {
              "id": "22160dd8-ac64-4f95-b946-0d0095607ccd",
              "name": "thread_url",
              "type": "string",
              "value": "={{ $json.thread_url }}"
            },
            {
              "id": "7bced294-83ff-40c7-ab6a-89c5ed759643",
              "name": "reply_text",
              "type": "string",
              "value": "={{ $json.reply_text }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "80652bee-1a09-4402-8aaf-61a32b78a4e8",
      "name": "点击回复按钮",
      "type": "n8n-nodes-base.airtop",
      "position": [
        1280,
        -280
      ],
      "parameters": {
        "resource": "interaction",
        "windowId": "={{ $('Window').item.json.windowId }}",
        "sessionId": "={{ $('Session').item.json.sessionId }}",
        "additionalFields": {
          "visualScope": "page"
        },
        "elementDescription": "Gray rounded button \"Reply\" located directly below the main tweet"
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b23a93df-c297-46b7-b926-21e35966c4ea",
      "name": "终止会话",
      "type": "n8n-nodes-base.airtop",
      "position": [
        400,
        -80
      ],
      "parameters": {
        "operation": "terminate"
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "6696dd4b-a13c-4104-9dcb-5e56919e25db",
      "name": "操作后截图",
      "type": "n8n-nodes-base.airtop",
      "position": [
        1060,
        -280
      ],
      "parameters": {
        "resource": "window",
        "operation": "takeScreenshot"
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "2b6bac96-0f02-4e55-ac54-0cf78e211cd7",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1000,
        -540
      ],
      "parameters": {
        "width": 660,
        "height": 800,
        "content": "README"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "00e92561-05c3-4ba2-a34f-8b042f71bfb1",
  "connections": {
    "Window": {
      "main": [
        [
          {
            "node": "Wait 8 secs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Session": {
      "main": [
        [
          {
            "node": "Window",
            "type": "main",
            "index": 0
          },
          {
            "node": "Terminate session",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parameters": {
      "main": [
        [
          {
            "node": "Session",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 8 secs": {
      "main": [
        [
          {
            "node": "Type response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Type response": {
      "main": [
        [
          {
            "node": "Post-action screenshot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Click Reply button": {
      "main": [
        []
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post-action screenshot": {
      "main": [
        [
          {
            "node": "Click Reply button",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能, 营销

需要付费吗?

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

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

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

作者

Airtop 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 查看

分享此工作流