{"product_id":"notion-to-linkedin-topic-selector-via-n8n-webhook-automation","title":"Notion to LinkedIn Topic Selector via n8n Webhook Automation","description":"\u003ch3\u003eAutomatically pick the right LinkedIn Topic from your Notion tasks—using an n8n webhook\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003eNotion to LinkedIn Topic Selector\u003c\/strong\u003e workflow listens for a \u003cstrong\u003eNotion task\u003c\/strong\u003e via webhook, finds the first available “Assunto” (topic) with a \u003cstrong\u003eLinkedIn-ready “Anotação”\u003c\/strong\u003e that hasn’t been published yet, and then writes the selected relations back to the task and its parent tasks in Notion.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives a webhook POST\u003c\/strong\u003e with the Notion task page object in \u003ccode\u003ebody.tarefa\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLoads related Notion pages\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003eFetches the task’s related \u003cstrong\u003eProjetos\u003c\/strong\u003e and their \u003cstrong\u003eTaxonomia\u003c\/strong\u003e, keeping only projects tagged \u003cstrong\u003e“Post”\u003c\/strong\u003e.\u003c\/li\u003e\n      \u003cli\u003eFor each matching \u003cstrong\u003ePost\u003c\/strong\u003e project, loads related \u003cstrong\u003eConhecimentos\u003c\/strong\u003e and their \u003cstrong\u003eTaxonomias\u003c\/strong\u003e, keeping only items tagged \u003cstrong\u003e“Assunto”\u003c\/strong\u003e.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTraverses the “Assunto” hierarchy\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003eRecursively loads each candidate Assunto’s \u003cstrong\u003eSubitem\u003c\/strong\u003e structure and associated \u003cstrong\u003eAnotações\u003c\/strong\u003e, including their \u003cstrong\u003eTaxonomias\u003c\/strong\u003e and \u003cstrong\u003eResultados\u003c\/strong\u003e.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSelects the first publishable match\u003c\/strong\u003e where an \u003cstrong\u003eAnotação\u003c\/strong\u003e is tagged \u003cstrong\u003e“Post”\u003c\/strong\u003e and \u003cstrong\u003e“LinkedIn”\u003c\/strong\u003e, and has an \u003cstrong\u003eempty “Resultados” relation\u003c\/strong\u003e (i.e., not yet published).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpdates Notion relations\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003eWrites the chosen \u003cstrong\u003e📚 Conhecimentos\u003c\/strong\u003e and \u003cstrong\u003e📝 Anotação\u003c\/strong\u003e back to the original task.\u003c\/li\u003e\n      \u003cli\u003eUpdates each related \u003cstrong\u003e“Item pai”\u003c\/strong\u003e page with the same relations.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eWhen a new content task is created in \u003cstrong\u003eNotion\u003c\/strong\u003e, automatically assign the correct \u003cstrong\u003eLinkedIn\u003c\/strong\u003e topic and annotation.\u003c\/li\u003e\n  \u003cli\u003eQueue posts by ensuring selection only happens for Anotações whose \u003cstrong\u003eResultados\u003c\/strong\u003e are still empty (not published).\u003c\/li\u003e\n  \u003cli\u003eKeep parent task pages consistent by updating both the task and its \u003cstrong\u003eItem pai\u003c\/strong\u003e relations.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eNodes\/approach: \u003cstrong\u003ewebhook\u003c\/strong\u003e, \u003cstrong\u003ehttp request\u003c\/strong\u003e (Notion API with Bearer Auth), \u003cstrong\u003esplit out\u003c\/strong\u003e, \u003cstrong\u003eif\u003c\/strong\u003e, and \u003cstrong\u003ecode\u003c\/strong\u003e, plus a \u003cstrong\u003esticky note\u003c\/strong\u003e for workflow notes.\u003c\/li\u003e\n  \u003cli\u003eSetup requires: a Notion integration token with access to the relevant databases\/pages and configuring the workflow variable \u003ccode\u003eNotion_Version\u003c\/code\u003e for the Notion API request header.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003ePerfect for n8n automation engineers and SaaS operators\u003c\/strong\u003e building reliable Notion-driven content pipelines for LinkedIn topic selection.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46217922674867,"sku":"N8N-20814","price":57.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/FWQCiXMbd3yKEfuqPS21D_DOP3u8jT.png?v=1791883440","url":"https:\/\/buyflowscripts.com\/products\/notion-to-linkedin-topic-selector-via-n8n-webhook-automation","provider":"N8N Commerce","version":"1.0","type":"link"}