{ "name": "Google Tabelle: Bereite Zeilen als Social-Poster-Entwurf, optional vorgeplant", "nodes": [ { "id": "66b70410-3aab-50c7-bc36-d6aa1702715b", "name": "Übersicht", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ -320, -60 ], "parameters": { "content": "### So funktioniert's\nEin Zeitplan liest regelmäßig Deine Google-Tabelle und übernimmt nur Zeilen mit Status `ready` und ausgefülltem Text. Für jede Zeile speichert „Entwurf anlegen“ einen Entwurf in Social Poster. „Status schreiben“ trägt danach `draft`, `scheduled` oder `error` und die Entwurf-Nummer in die Zeile ein. Ein Fehler bei einer Zeile hält die anderen nicht auf.\n\n### Entwurf oder vorgeplant\nStandard ist `modus` = `entwurf`: Es entsteht nur ein Entwurf, nichts wird geplant oder veröffentlicht. Den Link zur Ansicht findest Du in der Ausgabe von „Entwurf anlegen“ unter `draft.app_draft_url`. Für vorgeplante Beiträge setzt Du `modus` auf `planen`. Dann plant „Entwurf planen“ den Entwurf `minutesFromNow` Minuten später (mindestens 5) und bestätigt ihn. Braucht Dein Team eine Freigabe, wartet er unter „Wartet auf Dich“. Eine Sofort-Veröffentlichung gibt es nicht.\n\n### Einrichtung\nInstalliere den Community-Node `n8n-nodes-social-poster` in selbst gehostetem n8n (nicht in n8n Cloud; der Node ist noch nicht verifiziert), getestet mit Version 0.1.1: Einstellungen → Community Nodes → Installieren. Anleitung: https://docs.n8n.io/integrations/community-nodes/installation/\nLege die Anmeldedaten „Social Poster API“ an. Den Schlüssel holst Du in Social Poster unter Konto-Menü → KI-Zugriffe → API-Schlüssel für n8n, die Basis-URL ist `https://app.social-poster.io` ohne `/mcp`.\nLege Google-Sheets-Anmeldedaten an und eine Tabelle mit diesen Spaltenköpfen in Zeile 1: `Caption`, `Link`, `MediaURLs`, `Title`, `Status`, `DraftRef`, `ScheduledAt`. Trage in „Einstellungen“ Tabellen-ID, Blattname und Konto-Referenz (`acc_…`) ein. Setze eine Testzeile auf `ready` und führe den Workflow einmal aus.\n\n### Anpassen\nStelle nicht zu viele Zeilen gleichzeitig auf `ready`: Der Schlüssel erlaubt 10 Entwurfs-Änderungen und 3 Veröffentlichungsschritte pro Minute.", "height": 820, "width": 680, "color": 1 } }, { "id": "a5af86da-5f8b-52a8-ab6a-91893f48e871", "name": "Zeitplan und Einstellungen", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ 460, 60 ], "parameters": { "content": "## Was Du anpassen musst\nIntervall, Tabellen-ID, Blattname, Konto-Referenz, `modus` (Standard `entwurf`) und `minutesFromNow`.", "height": 260, "width": 520, "color": 7 } }, { "id": "b19580d4-789a-5f6d-8204-7612891a5d5b", "name": "Bereite Zeilen finden", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ 1040, 60 ], "parameters": { "content": "## Nur Status ready\nEs werden nur Zeilen mit Status `ready` und ausgefülltem Text übernommen.", "height": 260, "width": 520, "color": 7 } }, { "id": "aa328ae8-1a09-5af8-8740-79e0c0521a5d", "name": "Entwurf, planen, zurückschreiben", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ 1600, 60 ], "parameters": { "content": "## Entwurf, optional planen\nJede Zeile wird ein Entwurf. Bei `modus` = `planen` plant „Entwurf planen“ ihn. „Status schreiben“ setzt `draft`, `scheduled` oder `error`.", "height": 260, "width": 1060, "color": 7 } }, { "id": "56b74e97-35af-5c18-bb71-da71c3058541", "name": "Hinweis zu X", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ 1880, 640 ], "parameters": { "content": "Prüfe Beiträge für X (Twitter) selbst. Lass in „Entwurf planen“ „X Content Reviewed“ aus, solange niemand den genauen Text und die Medien geprüft hat.", "height": 150, "width": 520, "color": 3 } }, { "id": "4970ca50-4dcf-486a-943c-d2a2dc330254", "name": "Alle 15 Minuten", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ 520, 400 ], "parameters": { "rule": { "interval": [ { "field": "minutes", "minutesInterval": 15 } ] } } }, { "id": "45cf6481-6d6b-4e21-8bc7-5d1101b4c3ed", "name": "Einstellungen", "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ 800, 400 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "35eb24ee-3945-45ee-a220-f4181cd9973c", "name": "sheetId", "type": "string", "value": "YOUR_GOOGLE_SHEET_ID" }, { "id": "d97dab2b-8b3c-4ec2-a987-47928dd5a633", "name": "sheetName", "type": "string", "value": "Beiträge" }, { "id": "caa1246b-33bb-47a1-b2af-0b10d45a9800", "name": "accountRef", "type": "string", "value": "acc_DEINE_KONTO_REFERENZ" }, { "id": "e1301ad4-ece0-5a6a-8e2b-bc3d8b8aab09", "name": "modus", "type": "string", "value": "entwurf" }, { "id": "f245d5d3-e407-4ded-97c6-73d6c51b38a4", "name": "minutesFromNow", "type": "number", "value": 15 } ] } } }, { "id": "168b1567-7637-4f4b-abe3-c4525c836241", "name": "Bereite Zeilen lesen", "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.5, "position": [ 1080, 400 ], "parameters": { "operation": "read", "documentId": { "__rl": true, "mode": "id", "value": "={{ $('Einstellungen').item.json.sheetId }}" }, "sheetName": { "__rl": true, "mode": "name", "value": "={{ $('Einstellungen').item.json.sheetName }}" }, "options": {} }, "credentials": { "googleSheetsOAuth2Api": { "id": "YOUR_GOOGLE_SHEETS_CREDENTIAL", "name": "Google Sheets account" } } }, { "id": "db4b6a91-257a-442d-82df-93eb968c5377", "name": "Nur Status ready", "type": "n8n-nodes-base.filter", "typeVersion": 2.2, "position": [ 1360, 400 ], "parameters": { "options": {}, "conditions": { "options": { "version": 2, "leftValue": "", "caseSensitive": false, "typeValidation": "loose" }, "combinator": "and", "conditions": [ { "id": "f352bf1d-6062-4bd6-b9d3-b150550e2fed", "operator": { "type": "string", "operation": "equals" }, "leftValue": "={{ $json.Status }}", "rightValue": "ready" }, { "id": "802cccb0-0001-433a-a34a-8908952bcff9", "operator": { "type": "string", "operation": "notEmpty", "singleValue": true }, "leftValue": "={{ $json.Caption }}", "rightValue": "" } ] } } }, { "id": "1876460c-2c27-5d4c-8d78-3eb081aa9b71", "name": "Entwurf anlegen", "type": "n8n-nodes-social-poster.socialPoster", "typeVersion": 1, "position": [ 1640, 400 ], "parameters": { "resource": "draft", "operation": "create", "workspace": "", "account": "={{ $('Einstellungen').item.json.accountRef }}", "caption": "={{ $json.Caption }}", "additionalFields": { "link": "={{ $json.Link }}", "mediaUrls": "={{ $json.MediaURLs }}", "title": "={{ $json.Title }}" } }, "credentials": { "socialPosterApi": { "id": "YOUR_SOCIAL_POSTER_CREDENTIAL", "name": "Social Poster API" } }, "onError": "continueRegularOutput" }, { "id": "6e21ba2d-98c9-51e8-ae54-d709e2a4b47a", "name": "Soll geplant werden?", "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ 1920, 400 ], "parameters": { "options": {}, "conditions": { "options": { "version": 2, "leftValue": "", "caseSensitive": false, "typeValidation": "loose" }, "combinator": "and", "conditions": [ { "id": "1904a6cd-97aa-5da6-b1cb-daad36626803", "operator": { "type": "string", "operation": "equals" }, "leftValue": "={{ String($('Einstellungen').item.json.modus || \"\").trim().toLowerCase() }}", "rightValue": "planen" }, { "id": "830e3798-fd02-5153-825f-c7683c2dc1f0", "operator": { "type": "string", "operation": "notEmpty", "singleValue": true }, "leftValue": "={{ $json.draft && $json.draft.draft_ref ? $json.draft.draft_ref : \"\" }}", "rightValue": "" } ] } } }, { "id": "e954eb6c-5d2c-5ecf-b656-f293c261993f", "name": "Entwurf planen", "type": "n8n-nodes-social-poster.socialPoster", "typeVersion": 1, "position": [ 2200, 280 ], "parameters": { "resource": "post", "operation": "scheduleDraft", "workspace": "", "draftRef": "={{ $('Entwurf anlegen').item.json.draft.draft_ref }}", "scheduleMode": "minutes", "minutesFromNow": "={{ $('Einstellungen').item.json.minutesFromNow }}", "xContentReviewed": false }, "credentials": { "socialPosterApi": { "id": "YOUR_SOCIAL_POSTER_CREDENTIAL", "name": "Social Poster API" } }, "onError": "continueRegularOutput" }, { "id": "c82b0a53-b0d3-5a80-93bd-f895a4f77222", "name": "Status schreiben", "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.5, "position": [ 2480, 400 ], "parameters": { "operation": "update", "documentId": { "__rl": true, "mode": "id", "value": "={{ $('Einstellungen').item.json.sheetId }}" }, "sheetName": { "__rl": true, "mode": "name", "value": "={{ $('Einstellungen').item.json.sheetName }}" }, "columns": { "mappingMode": "defineBelow", "matchingColumns": [ "row_number" ], "value": { "row_number": "={{ $('Nur Status ready').item.json.row_number }}", "Status": "={{ $json.error ? \"error\" : ($json.scheduled_at_utc ? \"scheduled\" : \"draft\") }}", "DraftRef": "={{ $('Entwurf anlegen').item.json.draft && $('Entwurf anlegen').item.json.draft.draft_ref ? $('Entwurf anlegen').item.json.draft.draft_ref + ($json.error ? \" – \" + $json.error : \"\") : ($json.error || \"error\") }}", "ScheduledAt": "={{ $json.scheduled_at_utc || \"\" }}" }, "schema": [ { "id": "Caption", "displayName": "Caption", "type": "string", "display": true, "required": false, "defaultMatch": false, "canBeUsedToMatch": true, "removed": false }, { "id": "Link", "displayName": "Link", "type": "string", "display": true, "required": false, "defaultMatch": false, "canBeUsedToMatch": true, "removed": false }, { "id": "MediaURLs", "displayName": "MediaURLs", "type": "string", "display": true, "required": false, "defaultMatch": false, "canBeUsedToMatch": true, "removed": false }, { "id": "Title", "displayName": "Title", "type": "string", "display": true, "required": false, "defaultMatch": false, "canBeUsedToMatch": true, "removed": false }, { "id": "Status", "displayName": "Status", "type": "string", "display": true, "required": false, "defaultMatch": false, "canBeUsedToMatch": true, "removed": false }, { "id": "DraftRef", "displayName": "DraftRef", "type": "string", "display": true, "required": false, "defaultMatch": false, "canBeUsedToMatch": true, "removed": false }, { "id": "ScheduledAt", "displayName": "ScheduledAt", "type": "string", "display": true, "required": false, "defaultMatch": false, "canBeUsedToMatch": true, "removed": false }, { "id": "row_number", "displayName": "row_number", "type": "string", "display": true, "required": false, "readOnly": true, "defaultMatch": false, "canBeUsedToMatch": true, "removed": false } ], "attemptToConvertTypes": false, "convertFieldsToString": false }, "options": {} }, "credentials": { "googleSheetsOAuth2Api": { "id": "YOUR_GOOGLE_SHEETS_CREDENTIAL", "name": "Google Sheets account" } } } ], "pinData": {}, "connections": { "Alle 15 Minuten": { "main": [ [ { "node": "Einstellungen", "type": "main", "index": 0 } ] ] }, "Einstellungen": { "main": [ [ { "node": "Bereite Zeilen lesen", "type": "main", "index": 0 } ] ] }, "Bereite Zeilen lesen": { "main": [ [ { "node": "Nur Status ready", "type": "main", "index": 0 } ] ] }, "Nur Status ready": { "main": [ [ { "node": "Entwurf anlegen", "type": "main", "index": 0 } ] ] }, "Entwurf anlegen": { "main": [ [ { "node": "Soll geplant werden?", "type": "main", "index": 0 } ] ] }, "Soll geplant werden?": { "main": [ [ { "node": "Entwurf planen", "type": "main", "index": 0 } ], [ { "node": "Status schreiben", "type": "main", "index": 0 } ] ] }, "Entwurf planen": { "main": [ [ { "node": "Status schreiben", "type": "main", "index": 0 } ] ] } }, "active": false, "settings": { "executionOrder": "v1", "availableInMCP": false, "timezone": "Europe/Berlin" }, "meta": { "templateCredsSetupCompleted": false }, "tags": [] }