Machine à contenu LinkedIn

Intermédiaire

Ceci est unSocial Media, Multimodal AIworkflow d'automatisation du domainecontenant 14 nœuds.Utilise principalement des nœuds comme Form, Merge, Slack, OpenAi, Twitter. Génération et planification de publications pour X et LinkedIn en utilisant Gemini/OpenAI

Prérequis
  • Token Bot Slack ou URL Webhook
  • Clé API OpenAI
  • Informations d'identification Twitter API
  • Informations d'identification LinkedIn API
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
  • Informations d'identification Google Sheets API
  • Clé API Google Gemini
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "2MkrpeTUd7VHfSS9",
  "meta": {
    "instanceId": "e6142c3f5e31c23fb05dc2061d25cd2a74cf8639c4bc5152accf8c08b0d8f6ea"
  },
  "name": "Linkedin content machine",
  "tags": [],
  "nodes": [
    {
      "id": "5b1cc120-3c02-46b4-bfc7-bdc9e9ae363d",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -980,
        80
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-2.0-flash"
      },
      "typeVersion": 1
    },
    {
      "id": "b7447847-28bc-4ee3-9518-46dc3210268b",
      "name": "Recevoir le titre de la publication",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1180,
        -140
      ],
      "webhookId": "4d921ee9-7668-4133-8750-4e35f9fc2353",
      "parameters": {
        "options": {},
        "formTitle": "post",
        "formFields": {
          "values": [
            {
              "fieldLabel": "post title"
            }
          ]
        },
        "authentication": "basicAuth",
        "formDescription": "post"
      },
      "typeVersion": 2.2
    },
    {
      "id": "9b52651d-ab43-429a-9176-56ed29afee35",
      "name": "Générer du contenu IA",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -980,
        -140
      ],
      "parameters": {
        "text": "=\nwrite min 50 word about this topic '{{ $json[\"post title\"] }}'\nfor Linkedin and X platform separately",
        "options": {},
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.7
    },
    {
      "id": "f363dad1-532e-423d-b0ff-1f4ffa48dd9e",
      "name": "Formater la sortie IA",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -820,
        120
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"event_name\": {\n      \"type\": \"string\"\n    },\n    \"event_description\": {\n      \"type\": \"string\"\n    },\n    \"platform_posts\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"LinkedIn\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"post\": {\n              \"type\": \"string\"\n            },\n            \"hashtags\": {\n              \"type\": \"array\",\n              \"items\": {\n                \"type\": \"string\"\n              }\n            },\n            \"call_to_action\": {\n              \"type\": \"string\"\n            }\n          }\n        },\n        \"Twitter\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"post\": {\n              \"type\": \"string\"\n            },\n            \"hashtags\": {\n              \"type\": \"array\",\n              \"items\": {\n                \"type\": \"string\"\n              }\n            },\n            \"character_limit\": {\n              \"type\": \"integer\"\n            }\n          }\n        }\n      }\n    },\n    \"additional_notes\": {\n      \"type\": \"string\"\n    }\n  }\n}"
      },
      "typeVersion": 1.2
    },
    {
      "id": "e8fd6a4f-9448-4c76-96b0-895d6fc0b30c",
      "name": "Publier sur X",
      "type": "n8n-nodes-base.twitter",
      "position": [
        -600,
        -240
      ],
      "parameters": {
        "text": "={{ $json.output.platform_posts.Twitter.post }}",
        "additionalFields": {}
      },
      "typeVersion": 2
    },
    {
      "id": "2f73b732-c9db-4ee8-8d58-38c4cbb562ec",
      "name": "Publier sur LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        -600,
        -20
      ],
      "parameters": {
        "text": "={{ $json.output.platform_posts.LinkedIn.post }}",
        "person": "-HtNhNKSsE",
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "14220250-98e1-4c4e-84d8-8dedc9dc3532",
      "name": "Ajouter les réponses de publication Linkedin et X",
      "type": "n8n-nodes-base.merge",
      "position": [
        -320,
        -120
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineAll"
      },
      "typeVersion": 3
    },
    {
      "id": "351351dd-da19-421c-8a94-dc7687a05097",
      "name": "Afficher la confirmation",
      "type": "n8n-nodes-base.form",
      "position": [
        -100,
        -120
      ],
      "webhookId": "9c0b2419-aff6-40dd-95f7-5dfd0a88d46c",
      "parameters": {
        "options": {},
        "operation": "completion",
        "completionTitle": "Your post has been successfully shared",
        "completionMessage": "=🔗 View your posts:\n\nX (Twitter): \n[https://x.com/x/status/{{ $json.id }}]\n\nLinkedIn:\n[https://www.linkedin.com/feed/update/{{ $json.urn }}]"
      },
      "typeVersion": 1
    },
    {
      "id": "2a1b857a-cc59-4662-806b-d74d0416d2e5",
      "name": "Déclencheur de planification",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1120,
        520
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "38e09681-ab07-4479-b5fb-b66af78f72d8",
      "name": "Récupérer les publications LinkedIn",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -880,
        520
      ],
      "parameters": {
        "url": "https://api.apify.com/v2/actor-tasks/your-task-id/runs/last/dataset/items?token=YOUR_APIFY_TOKEN",
        "options": {},
        "jsonParameters": true
      },
      "typeVersion": 1
    },
    {
      "id": "9d9af28f-82d8-484d-a4da-b24076861b90",
      "name": "Filtrer les publications à fort engagement",
      "type": "n8n-nodes-base.function",
      "position": [
        -660,
        520
      ],
      "parameters": {
        "functionCode": "return items.filter(item => item.json.engagement && item.json.engagement.likes > 10);"
      },
      "typeVersion": 1
    },
    {
      "id": "108bf9c2-cbed-4d38-b9ce-8a88bab7f782",
      "name": "Générer des idées de publication (OpenAI)",
      "type": "n8n-nodes-base.openAi",
      "position": [
        -460,
        520
      ],
      "parameters": {
        "model": "gpt-4o-mini",
        "options": {},
        "requestOptions": {}
      },
      "typeVersion": 1
    },
    {
      "id": "9acab2bf-974f-432c-8dd0-3fcd78bd5f31",
      "name": "Sauvegarder les brouillons dans Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -260,
        520
      ],
      "parameters": {
        "range": "Sheet1!A:B",
        "options": {},
        "sheetId": "YOUR_GOOGLE_SHEET_ID",
        "operation": "append"
      },
      "typeVersion": 1
    },
    {
      "id": "9326e33a-24d1-4b49-bb60-fa40fefaf0b9",
      "name": "Notifier le réviseur (Slack)",
      "type": "n8n-nodes-base.slack",
      "position": [
        -60,
        520
      ],
      "parameters": {
        "text": "New LinkedIn post ideas are ready for review:\n\n{{$json[\"choices\"][0].message.content}}",
        "channel": "YOUR_SLACK_CHANNEL",
        "attachments": [],
        "otherOptions": {}
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "d8bd4e59-84a9-4e7d-bdae-557a8056ad95",
  "connections": {
    "e8fd6a4f-9448-4c76-96b0-895d6fc0b30c": {
      "main": [
        [
          {
            "node": "14220250-98e1-4c4e-84d8-8dedc9dc3532",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f363dad1-532e-423d-b0ff-1f4ffa48dd9e": {
      "ai_outputParser": [
        [
          {
            "node": "9b52651d-ab43-429a-9176-56ed29afee35",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "2f73b732-c9db-4ee8-8d58-38c4cbb562ec": {
      "main": [
        [
          {
            "node": "14220250-98e1-4c4e-84d8-8dedc9dc3532",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "2a1b857a-cc59-4662-806b-d74d0416d2e5": {
      "main": [
        [
          {
            "node": "38e09681-ab07-4479-b5fb-b66af78f72d8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b7447847-28bc-4ee3-9518-46dc3210268b": {
      "main": [
        [
          {
            "node": "9b52651d-ab43-429a-9176-56ed29afee35",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9b52651d-ab43-429a-9176-56ed29afee35": {
      "main": [
        [
          {
            "node": "e8fd6a4f-9448-4c76-96b0-895d6fc0b30c",
            "type": "main",
            "index": 0
          },
          {
            "node": "2f73b732-c9db-4ee8-8d58-38c4cbb562ec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "38e09681-ab07-4479-b5fb-b66af78f72d8": {
      "main": [
        [
          {
            "node": "9d9af28f-82d8-484d-a4da-b24076861b90",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5b1cc120-3c02-46b4-bfc7-bdc9e9ae363d": {
      "ai_languageModel": [
        [
          {
            "node": "9b52651d-ab43-429a-9176-56ed29afee35",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "9d9af28f-82d8-484d-a4da-b24076861b90": {
      "main": [
        [
          {
            "node": "108bf9c2-cbed-4d38-b9ce-8a88bab7f782",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "108bf9c2-cbed-4d38-b9ce-8a88bab7f782": {
      "main": [
        [
          {
            "node": "9acab2bf-974f-432c-8dd0-3fcd78bd5f31",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9acab2bf-974f-432c-8dd0-3fcd78bd5f31": {
      "main": [
        [
          {
            "node": "9326e33a-24d1-4b49-bb60-fa40fefaf0b9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "14220250-98e1-4c4e-84d8-8dedc9dc3532": {
      "main": [
        [
          {
            "node": "351351dd-da19-421c-8a94-dc7687a05097",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

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 - Réseaux sociaux, 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.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds14
Catégorie2
Types de nœuds14
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34