{ "name": "Zeitplan: Social-Poster-Beitrag nach Wochentag als Entwurf, optional vorgeplant", "nodes": [ { "id": "fc272f28-e220-5d38-a6a2-1de7ce94b9ba", "name": "Übersicht", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ -300, -40 ], "parameters": { "content": "### So funktioniert's\nJeden Tag zur eingestellten Uhrzeit (Europe/Berlin) startet der Zeitplan. „Text für heute wählen“ nimmt den Text des heutigen Wochentags aus den sieben Feldern in „Einstellungen“. Ist für den Tag kein Text hinterlegt, endet der Lauf ohne Beitrag. Sonst speichert „Entwurf anlegen“ den Beitrag als Entwurf in Social Poster.\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`.\nTrage in „Einstellungen“ die Konto-Referenz (`acc_…`), optional Link und Bild-URL sowie die Texte für Montag bis Sonntag ein. Die Uhrzeit stellst Du im Zeitplan ein, Standard ist 9:00. Wähle die Anmeldedaten in beiden Social-Poster-Nodes und teste einmal manuell.\n\n### Anpassen\nLass einen Tag leer, wenn dann nichts erscheinen soll. Für eine längere Rotation kannst Du die Texte aus einer Tabelle lesen.", "height": 820, "width": 660, "color": 1 } }, { "id": "7afe0d0c-664c-5a48-8321-c3ec886f3e49", "name": "Zeitplan", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ 440, 80 ], "parameters": { "content": "## Täglich zur Uhrzeit\nStandard ist 9:00 in der Zeitzone Europe/Berlin.", "height": 260, "width": 240, "color": 7 } }, { "id": "9d498795-9482-52de-8c16-d6e3b2e256fa", "name": "Wochentagstexte", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ 720, 80 ], "parameters": { "content": "## Texte je Tag\nKonto-Referenz, `modus` (Standard `entwurf`), `minutesFromNow` und die sieben Tages-Texte. Ein leerer Tag wird übersprungen.", "height": 260, "width": 520, "color": 7 } }, { "id": "06489838-f52c-5632-9dfa-927bd15da85d", "name": "Entwurf oder vorgeplant", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ 1280, 80 ], "parameters": { "content": "## Entwurf, optional planen\nNur wenn heute ein Text da ist, entsteht ein Entwurf. Bei `modus` = `planen` plant „Entwurf planen“ ihn und bestätigt die Veröffentlichung.", "height": 260, "width": 1100, "color": 7 } }, { "id": "cd7d8604-7492-5a2c-bec3-18f7e5f0b507", "name": "Hinweis zu Wiederholungen", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ 1580, 620 ], "parameters": { "content": "Jeder Lauf nimmt den hinterlegten Tages-Text erneut. Ändere oder leere den Text, wenn er nicht wiederkommen soll.", "height": 150, "width": 520, "color": 3 } }, { "id": "f79a14b9-4447-417a-ad93-b15a23afaa58", "name": "Täglich um 9 Uhr", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ 520, 400 ], "parameters": { "rule": { "interval": [ { "field": "days", "daysInterval": 1, "triggerAtHour": 9, "triggerAtMinute": 0 } ] } } }, { "id": "fca02958-5402-4ac0-b3a9-b822fd16d1f2", "name": "Einstellungen", "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ 800, 400 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "58573aaa-027b-4583-98c1-e290399d91f0", "name": "accountRef", "type": "string", "value": "acc_DEINE_KONTO_REFERENZ" }, { "id": "51fbe2a8-12cb-5c89-82ac-881be1dbbfe0", "name": "modus", "type": "string", "value": "entwurf" }, { "id": "f988813f-51be-4dc5-8788-373db1d65950", "name": "minutesFromNow", "type": "number", "value": 15 }, { "id": "c834300c-add0-439e-82cb-8999a4ae0ef3", "name": "link", "type": "string", "value": "https://example.com" }, { "id": "2aa66c46-9bb6-44a4-864f-94c0e984aa50", "name": "mediaUrls", "type": "string", "value": "" }, { "id": "12ae7423-683c-41e0-8c57-199310a3fe06", "name": "title", "type": "string", "value": "" }, { "id": "18db4ab2-debb-41e5-9f0a-3c457d1e27d6", "name": "captionMonday", "type": "string", "value": "Guten Start in die Woche. Heute lohnt sich ein Blick auf unsere aktuellen Angebote." }, { "id": "273b3b25-31f2-4ed0-bea7-0e64a5194810", "name": "captionTuesday", "type": "string", "value": "" }, { "id": "e037e978-06a3-4917-b9db-e43c7741bc9f", "name": "captionWednesday", "type": "string", "value": "Mitten in der Woche: Schau vorbei oder bestelle bequem online." }, { "id": "05b23752-0afa-4df3-a2dd-dc22b60be2ac", "name": "captionThursday", "type": "string", "value": "" }, { "id": "95312c61-b78b-49db-8010-a1f65204e4e3", "name": "captionFriday", "type": "string", "value": "Zum Wochenende haben wir frische Ideen für Dich zusammengestellt." }, { "id": "4d8b7d52-fc38-451e-a2c3-5f02d8433bed", "name": "captionSaturday", "type": "string", "value": "" }, { "id": "809e2ecf-72bd-43f8-9a5b-00cef8561381", "name": "captionSunday", "type": "string", "value": "" } ] } } }, { "id": "f77d4985-f6ff-4521-9f79-6b48ac34bfa1", "name": "Text für heute wählen", "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ 1080, 400 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "b799dba3-992f-47c5-82ec-c59e82515af4", "name": "accountRef", "type": "string", "value": "={{ $json.accountRef }}" }, { "id": "275b5358-4a87-5544-bb01-3a53114c5764", "name": "modus", "type": "string", "value": "={{ $json.modus }}" }, { "id": "a2f608c6-d720-4c4f-a91f-f3d92b76bd07", "name": "minutesFromNow", "type": "number", "value": "={{ $json.minutesFromNow }}" }, { "id": "10720c1e-253f-4b18-aa88-37eea0e400dd", "name": "link", "type": "string", "value": "={{ $json.link }}" }, { "id": "45993f6f-1220-414a-88ff-042f3b31fdfd", "name": "mediaUrls", "type": "string", "value": "={{ $json.mediaUrls }}" }, { "id": "249cc03f-932e-47fa-bd41-712d3744423e", "name": "title", "type": "string", "value": "={{ $json.title }}" }, { "id": "b8f03b7e-a0bf-4ae6-83f2-1e14ad878a2a", "name": "weekday", "type": "number", "value": "={{ $now.setZone('Europe/Berlin').weekday }}" }, { "id": "d4c425fb-90d0-4178-a316-745752c16db3", "name": "caption", "type": "string", "value": "={{ ({1:$json.captionMonday,2:$json.captionTuesday,3:$json.captionWednesday,4:$json.captionThursday,5:$json.captionFriday,6:$json.captionSaturday,7:$json.captionSunday})[$now.setZone('Europe/Berlin').weekday] || '' }}" } ] } } }, { "id": "694108bf-1685-42c2-8329-75304e1ae38a", "name": "Text vorhanden?", "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ 1360, 400 ], "parameters": { "options": {}, "conditions": { "options": { "version": 2, "leftValue": "", "caseSensitive": false, "typeValidation": "loose" }, "combinator": "and", "conditions": [ { "id": "88fe3525-e8a3-441c-bc6f-1f7003ce8edb", "operator": { "type": "string", "operation": "notEmpty", "singleValue": true }, "leftValue": "={{ $json.caption }}", "rightValue": "" } ] } } }, { "id": "694060ea-000c-51cf-bdbe-e11538bc03b8", "name": "Entwurf anlegen", "type": "n8n-nodes-social-poster.socialPoster", "typeVersion": 1, "position": [ 1640, 300 ], "parameters": { "resource": "draft", "operation": "create", "workspace": "", "account": "={{ $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" } } }, { "id": "5c9f9534-de63-5b6d-b58b-1b53d29e068a", "name": "Soll geplant werden?", "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ 1920, 300 ], "parameters": { "options": {}, "conditions": { "options": { "version": 2, "leftValue": "", "caseSensitive": false, "typeValidation": "loose" }, "combinator": "and", "conditions": [ { "id": "cf850e51-6278-5e42-8350-77e2b3d87b32", "operator": { "type": "string", "operation": "equals" }, "leftValue": "={{ String($('Text für heute wählen').item.json.modus || \"\").trim().toLowerCase() }}", "rightValue": "planen" } ] } } }, { "id": "db3d3b07-c52a-53da-989f-0f75ed8025d1", "name": "Entwurf planen", "type": "n8n-nodes-social-poster.socialPoster", "typeVersion": 1, "position": [ 2200, 200 ], "parameters": { "resource": "post", "operation": "scheduleDraft", "workspace": "", "draftRef": "={{ $('Entwurf anlegen').item.json.draft.draft_ref }}", "scheduleMode": "minutes", "minutesFromNow": "={{ $('Text für heute wählen').item.json.minutesFromNow }}", "xContentReviewed": false }, "credentials": { "socialPosterApi": { "id": "YOUR_SOCIAL_POSTER_CREDENTIAL", "name": "Social Poster API" } } } ], "pinData": {}, "connections": { "Täglich um 9 Uhr": { "main": [ [ { "node": "Einstellungen", "type": "main", "index": 0 } ] ] }, "Einstellungen": { "main": [ [ { "node": "Text für heute wählen", "type": "main", "index": 0 } ] ] }, "Text für heute wählen": { "main": [ [ { "node": "Text vorhanden?", "type": "main", "index": 0 } ] ] }, "Text vorhanden?": { "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 } ], [] ] } }, "active": false, "settings": { "executionOrder": "v1", "availableInMCP": false, "timezone": "Europe/Berlin" }, "meta": { "templateCredsSetupCompleted": false }, "tags": [] }