17 - Respondedor de LinkedIn con IA

Intermedio

Este es unMultimodal AIflujo de automatización del dominio deautomatización que contiene 13 nodos.Utiliza principalmente nodos como If, Set, HttpRequest, GoogleSheets, ScheduleTrigger. Respuestas automáticas a comentarios de LinkedIn y seguimiento en Google Sheets con GPT-3.5

Requisitos previos
  • Pueden requerirse credenciales de autenticación para la API de destino
  • Credenciales de API de Google Sheets
  • Clave de API de OpenAI

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": "PUBLIC_LINKEDIN_WORKFLOW_ID",
  "meta": {
    "instanceId": "PUBLIC_TEMPLATE_INSTANCE",
    "templateCredsSetupCompleted": false
  },
  "name": "17 - AI LinkedIn Responder",
  "tags": [],
  "nodes": [
    {
      "id": "9760b272-ad71-47ec-aab8-51eb8b937bb7",
      "name": "📥 Obtener Comentarios de LinkedIn",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        900,
        320
      ],
      "parameters": {
        "url": "https://api.linkedin.com/v2/socialActions/urn:li:share:YOUR_POST_ID/comments",
        "options": {},
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_ACCESS_TOKEN"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "YOUR_HEADER_AUTH_CREDENTIAL_ID",
          "name": "LinkedIn Header Auth"
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "3a82041d-b02f-4431-97f2-c6760a96324e",
      "name": "📊 Establecer Última Marca de Tiempo",
      "type": "n8n-nodes-base.set",
      "position": [
        1120,
        220
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3.3
    },
    {
      "id": "6d88d258-ff26-41df-814d-e237f1061dbc",
      "name": "🔍 Filtrar Comentarios Nuevos",
      "type": "n8n-nodes-base.if",
      "position": [
        1340,
        220
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 1,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "comment-filter-condition",
              "operator": {
                "type": "dateTime",
                "operation": "after",
                "rightType": "manual"
              },
              "leftValue": "={{ $json.created.time }}",
              "rightValue": "={{ $node[\"📊 Set Last Timestamp\"].json.lastCommentTimestamp }}"
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "1e19adac-640f-4583-bc80-e9a4e4c8210a",
      "name": "🤖 Generar Respuesta con IA",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1560,
        220
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-3.5-turbo",
          "cachedResultName": "GPT-3.5-TURBO"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "You are a helpful social media manager. Generate a professional and engaging reply to the following LinkedIn comment. Keep it concise, positive, and appropriate for business networking.\n\nOriginal comment: {{ $json.message.text }}\n\nReply should be:\n- Professional but friendly\n- Maximum 2-3 sentences\n- Thank the commenter or acknowledge their input\n- Add value or continue the conversation naturally"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "YOUR_OPENAI_CREDENTIAL_ID",
          "name": "OpenAI API Credentials"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "abe4892d-9908-4794-ae53-befbdaaacf75",
      "name": "💬 Publicar Respuesta en LinkedIn",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1940,
        220
      ],
      "parameters": {
        "url": "=https://api.linkedin.com/v2/socialActions/{{ $json.id }}/comments",
        "options": {},
        "jsonBody": "={\n  \"actor\": \"urn:li:person:YOUR_ACTOR_URN\",\n  \"message\": {\n    \"text\": \"{{ $node[\"🤖 Generate AI Reply\"].json.response }}\"\n  }\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_ACCESS_TOKEN"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "dcaef8a6-4d04-4eac-b01b-f03984556e34",
      "name": "📋 Notas del Flujo de Trabajo2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        620,
        -200
      ],
      "parameters": {
        "color": 5,
        "width": 440,
        "height": 740,
        "content": "## Nodes Covered: LinkedIn API, Scheduling, Google Sheet\n\n📅 Note:\n\nAUTOMATED LINKEDIN COMMENT MONITORING\n\n*Fetches comments from a specific LinkedIn post every 10 minutes using LinkedIn's API. It authenticates via header-based token access and ensures updated responses by scheduling regular runs.*\n\n*And also reads timestamps of the comments from the sheet*"
      },
      "typeVersion": 1
    },
    {
      "id": "226eb70b-6529-48fe-9c60-872eb15a59e4",
      "name": "⏰ Se Ejecuta Cada 10 Min",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        680,
        220
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 10
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "65caa63a-15c2-4ff1-9917-ff5e6f0789d2",
      "name": "Nota Adhesiva",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        -200
      ],
      "parameters": {
        "width": 420,
        "height": 740,
        "content": "## Nodes Covered: Data Filtering\n\n📊 Note:\n\nDYNAMIC COMMENT FILTERING\n\n*Retrieves the timestamp of the last processed comment from a Google Sheet, and filters out already-handled entries to focus only on newly received comments.*"
      },
      "typeVersion": 1
    },
    {
      "id": "d30d1fda-a75d-4017-bec8-8eb02541be05",
      "name": "Nota Adhesiva1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1520,
        -200
      ],
      "parameters": {
        "color": 3,
        "width": 340,
        "height": 740,
        "content": "## Nodes Covered: OpenAI Analysis\n\n🧠 Note:\n\nAI-GENERATED LINKEDIN ENGAGEMENT\n\n*Uses OpenAI (GPT-3.5 Turbo) to generate friendly and professional replies to new LinkedIn comments. Prompts are structured to ensure tone, brevity, and contextual relevance for networking.*"
      },
      "typeVersion": 1
    },
    {
      "id": "5885c2a3-43db-4184-af9b-759ba9d7cc99",
      "name": "Nota Adhesiva2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1880,
        -200
      ],
      "parameters": {
        "color": 4,
        "width": 220,
        "height": 740,
        "content": "## Nodes Covered: LinkedIn API, AI Output Delivery\n\n💬 Note:\n\nAUTOMATED COMMENT REPLY POSTING\n\n*Takes AI-generated replies and posts them back to LinkedIn as responses under the original comment thread, maintaining the actor identity and message formatting.*\n"
      },
      "typeVersion": 1
    },
    {
      "id": "c50f65cb-00d1-40e4-b5a0-5640c25edb79",
      "name": "Nota Adhesiva3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2120,
        -200
      ],
      "parameters": {
        "color": 6,
        "width": 220,
        "height": 740,
        "content": "## Nodes Covered: Google Sheets (Write)\n\n💾 Note:\n\nCOMMENT DATA ARCHIVAL\n\n*Appends processed LinkedIn comments and associated metadata into a structured Google Sheet for tracking, review, or future analytics.*"
      },
      "typeVersion": 1
    },
    {
      "id": "6c6ccc12-0678-4cec-9257-97a9b1c67022",
      "name": "📊 Obtener Última Marca de Tiempo de Comentario",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        900,
        140
      ],
      "parameters": {
        "options": {},
        "sheetName": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_SHEET_NAME_OR_GID"
        },
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_GOOGLE_SHEET_DOCUMENT_ID"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "YOUR_GOOGLE_SHEETS_CREDENTIAL_ID",
          "name": "Google Sheets OAuth2 API"
        }
      },
      "typeVersion": 4.4
    },
    {
      "id": "93407535-d411-4407-800c-df6930304cb3",
      "name": "💾 Almacenar Datos de Comentario",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2160,
        220
      ],
      "parameters": {
        "columns": {
          "value": {},
          "schema": [],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_SHEET_NAME_OR_GID"
        },
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_GOOGLE_SHEET_DOCUMENT_ID"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "YOUR_GOOGLE_SHEETS_CREDENTIAL_ID",
          "name": "Google Sheets OAuth2 API"
        }
      },
      "typeVersion": 4.4
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "PUBLIC_VERSION_ID",
  "connections": {
    "226eb70b-6529-48fe-9c60-872eb15a59e4": {
      "main": [
        [
          {
            "node": "9760b272-ad71-47ec-aab8-51eb8b937bb7",
            "type": "main",
            "index": 0
          },
          {
            "node": "6c6ccc12-0678-4cec-9257-97a9b1c67022",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1e19adac-640f-4583-bc80-e9a4e4c8210a": {
      "main": [
        [
          {
            "node": "abe4892d-9908-4794-ae53-befbdaaacf75",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3a82041d-b02f-4431-97f2-c6760a96324e": {
      "main": [
        [
          {
            "node": "6d88d258-ff26-41df-814d-e237f1061dbc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "abe4892d-9908-4794-ae53-befbdaaacf75": {
      "main": [
        [
          {
            "node": "93407535-d411-4407-800c-df6930304cb3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6d88d258-ff26-41df-814d-e237f1061dbc": {
      "main": [
        [
          {
            "node": "1e19adac-640f-4583-bc80-e9a4e4c8210a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9760b272-ad71-47ec-aab8-51eb8b937bb7": {
      "main": [
        [
          {
            "node": "3a82041d-b02f-4431-97f2-c6760a96324e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6c6ccc12-0678-4cec-9257-97a9b1c67022": {
      "main": [
        [
          {
            "node": "3a82041d-b02f-4431-97f2-c6760a96324e",
            "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 - 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
Intermedio
Número de nodos13
Categoría1
Tipos de nodos7
Descripción de la dificultad

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

Autor
Avkash Kakdiya

Avkash Kakdiya

@itechnotion

🚀 Founder of iTechNotion — we build custom AI-powered automation workflows for startups, agencies, and founders. 💡 Specializing in agentic AI systems, content automation, sales funnels, and digital workers. 🔧 14+ years in tech | Building scalable no-code/low-code solutions using n8n, OpenAI, and other API-first tools. 📬 Let’s automate what slows you down.

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34