17 - Répondeur LinkedIn AI
Ceci est unMultimodal AIworkflow d'automatisation du domainecontenant 13 nœuds.Utilise principalement des nœuds comme If, Set, HttpRequest, GoogleSheets, ScheduleTrigger. Utiliser GPT-3.5 pour répondre automatiquement aux commentaires LinkedIn et suivre dans Google Sheets
- •Peut nécessiter les informations d'identification d'authentification de l'API cible
- •Informations d'identification Google Sheets API
- •Clé API OpenAI
Nœuds utilisés (13)
Catégorie
{
"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": "📥 Récupérer les commentaires 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": "📊 Définir le dernier horodatage",
"type": "n8n-nodes-base.set",
"position": [
1120,
220
],
"parameters": {
"options": {}
},
"typeVersion": 3.3
},
{
"id": "6d88d258-ff26-41df-814d-e237f1061dbc",
"name": "🔍 Filtrer les nouveaux commentaires",
"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": "🤖 Générer une réponse 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": "💬 Publier la réponse 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": "📋 Notes du workflow 2",
"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": "⏰ Exécution toutes les 10 minutes",
"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": "Note adhésive",
"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": "Note adhésive 1",
"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": "Note adhésive 2",
"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": "Note adhésive 3",
"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": "📊 Obtenir le dernier horodatage de commentaire",
"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": "💾 Stocker les données de commentaire",
"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
}
]
]
}
}
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Intermédiaire - IA Multimodale
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
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.
Partager ce workflow