Usine de médias sociaux
Ceci est unSocial Media, AI Chatbotworkflow d'automatisation du domainecontenant 48 nœuds.Utilise principalement des nœuds comme If, Set, Gmail, Merge, Switch. Créateur de contenu de médias sociaux basé sur l'IA, avec publication et validation multiplateformes
- •Compte Google et informations d'identification Gmail API
- •Informations d'identification Twitter API
- •Informations d'identification LinkedIn API
- •Informations d'identification Google Drive API
- •Peut nécessiter les informations d'identification d'authentification de l'API cible
- •Informations d'identification Facebook Graph API
- •Clé API OpenAI
Nœuds utilisés (48)
Catégorie
{
"meta": {
"templateCredsSetupCompleted": true
},
"name": "Social Media Factory",
"tags": [],
"nodes": [
{
"id": "de10dba7-e575-403a-a1f4-ec12a0fff90f",
"name": "À la réception d'un message de chat",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-2780,
140
],
"webhookId": "FAKE-WEBHOOK-ID-CHAT-TRIGGER-REPLACE-ME",
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "f2071d25-2913-49f2-8064-12b37c0223bf",
"name": "Note adhésive20",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2860,
500
],
"parameters": {
"color": 7,
"height": 240,
"content": "## LLM"
},
"typeVersion": 1
},
{
"id": "4a7d3f36-789d-40ce-8bd1-59abe0595602",
"name": "Note adhésive21",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2860,
760
],
"parameters": {
"color": 7,
"height": 240,
"content": "## Chat Memory"
},
"typeVersion": 1
},
{
"id": "267020ae-e09b-4792-ab93-007d90c164bc",
"name": "Note adhésive22",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2880,
60
],
"parameters": {
"color": 4,
"width": 300,
"height": 280,
"content": "## 👍Start Here"
},
"typeVersion": 1
},
{
"id": "09d540c9-6485-452e-8af2-6551b1ab7d89",
"name": "Note adhésive32",
"type": "n8n-nodes-base.stickyNote",
"position": [
-280,
220
],
"parameters": {
"color": 2,
"width": 340,
"height": 420,
"content": "## Social Media Publishing Router"
},
"typeVersion": 1
},
{
"id": "10547372-df1f-4e50-bd11-3f18b276594d",
"name": "Note adhésive33",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2560,
580
],
"parameters": {
"color": 6,
"height": 240,
"content": "## 1️⃣ X - Twitter"
},
"typeVersion": 1
},
{
"id": "7dbf2703-f44d-481c-bc72-581cf73a739f",
"name": "X-Twiter",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
-2480,
680
],
"parameters": {
"name": "create_x_twitter_posts_tool",
"fields": {
"values": [
{
"name": "route",
"stringValue": "=xtwitter"
},
{
"name": "user_prompt",
"stringValue": "={{ $('When chat message received').item.json.chatInput }}"
}
]
},
"workflowId": {
"__rl": true,
"mode": "id",
"value": "={{ $workflow.id }}"
},
"description": "Use this tool to create XTwitter posts",
"jsonSchemaExample": ""
},
"typeVersion": 1.2
},
{
"id": "d6791bd0-6c50-46b5-8bf5-b179c13fe12d",
"name": "Note adhésive34",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2300,
580
],
"parameters": {
"color": 6,
"height": 240,
"content": "## 2️⃣ Instagram"
},
"typeVersion": 1
},
{
"id": "c7026e0d-1210-48f4-a6a9-9bb02639244a",
"name": "Instagram",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
-2220,
680
],
"parameters": {
"name": "create_instagram_posts_tool",
"fields": {
"values": [
{
"name": "route",
"stringValue": "=instagram"
},
{
"name": "user_prompt",
"stringValue": "={{ $('When chat message received').item.json.chatInput }}"
}
]
},
"workflowId": {
"__rl": true,
"mode": "id",
"value": "={{ $workflow.id }}"
},
"description": "Use this tool to create Instagram posts",
"jsonSchemaExample": ""
},
"typeVersion": 1.2
},
{
"id": "74653483-7c34-4f3f-aab8-a63bef6cb3cb",
"name": "Mémoire tampon de fenêtre",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-2780,
860
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "a5db3f94-6574-4e88-b275-e51ba8dbc686",
"name": "Note adhésive35",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2040,
580
],
"parameters": {
"color": 6,
"height": 240,
"content": "## 3️⃣ Facebook"
},
"typeVersion": 1
},
{
"id": "6bc7fb2c-0744-4ff5-9416-fe622ad51240",
"name": "Note adhésive36",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1780,
580
],
"parameters": {
"color": 6,
"height": 240,
"content": "## 4️⃣ LinkedIn"
},
"typeVersion": 1
},
{
"id": "45e33076-dc3f-44fd-96a8-11b9e0818cc6",
"name": "Facebook",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
-1960,
680
],
"parameters": {
"name": "create_facebook_posts_tool",
"fields": {
"values": [
{
"name": "route",
"stringValue": "=facebook"
},
{
"name": "user_prompt",
"stringValue": "={{ $('When chat message received').item.json.chatInput }}"
}
]
},
"workflowId": {
"__rl": true,
"mode": "id",
"value": "={{ $workflow.id }}"
},
"description": "Use this tool to create Facebook posts",
"jsonSchemaExample": ""
},
"typeVersion": 1.2
},
{
"id": "7ef25d66-07cd-4804-a983-7f4407b03f8d",
"name": "LinkedIn",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
-1700,
680
],
"parameters": {
"name": "create_linkedin_posts_tool",
"fields": {
"values": [
{
"name": "route",
"stringValue": "=linkedin"
},
{
"name": "user_prompt",
"stringValue": "={{ $('When chat message received').item.json.chatInput }}"
}
]
},
"workflowId": {
"__rl": true,
"mode": "id",
"value": "={{ $workflow.id }}"
},
"description": "Use this tool to create LinkedIn posts",
"jsonSchemaExample": ""
},
"typeVersion": 1.2
},
{
"id": "60c5ecd3-5978-4f71-bb32-a1532558f7b8",
"name": "Note adhésive37",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2300,
840
],
"parameters": {
"color": 6,
"height": 240,
"content": "## 5️⃣Threads"
},
"typeVersion": 1
},
{
"id": "731eccad-ec70-4d63-a201-b074cf46760a",
"name": "Note adhésive38",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2040,
840
],
"parameters": {
"color": 6,
"height": 240,
"content": "## 6️⃣YouTube Shorts"
},
"typeVersion": 1
},
{
"id": "7e48978f-2f7c-4eb9-9ff1-452de36844fa",
"name": "Court",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
-2220,
940
],
"parameters": {
"name": "create_threads_posts_tool",
"fields": {
"values": [
{
"name": "route",
"stringValue": "=threads"
},
{
"name": "user_prompt",
"stringValue": "={{ $('When chat message received').item.json.chatInput }}"
}
]
},
"workflowId": {
"__rl": true,
"mode": "id",
"value": "={{ $workflow.id }}"
},
"description": "Use this tool to create Threads posts",
"jsonSchemaExample": ""
},
"typeVersion": 1.2
},
{
"id": "2fd22bf2-7a24-463f-bfa5-0bcc6cd22077",
"name": "YouTube Court",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
-1960,
940
],
"parameters": {
"name": "create_youtube_short_tool",
"fields": {
"values": [
{
"name": "route",
"stringValue": "=youtube_short"
},
{
"name": "user_prompt",
"stringValue": "={{ $('When chat message received').item.json.chatInput }}"
},
{
"name": "llm",
"stringValue": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Value', ``, 'string') }}"
}
]
},
"workflowId": {
"__rl": true,
"mode": "id",
"value": "={{ $workflow.id }}"
},
"description": "Use this tool to create a YouTube short",
"jsonSchemaExample": ""
},
"typeVersion": 1.2
},
{
"id": "fdb97bf0-e3d4-498c-b577-36112003cb15",
"name": "Note adhésive18",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2600,
500
],
"parameters": {
"color": 7,
"width": 1100,
"height": 620,
"content": "## Social Media Agent Tools"
},
"typeVersion": 1
},
{
"id": "80f88e74-0264-4aa8-bde7-5700150a64b7",
"name": "Note adhésive41",
"type": "n8n-nodes-base.stickyNote",
"position": [
-280,
-60
],
"parameters": {
"width": 340,
"height": 180,
"content": "💡Notes\n\nUpdate all Social Media Platform Credentials as required.\n\nAdjust parameters and content for each platform to suit your needs."
},
"typeVersion": 1
},
{
"id": "bcea54be-9bf4-478d-b3f2-8c1e86ae51d7",
"name": "Note adhésive42",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1020,
460
],
"parameters": {
"color": 4,
"width": 400,
"height": 360,
"content": "# 👍 Approve Content Before Proceeding"
},
"typeVersion": 1
},
{
"id": "73235560-b836-4200-b140-d36312ba3341",
"name": "Instagram Image",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
180,
280
],
"parameters": {
"url": "https://graph.facebook.com/v20.0/[your-unique-id]/media",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "predefinedCredentialType",
"queryParameters": {
"parameters": [
{
"name": "image_url",
"value": "={{ $json.output.social_image.medium.url }}"
},
{
"name": "caption",
"value": "={{ $json.output.caption }}"
}
]
},
"nodeCredentialType": "facebookGraphApi"
},
"typeVersion": 4.2
},
{
"id": "8eed482a-3ef0-4e64-bf60-366548bd1fd5",
"name": "X Post",
"type": "n8n-nodes-base.twitter",
"onError": "continueRegularOutput",
"position": [
380,
40
],
"parameters": {
"text": "={{ $json.data.social_content.schema.post }}",
"additionalFields": {}
},
"typeVersion": 2,
"alwaysOutputData": true
},
{
"id": "627dc547-62f5-4f44-864f-2f44e41281ce",
"name": "Publication Instagram",
"type": "n8n-nodes-base.facebookGraphApi",
"onError": "continueRegularOutput",
"position": [
380,
220
],
"parameters": {
"edge": "media_publish",
"node": "[your-unique-id]",
"options": {
"queryParameters": {
"parameter": [
{
"name": "creation_id",
"value": "={{ $json.id }}"
},
{
"name": "caption",
"value": "={{ $('Social Media Publishing Router').item.json.output.caption }}"
}
]
}
},
"graphApiVersion": "v20.0",
"httpRequestMethod": "POST"
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "6f280c9a-c6ac-4348-be63-58a64901b671",
"name": "Facebook Post",
"type": "n8n-nodes-base.facebookGraphApi",
"onError": "continueRegularOutput",
"position": [
380,
400
],
"parameters": {
"edge": "photos",
"node": "[your-unique-id]",
"options": {
"queryParameters": {
"parameter": [
{
"name": "message",
"value": "={{ $json.output.post }}\n\n{{ $json.output.call_to_action }}\n"
}
]
}
},
"sendBinaryData": true,
"graphApiVersion": "v20.0",
"httpRequestMethod": "POST",
"binaryPropertyName": "data"
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "b0408663-48e2-48ef-85e3-41ed5f802340",
"name": "LinkedIn Post",
"type": "n8n-nodes-base.linkedIn",
"onError": "continueRegularOutput",
"position": [
380,
580
],
"parameters": {
"text": "={{ $json.data.social_content.schema.post }}\n{{ $json.data.social_content.schema.call_to_action }}\n{{ $json.data.social_content.common_schema.hashtags }}\n",
"postAs": "organization",
"organization": "YOUR_LINKEDIN_ORGANIZATION_ID",
"additionalFields": {},
"binaryPropertyName": "=data",
"shareMediaCategory": "IMAGE"
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "dfce0575-a893-4068-b1ce-99b760f0a588",
"name": "Gmail Utilisateur pour approbation",
"type": "n8n-nodes-base.gmail",
"position": [
-880,
620
],
"webhookId": "FAKE-WEBHOOK-ID-GMAIL-APPROVAL-REPLACE-ME",
"parameters": {
"sendTo": "={{ $env.TELEGRAM_CHAT_ID }}",
"message": "={{ $json.output }}",
"options": {
"limitWaitTime": {
"values": {
"resumeUnit": "minutes",
"resumeAmount": 45
}
}
},
"subject": "=🔥FOR APPROVAL🔥 {{$('Extract as JSON').item.json.data.social_content.root_schema.name }}",
"operation": "sendAndWait",
"approvalOptions": {
"values": {
"approvalType": "double"
}
}
},
"typeVersion": 2.1
},
{
"id": "ea487552-41d5-40f3-9787-47822503fe1a",
"name": "Obtenir l'image de la publication sociale",
"type": "n8n-nodes-base.httpRequest",
"position": [
-620,
880
],
"parameters": {
"url": "={{ $('Extract as JSON').item.json.data.social_image.medium.url }}",
"options": {}
},
"retryOnFail": true,
"typeVersion": 4.2
},
{
"id": "9fd75add-927f-42a8-b1d6-5a440e5014df",
"name": "gpt-40-mini1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-1400,
800
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {
"responseFormat": "text"
}
},
"typeVersion": 1.2
},
{
"id": "a59ecfb3-d774-4d43-a818-e0eaf42a9442",
"name": "Note adhésive6",
"type": "n8n-nodes-base.stickyNote",
"position": [
120,
-60
],
"parameters": {
"color": 6,
"width": 700,
"height": 1240,
"content": "# 📄 Publish to Social Media "
},
"typeVersion": 1
},
{
"id": "3ee1540e-8fc6-48c5-94d6-f44edd487feb",
"name": "Routeur de publication sur médias sociaux",
"type": "n8n-nodes-base.switch",
"position": [
-180,
320
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "1️⃣X-Twitter",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.route }}",
"rightValue": "xtwitter"
}
]
},
"renameOutput": true
},
{
"outputKey": " 2️⃣Instagram",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "86d44336-bab7-422f-9266-fcb513252d19",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.route }}",
"rightValue": "instagram"
}
]
},
"renameOutput": true
},
{
"outputKey": " 3️⃣Facebook",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "29f37628-6381-46af-babb-74bf00b4a849",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.route }}",
"rightValue": "facebook"
}
]
},
"renameOutput": true
},
{
"outputKey": "4️⃣Linkedin",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "fdb7c8aa-4108-43f6-8f6b-71cd8f383d2a",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.route }}",
"rightValue": "=linkedin"
}
]
},
"renameOutput": true
},
{
"outputKey": "5️⃣Threads",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "956baedd-4a0b-4e41-b85c-ef2c84332bdc",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.route }}",
"rightValue": "threads"
}
]
},
"renameOutput": true
},
{
"outputKey": "6️⃣YouTube Short",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "4d690442-197c-4ff9-b176-b55dfabaecc9",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.route }}",
"rightValue": "youtube_short"
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "7a1d0613-f3fa-41e6-bb7d-cd383a6a9f89",
"name": "Préparer le contenu de l'email",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-1380,
620
],
"parameters": {
"text": "=Use the HTML template and populate [fields] as required from this: {{ $json.data.social_content.toJsonString() }}\n-----\nOnly output HTML without code block tags, preamble or further explanation in the format provided.\n\n## HTML Template\n<table style=\"max-width:640px;min-width:320px;width:100%;border-collapse:collapse;font-family:Arial,sans-serif;margin:20px auto\">\n <tbody>\n <tr>\n <td colspan=\"2\" style=\"background-color:#ffffff;padding:15px;text-align:left\">\n <img src=\"{{ $json.data.google_drive_image.thumbnailLink }}\" alt=\"{{ $json.data.social_content.root_schema.name }}\" style=\"max-width:100%;height:auto;\">\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" style=\"background-color:#efefef;padding:15px;font-size:20px;text-align:left;font-weight:bold\">\n {{ $json.data.social_content.root_schema.name }}\n </td>\n </tr>\n <tr>\n <td style=\"background-color:#f9f9f9;padding:15px;width:30%;text-align:left\"><strong>[label_1]:</strong></td>\n <td style=\"background-color:#f9f9f9;padding:15px;text-align:left\">[content_1]</td>\n </tr>\n <tr>\n <td style=\"background-color:#f1f1f1;padding:15px;text-align:left\"><strong>[label_2]:</strong></td>\n <td style=\"background-color:#f1f1f1;padding:15px;text-align:left\">[content_2]</td>\n </tr>\n\n [continue the pattern ...]\n\n <tr>\n <td colspan=\"2\" style=\"background-color:#efefef;padding:15px;text-align:left\">\n <strong>[footer_label]:</strong> [footer_content]\n </td>\n </tr>\n </tbody>\n</table>\n\n",
"options": {},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "381a7aba-e9e1-4ff8-beac-8f2b13cdeb11",
"name": "Est approuvé ?",
"type": "n8n-nodes-base.if",
"position": [
-880,
880
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "313cec9b-aad5-4f9c-a209-afe83af53df0",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"leftValue": "={{ $json.data.approved }}",
"rightValue": ""
}
]
}
},
"typeVersion": 2.2
},
{
"id": "7ec33130-bbb4-4fa7-a76c-87516c5cbe4a",
"name": "Identifiant de fichier",
"type": "n8n-nodes-base.set",
"position": [
-1060,
140
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "efb1c03b-8465-443d-a442-b76b8cd86a73",
"name": "output",
"type": "object",
"value": "={{ $json.output }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "f66196c1-fc5b-4a0e-8b47-3f486ffb7a83",
"name": "Obtenir la publication sociale depuis Google Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
-880,
140
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.output.response }}"
},
"options": {},
"operation": "download"
},
"typeVersion": 3
},
{
"id": "fc593f3a-edcb-4c1c-9105-0c4e81f4d812",
"name": "Extraire en tant que JSON",
"type": "n8n-nodes-base.extractFromFile",
"position": [
-700,
140
],
"parameters": {
"options": {},
"operation": "fromJson"
},
"typeVersion": 1
},
{
"id": "72ea1c32-5abc-48ac-804c-156c5f93a69e",
"name": "Fusionner l'image et le contenu de la publication",
"type": "n8n-nodes-base.merge",
"position": [
-440,
380
],
"parameters": {
"mode": "combine",
"options": {},
"combineBy": "combineByPosition"
},
"typeVersion": 3
},
{
"id": "44d91742-53cd-4592-ac71-61bee629a01f",
"name": "Note adhésive10",
"type": "n8n-nodes-base.stickyNote",
"position": [
280,
760
],
"parameters": {
"width": 320,
"height": 380,
"content": ""
},
"typeVersion": 1
},
{
"id": "d9d29645-69c1-44e6-a4a1-6c5fd5d84f18",
"name": "Implémenter les fils de discussion ici",
"type": "n8n-nodes-base.noOp",
"position": [
380,
800
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3ea05d00-072d-488a-a95b-671c7de8f450",
"name": "Implémenter YouTube Courts ici",
"type": "n8n-nodes-base.noOp",
"position": [
380,
960
],
"parameters": {},
"typeVersion": 1
},
{
"id": "258e1d87-d285-4eb9-8321-909a5968d61c",
"name": "X Réponse",
"type": "n8n-nodes-base.set",
"position": [
580,
40
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "4015bb20-da3b-4781-ab8c-46f4d826138e",
"name": "output",
"type": "string",
"value": "={{ $('Social Media Publishing Router').item.json.data.route }}\n\n{{ $('Social Media Publishing Router').item.json.data.social_content.root_schema.name }}\n\n{{ $('Social Media Publishing Router').item.json.data.social_content.schema.post }}\n\n.item.json.data.social_image.thumb.url }})"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "95fd0a62-1d30-4a4c-9a5c-4a2ddbe48a76",
"name": "Instagram Réponse",
"type": "n8n-nodes-base.set",
"position": [
580,
220
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "da8fe7e3-e74d-46b6-91eb-1bf4432b73b0",
"name": "output",
"type": "string",
"value": "={{ $('Social Media Publishing Router').item.json.data.route }} \n{{ $('Social Media Publishing Router').item.json.data.social_content.root_schema.name }}\n{{ $('Social Media Publishing Router').item.json.data.social_content.schema.caption }}\n.item.json.data.social_image.thumb.url }})"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "d087cdfb-5e4f-4f46-bfd0-46c9a4994134",
"name": "Facebook Réponse",
"type": "n8n-nodes-base.set",
"position": [
580,
400
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e349e314-2967-456f-856a-85727bdf94f3",
"name": "output",
"type": "string",
"value": "={{ $('Social Media Publishing Router').item.json.data.route }}\n\n{{ $('Social Media Publishing Router').item.json.data.social_content.root_schema.name }}\n\n{{ $('Social Media Publishing Router').item.json.data.social_content.schema.post }}\n\n.item.json.data.social_image.thumb.url }})"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "fea22992-fd38-46e0-b7c7-75a86a1d68bb",
"name": "LinkedIn Réponse",
"type": "n8n-nodes-base.set",
"position": [
580,
580
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "88404fde-a41b-4da5-bbdb-0e41b879a52c",
"name": "output",
"type": "string",
"value": "={{ $('Social Media Publishing Router').item.json.data.route }}\n\n{{ $('Social Media Publishing Router').item.json.data.social_content.root_schema.name }}\n\n{{ $('Social Media Publishing Router').item.json.data.social_content.schema.post }}\n\n.item.json.data.social_image.thumb.url }})\n"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "e49c8c85-e81e-4da3-8b15-bc865f75f2d2",
"name": "Note adhésive13",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2380,
20
],
"parameters": {
"width": 620,
"height": 320,
"content": "# Social Media Router Agent"
},
"typeVersion": 1
},
{
"id": "07c69cfa-f8b1-4562-b242-8ea85f4670a5",
"name": "🤖Agent Routeur de Médias Sociaux",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-2200,
140
],
"parameters": {
"text": "=You are a helpful assistant that uses the provided tools. Respond with a valid JSON object.\n\nUser prompt: {{ $json.chatInput }}",
"options": {
"systemMessage": "## RULES\n- You do not answer the users questions directly and your sole purpose is to call the appropriate tool to and provide the verbatim response.\n\n## TOOLS\n- create_x_twitter_posts_tool: Use this tool to create X-Twitter posts\n- create_instagram_posts_tool: Use this tool to create Instagram posts\n- create_facebook_posts_tool: Use this tool to create Facebook posts\n- create_linkedin_posts_tool: Use this tool to create LinkedIn posts\n- create_threads_posts_tool: Use this tool to create Threads posts\n- create_youtube_short_tool: Use this tool to create a YouTube short\n\n\n"
},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "8b19c050-88ad-472e-8e3e-32803759e257",
"name": "Note adhésive14",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1460,
500
],
"parameters": {
"width": 400,
"height": 440,
"content": "## Prepare Email Approval Contents as HTML"
},
"typeVersion": 1
},
{
"id": "c1545e70-b577-4dfe-92c0-e7aa9523b9f3",
"name": "gpt-4o",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-2780,
600
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o",
"cachedResultName": "gpt-4o"
},
"options": {
"responseFormat": "json_object"
}
},
"typeVersion": 1.2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "",
"connections": {
"7e48978f-2f7c-4eb9-9ff1-452de36844fa": {
"ai_tool": [
[
{
"node": "07c69cfa-f8b1-4562-b242-8ea85f4670a5",
"type": "ai_tool",
"index": 0
}
]
]
},
"8eed482a-3ef0-4e64-bf60-366548bd1fd5": {
"main": [
[
{
"node": "258e1d87-d285-4eb9-8321-909a5968d61c",
"type": "main",
"index": 0
}
]
]
},
"c1545e70-b577-4dfe-92c0-e7aa9523b9f3": {
"ai_languageModel": [
[
{
"node": "07c69cfa-f8b1-4562-b242-8ea85f4670a5",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"7ec33130-bbb4-4fa7-a76c-87516c5cbe4a": {
"main": [
[
{
"node": "f66196c1-fc5b-4a0e-8b47-3f486ffb7a83",
"type": "main",
"index": 0
}
]
]
},
"45e33076-dc3f-44fd-96a8-11b9e0818cc6": {
"ai_tool": [
[
{
"node": "07c69cfa-f8b1-4562-b242-8ea85f4670a5",
"type": "ai_tool",
"index": 0
}
]
]
},
"7ef25d66-07cd-4804-a983-7f4407b03f8d": {
"ai_tool": [
[
{
"node": "07c69cfa-f8b1-4562-b242-8ea85f4670a5",
"type": "ai_tool",
"index": 0
}
]
]
},
"7dbf2703-f44d-481c-bc72-581cf73a739f": {
"ai_tool": [
[
{
"node": "07c69cfa-f8b1-4562-b242-8ea85f4670a5",
"type": "ai_tool",
"index": 0
}
]
]
},
"c7026e0d-1210-48f4-a6a9-9bb02639244a": {
"ai_tool": [
[
{
"node": "07c69cfa-f8b1-4562-b242-8ea85f4670a5",
"type": "ai_tool",
"index": 0
}
]
]
},
"381a7aba-e9e1-4ff8-beac-8f2b13cdeb11": {
"main": [
[
{
"node": "ea487552-41d5-40f3-9787-47822503fe1a",
"type": "main",
"index": 0
}
]
]
},
"9fd75add-927f-42a8-b1d6-5a440e5014df": {
"ai_languageModel": [
[
{
"node": "7a1d0613-f3fa-41e6-bb7d-cd383a6a9f89",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"6f280c9a-c6ac-4348-be63-58a64901b671": {
"main": [
[
{
"node": "d087cdfb-5e4f-4f46-bfd0-46c9a4994134",
"type": "main",
"index": 0
}
]
]
},
"b0408663-48e2-48ef-85e3-41ed5f802340": {
"main": [
[
{
"node": "fea22992-fd38-46e0-b7c7-75a86a1d68bb",
"type": "main",
"index": 0
}
]
]
},
"2fd22bf2-7a24-463f-bfa5-0bcc6cd22077": {
"ai_tool": [
[
{
"node": "07c69cfa-f8b1-4562-b242-8ea85f4670a5",
"type": "ai_tool",
"index": 0
}
]
]
},
"fc593f3a-edcb-4c1c-9105-0c4e81f4d812": {
"main": [
[
{
"node": "72ea1c32-5abc-48ac-804c-156c5f93a69e",
"type": "main",
"index": 0
},
{
"node": "7a1d0613-f3fa-41e6-bb7d-cd383a6a9f89",
"type": "main",
"index": 0
}
]
]
},
"73235560-b836-4200-b140-d36312ba3341": {
"main": [
[
{
"node": "627dc547-62f5-4f44-864f-2f44e41281ce",
"type": "main",
"index": 0
}
]
]
},
"627dc547-62f5-4f44-864f-2f44e41281ce": {
"main": [
[
{
"node": "95fd0a62-1d30-4a4c-9a5c-4a2ddbe48a76",
"type": "main",
"index": 0
}
]
]
},
"74653483-7c34-4f3f-aab8-a63bef6cb3cb": {
"ai_memory": [
[
{
"node": "07c69cfa-f8b1-4562-b242-8ea85f4670a5",
"type": "ai_memory",
"index": 0
}
]
]
},
"ea487552-41d5-40f3-9787-47822503fe1a": {
"main": [
[
{
"node": "72ea1c32-5abc-48ac-804c-156c5f93a69e",
"type": "main",
"index": 1
}
]
]
},
"7a1d0613-f3fa-41e6-bb7d-cd383a6a9f89": {
"main": [
[
{
"node": "dfce0575-a893-4068-b1ce-99b760f0a588",
"type": "main",
"index": 0
}
]
]
},
"dfce0575-a893-4068-b1ce-99b760f0a588": {
"main": [
[
{
"node": "381a7aba-e9e1-4ff8-beac-8f2b13cdeb11",
"type": "main",
"index": 0
}
]
]
},
"de10dba7-e575-403a-a1f4-ec12a0fff90f": {
"main": [
[
{
"node": "07c69cfa-f8b1-4562-b242-8ea85f4670a5",
"type": "main",
"index": 0
}
]
]
},
"72ea1c32-5abc-48ac-804c-156c5f93a69e": {
"main": [
[
{
"node": "3ee1540e-8fc6-48c5-94d6-f44edd487feb",
"type": "main",
"index": 0
}
]
]
},
"07c69cfa-f8b1-4562-b242-8ea85f4670a5": {
"main": [
[
{
"node": "7ec33130-bbb4-4fa7-a76c-87516c5cbe4a",
"type": "main",
"index": 0
}
]
]
},
"3ee1540e-8fc6-48c5-94d6-f44edd487feb": {
"main": [
[
{
"node": "8eed482a-3ef0-4e64-bf60-366548bd1fd5",
"type": "main",
"index": 0
}
],
[
{
"node": "73235560-b836-4200-b140-d36312ba3341",
"type": "main",
"index": 0
}
],
[
{
"node": "6f280c9a-c6ac-4348-be63-58a64901b671",
"type": "main",
"index": 0
}
],
[
{
"node": "b0408663-48e2-48ef-85e3-41ed5f802340",
"type": "main",
"index": 0
}
],
[
{
"node": "d9d29645-69c1-44e6-a4a1-6c5fd5d84f18",
"type": "main",
"index": 0
}
],
[
{
"node": "3ea05d00-072d-488a-a95b-671c7de8f450",
"type": "main",
"index": 0
}
]
]
},
"f66196c1-fc5b-4a0e-8b47-3f486ffb7a83": {
"main": [
[
{
"node": "fc593f3a-edcb-4c1c-9105-0c4e81f4d812",
"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é ?
Avancé - Réseaux sociaux, Chatbot IA
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
Taiki
@taikiPartager ce workflow