Convert Notion page to WordPress (Gutenberg) HTML
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Notion.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Edit Fields (Edit Fields (Set)): sets 1 field: notion_url
- Get a database page (Notion): get (database page)
- Get many child blocks (Notion): get many (block)
- decode paragraphs (Code): runs custom JavaScript code
- decode blocks (Code): runs custom JavaScript code
- drop unnecessary fields (Edit Fields (Set)): sets 5 fields: id, parent_id, type…
- nested blocks (Code): runs custom JavaScript code
- only top level blocks (Filter): keeps only the items that match a condition
- choose content field (Edit Fields (Set)): sets 1 field: wp
- Aggregate: combines items into one
…plus 1 more step. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Notion
n8n-nodes-base.notion - Code
n8n-nodes-base.code - Aggregate
n8n-nodes-base.aggregate - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter
From the author
This workflow fetches the complete content of a specific Notion page and converts all its blocks into a single HTML string compatible with the WordPress Gutenberg block editor. It's designed to be used as a sub-workflow. You can call it from a parent workflow…