X(旧Twitter)のポストからコメントを抽出

中級

これはMarketing分野の自動化ワークフローで、7個のノードを含みます。主にSet, Airtop, FormTrigger, ExecuteWorkflowTriggerなどのノードを使用。 Airtopブラウザ・オートメーションを使用してXの投稿コメントを抽出・構造化

前提条件
  • 特別な前提条件なし、インポートしてすぐに使用可能

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "H2dcncE2ycWUMZkR",
  "meta": {
    "instanceId": "28a947b92b197fc2524eaba16e57560338657b2b0b5796300b2f1cedc1d0d355",
    "templateCredsSetupCompleted": true
  },
  "name": "Extract X Post Comments",
  "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": "## Input Parameters\nRun this workflow using a form or from another workflow"
      },
      "typeVersion": 1
    },
    {
      "id": "543a0f9e-55ae-42d4-b6f3-63052c675f56",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1080,
        -540
      ],
      "parameters": {
        "width": 700,
        "height": 960,
        "content": "README\n# Extracting Comments from an X Post\n\n## Use Case\nEngaging with conversations on X (formerly Twitter) is critical for brands and individuals monitoring sentiment, leads, or emerging trends. Manually collecting comments is time-consuming—this automation enables scalable extraction of comment data to inform your outreach or analysis.\n\n## What This Automation Does\nThis automation extracts comments from a specified X post, with the following input parameters:\n\n- **`airtop_profile`**: The name of your [Airtop Profile](https://portal.airtop.ai/browser-profiles) connected to X.\n- **`x_post_url`**: The URL of the X post to extract comments from.\n- **`max_number_of_comments`**: The maximum number of comments to retrieve.\n\n## How It Works\n1. Takes input via a form or another workflow.\n2. Normalizes the input values.\n3. Creates a new browser session using Airtop.\n4. Navigates to the provided X post.\n5. Uses a prompt to extract up to the specified number of comments, returning:\n   - Author name\n   - Author profile URL\n   - Comment text\n\n## Setup Requirements\n1. [Airtop API Key](https://portal.airtop.ai/api-keys) — free to generate.\n2. An [Airtop Profile](https://portal.airtop.ai/browser-profiles) connected to X (requires one-time login).\n\n## Next Steps\n- **Pair with X Monitoring**: Use this with the [X monitoring automation](https://www.airtop.ai/blog/automating-x-monitoring-with-airtop-and-make) to detect relevant posts and extract discussion context automatically.\n- **Feed into Analytics**: Combine with summarization or sentiment analysis tools to understand audience response at scale.\n- **Export for CRM/BI**: Pipe the structured comment data into your CRM or business intelligence stack for lead tracking or reporting.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1ac46447-4e57-40e0-b873-e969196bab1d",
  "connections": {
    "0bd8e64e-8de4-492e-b7ba-beb4b2190f15": {
      "main": [
        [
          {
            "node": "c3e20b9d-9d46-4c19-841c-667ac657c263",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "59c05430-1bea-49c6-b320-ad58611e48e0": {
      "main": [
        [
          {
            "node": "0bd8e64e-8de4-492e-b7ba-beb4b2190f15",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c3e20b9d-9d46-4c19-841c-667ac657c263": {
      "main": [
        [
          {
            "node": "505ad6cb-0c11-4272-a13d-01f64d2e82e5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7837359e-7ee6-49d0-b292-948e4c4d0ba6": {
      "main": [
        [
          {
            "node": "0bd8e64e-8de4-492e-b7ba-beb4b2190f15",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - マーケティング

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
中級
ノード数7
カテゴリー1
ノードタイプ5
難易度説明

経験者向け、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で表示

このワークフローを共有

カテゴリー

カテゴリー: 34