This n8n workflow automates the process of cleaning up and archiving outdated or incomplete pages within a Notion database, ensuring that only relevant and complete pages are retained and synchronized with WordPress or other systems. It is triggered daily at 2 am to maintain a clean and organized Notion workspace.
The workflow begins with a schedule trigger set for every day at 2 am. It retrieves all databases from Notion and then fetches all pages within each database. For each page, it retrieves all blocks (content elements) and examines their properties.
Using custom functions, the workflow checks each page for specific conditions:
– Whether page blocks contain empty text
– Whether page properties are empty or incomplete
If a page’s blocks or properties are empty, the workflow marks these pages for deletion. Pages identified as incomplete or outdated are then archived directly within Notion, preventing clutter and maintaining data integrity.
This automation is particularly useful for content managers, team collaboration environments, or any scenario where regularly pruning and archiving Notion pages ensures better organization, data hygiene, and readiness for synchronization with external platforms like WordPress.
Reviews
There are no reviews yet.