Extraer comentarios de publicaciones de X

Intermedio

Este es unMarketingflujo de automatización del dominio deautomatización que contiene 7 nodos.Utiliza principalmente nodos como Set, Airtop, FormTrigger, ExecuteWorkflowTrigger. Usar automatización de navegador Airtop para extraer y estructurar comentarios en publicaciones de X

Requisitos previos
  • No hay requisitos previos especiales, puede importar y usarlo directamente

Categoría

Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "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": "Editar Campos",
      "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": "Extraer Comentarios de Publicación 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": "Al enviar formulario",
      "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": "Unificar parámetros",
      "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": "Cuando se Ejecuta por Otro Workflow",
      "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": "Nota Adhesiva4",
      "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": "Nota Adhesiva",
      "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
          }
        ]
      ]
    }
  }
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Intermedio - Marketing

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Información del flujo de trabajo
Nivel de dificultad
Intermedio
Número de nodos7
Categoría1
Tipos de nodos5
Descripción de la dificultad

Adecuado para usuarios con experiencia intermedia, flujos de trabajo de complejidad media con 6-15 nodos

Autor

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

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34