{"product_id":"publish-notion-posts-to-linkedin-via-webhook-n8n-workflow","title":"Publish Notion Posts to LinkedIn via Webhook (n8n Workflow)","description":"\u003ch3\u003ePublish Notion Posts to LinkedIn with an n8n Webhook\u003c\/h3\u003e\n\u003cp\u003eTurn a Notion task into a ready-to-publish LinkedIn post automatically. This \u003cstrong\u003en8n workflow\u003c\/strong\u003e listens for a webhook request, pulls the first tagged Notion “Resultado” that’s meant for \u003cstrong\u003eLinkedIn\u003c\/strong\u003e, optionally grabs an attached image, publishes it (personal or organization), and then updates Notion with the LinkedIn URL and completion status.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives a webhook\u003c\/strong\u003e: it accepts a POST request containing a Notion task object in \u003ccode\u003ebody.tarefa\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEnriches context in Notion\u003c\/strong\u003e: calls the “\u003cstrong\u003eEnriquecer Página do Notion\u003c\/strong\u003e” sub-workflow to load related results, parent tasks (recursively), and project client accounts from Notion.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSelects the correct LinkedIn-ready result\u003c\/strong\u003e: it chooses the first Notion result tagged with \u003cstrong\u003epost\u003c\/strong\u003e and \u003cstrong\u003elinkedin\u003c\/strong\u003e taxonomies—first checking the task, then the closest ancestors.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFallback behavior\u003c\/strong\u003e: if no tagged result is found, it loads project knowledge items (and subitems) and selects the first pending LinkedIn post result (not “Concluído”, no URL\/date). If content is empty, it stops with an error.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOptional image attachment\u003c\/strong\u003e: if the selected result has files in the Notion “Arquivos” property, it downloads the first file and attaches it as the LinkedIn post media.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePublishes to LinkedIn\u003c\/strong\u003e: posts as an \u003cstrong\u003eorganization post\u003c\/strong\u003e when an organization ID exists from the related client accounts; otherwise publishes as a \u003cstrong\u003epersonal profile post\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpdates Notion\u003c\/strong\u003e: builds the LinkedIn post URL from the returned URN and updates the corresponding Notion result with the URL, date, and completion status.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAutomate LinkedIn publishing when content tasks are created\/updated in \u003cstrong\u003eNotion\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eUse a single webhook trigger to publish the “first LinkedIn-ready” post across parent tasks\/projects.\u003c\/li\u003e\n  \u003cli\u003eQueue posts in Notion and have them published with images as soon as they become pending.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/workflow logic\u003c\/strong\u003e: \u003ccode\u003ewebhook\u003c\/code\u003e, \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003cstrong\u003eLinkedIn\u003c\/strong\u003e node, and a \u003cstrong\u003esticky note\u003c\/strong\u003e for workflow guidance.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations\u003c\/strong\u003e: \u003cstrong\u003eNotion\u003c\/strong\u003e (task enrichment + results update) and \u003cstrong\u003eLinkedIn\u003c\/strong\u003e (publish + returned URN handling).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46217922642099,"sku":"N8N-20815","price":28.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/Z8o-EEMQsfmMpqtsH8K2g_iSkrGdb6.png?v=1791883414","url":"https:\/\/buyflowscripts.com\/products\/publish-notion-posts-to-linkedin-via-webhook-n8n-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}