Extracción y filtrado de publicaciones y comentarios de Reddit mediante búsqueda por palabras clave y formato Markdown

Avanzado

Este es unContent Creation, Multimodal AIflujo de automatización del dominio deautomatización que contiene 28 nodos.Utiliza principalmente nodos como If, Set, Code, Sort, Limit. Extraer y filtrar publicaciones y comentarios de Reddit mediante búsqueda por palabras clave y formato Markdown

Requisitos previos
  • Punto final de HTTP Webhook (n8n generará automáticamente)
  • Pueden requerirse credenciales de autenticación para la API de destino
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
{
  "meta": {
    "instanceId": "b6be3264d10563f53f60f119665bef14019561878be2f73c07ebd4200e9255cf"
  },
  "nodes": [
    {
      "id": "5496b8fe-32be-493c-a2ae-fad6d361014f",
      "name": "Recorrer elementos1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1504,
        448
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "59247686-2eda-4469-9d68-0b1f8d52a12e",
      "name": "Establecer Reddit Posts",
      "type": "n8n-nodes-base.set",
      "position": [
        -1696,
        80
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "63275ce4-a50f-4e00-91d4-bb51e3df36cb",
      "name": "Limitar",
      "type": "n8n-nodes-base.limit",
      "position": [
        -1824,
        448
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "33804ada-8577-4b83-83a0-b74f91104aee",
      "name": "Nota adhesiva",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3392,
        -288
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "684a2d18-25a9-4f34-bb29-b9d46c4b28a5",
      "name": "reddit tool",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -2752,
        896
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "cb8d6327-88e7-4cb9-acfb-84605f13a821",
      "name": "reddit tool webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2448,
        80
      ],
      "webhookId": "c09463b8-3516-4923-b9aa-0b066f129113",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "4ec37d5e-ef00-44ef-8c6b-6d6fd5e2cbd8",
      "name": "Establecer keywords",
      "type": "n8n-nodes-base.set",
      "position": [
        -2256,
        80
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "9175f95b-f5e2-489a-861c-7949d2db285c",
      "name": "Posted in Last x days",
      "type": "n8n-nodes-base.code",
      "position": [
        -1472,
        80
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6b7470b4-65aa-4f2c-a008-ed6eef7ba397",
      "name": "Nota adhesiva1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1520,
        -48
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "263183fe-7b02-4ff1-956d-28bfa15f6d6f",
      "name": "Nota adhesiva2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1248,
        -48
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0c45491f-4b76-40f0-8410-d551d2621587",
      "name": "Upvotes Requirement Filtraring",
      "type": "n8n-nodes-base.if",
      "position": [
        -1200,
        80
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e1d390d1-29e3-4d31-acae-c4c9bc91e38c",
      "name": "Eliminar duplicados",
      "type": "n8n-nodes-base.code",
      "position": [
        -944,
        64
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "13b76f3c-e990-4fbf-886c-a0b2005a8b86",
      "name": "Nota adhesiva3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1936,
        352
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b777993a-f03e-4ba4-a813-43802abc1715",
      "name": "Ordenar by upvotes (descending)",
      "type": "n8n-nodes-base.sort",
      "position": [
        -752,
        64
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a46e9767-a252-4e39-8310-856656f5934f",
      "name": "Establecer post for Loop",
      "type": "n8n-nodes-base.set",
      "position": [
        -1280,
        432
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "3a50e4ad-90c6-4612-a9d5-ee826eaa68c7",
      "name": "Get Comments",
      "type": "n8n-nodes-base.reddit",
      "onError": "continueRegularOutput",
      "position": [
        -1104,
        432
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "5bc159c0-bcd8-4d4c-ba1a-17483eaf7585",
      "name": "Format Comments",
      "type": "n8n-nodes-base.code",
      "position": [
        -752,
        432
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "d7c820da-8e61-4237-8efb-96990900b4fe",
      "name": "Respond to Disparador Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -832,
        768
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "36aa471a-8f26-4b89-b372-3ba090616a64",
      "name": "Establecer Final Report",
      "type": "n8n-nodes-base.set",
      "position": [
        -528,
        432
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "734f851c-f2ff-49f9-9ea0-0999eb0ebe68",
      "name": "Combine Posts",
      "type": "n8n-nodes-base.code",
      "position": [
        -1072,
        768
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "dc9b994c-58cc-4280-8afb-9196d57005a4",
      "name": "Agregar",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -1264,
        768
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 1
    },
    {
      "id": "187745d9-4901-44a3-825d-ccf46a4bd62f",
      "name": "reddit tool webhook subreddit",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2448,
        -128
      ],
      "webhookId": "c09463b8-3516-4923-b9aa-0b066f129113",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "2ac6a250-45cc-45ac-8ac0-a2fcb80f79aa",
      "name": "Establecer subreddit",
      "type": "n8n-nodes-base.set",
      "position": [
        -2256,
        -128
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "ef67aa90-01e2-4ff4-a8ef-f2ebd1803be7",
      "name": "Get posts from subreddit",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -1984,
        -128
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8aea3692-5840-4aeb-a89c-5c466c1f4b4d",
      "name": "Search for posts by keywords",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -1984,
        80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "932c4490-dfa4-493e-b0c2-dc7bc089d3c8",
      "name": "reddit tool http request (for subreddit)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -3312,
        880
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5f9f3c5b-8632-40bd-94cf-5275f1664145",
      "name": "reddit tool http request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -3040,
        896
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b3ee3ffa-9392-45d6-8e84-dd2b1e5f0184",
      "name": "Extract Top 20 Comments",
      "type": "n8n-nodes-base.code",
      "position": [
        -944,
        432
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2
    }
  ],
  "pinData": {},
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "734f851c-f2ff-49f9-9ea0-0999eb0ebe68",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3a50e4ad-90c6-4612-a9d5-ee826eaa68c7": {
      "main": [
        [
          {
            "node": "b3ee3ffa-9392-45d6-8e84-dd2b1e5f0184",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set keywords": {
      "main": [
        [
          {
            "node": "8aea3692-5840-4aeb-a89c-5c466c1f4b4d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "734f851c-f2ff-49f9-9ea0-0999eb0ebe68": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set subreddit": {
      "main": [
        [
          {
            "node": "ef67aa90-01e2-4ff4-a8ef-f2ebd1803be7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5bc159c0-bcd8-4d4c-ba1a-17483eaf7585": {
      "main": [
        [
          {
            "node": "Set Final Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set post for Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Final Report": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Reddit Posts": {
      "main": [
        [
          {
            "node": "9175f95b-f5e2-489a-861c-7949d2db285c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Sort by upvotes (descending)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set post for Loop": {
      "main": [
        [
          {
            "node": "3a50e4ad-90c6-4612-a9d5-ee826eaa68c7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "cb8d6327-88e7-4cb9-acfb-84605f13a821": {
      "main": [
        [
          {
            "node": "Set keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9175f95b-f5e2-489a-861c-7949d2db285c": {
      "main": [
        [
          {
            "node": "Upvotes Requirement Filtering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b3ee3ffa-9392-45d6-8e84-dd2b1e5f0184": {
      "main": [
        [
          {
            "node": "5bc159c0-bcd8-4d4c-ba1a-17483eaf7585",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ef67aa90-01e2-4ff4-a8ef-f2ebd1803be7": {
      "main": [
        [
          {
            "node": "Set Reddit Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8aea3692-5840-4aeb-a89c-5c466c1f4b4d": {
      "main": [
        [
          {
            "node": "Set Reddit Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sort by upvotes (descending)": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upvotes Requirement Filtering": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "187745d9-4901-44a3-825d-ccf46a4bd62f": {
      "main": [
        [
          {
            "node": "Set subreddit",
            "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?

Avanzado - Creación de contenido, IA Multimodal

¿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
Avanzado
Número de nodos28
Categoría2
Tipos de nodos13
Descripción de la dificultad

Adecuado para usuarios avanzados, flujos de trabajo complejos con 16+ nodos

Autor
Muhammad Asadullah

Muhammad Asadullah

@asadtech

I am a Data Scientist, and Generative AI Developer with expertise in building AI applications, chatbots, and automation systems. Skilled in Python, R, and no-code/low-code platforms like n8n and Make, I combine strong technical knowledge in machine learning and NLP with hands-on experience in power systems, transformers, and solar design.

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34