How my workflow needs to be improved

I built a node with the goal of: automatically fetching subscribed articles via RSS, then converting the HTML-formatted articles to plain text using an HTML node, then creating a Notion page, and then formatting JSON via a code node to convert the JSON into Notion blocks. Available tag types are: heading_1, heading_2, heading_3, paragraph, image, Bulleted List Item, Numbered List Item, with the requirement that each paragraph returns a separate block. But aside from some issues, I debugged for over three hours and I have no idea where to start

n8n version:2.15.1
Database (default: SQLite):postgres
n8n EXECUTIONS_PROCESS settings (default: own, main):default
Running n8n (Docker, npm, n8n cloud, Desktop app):cloud
Operating system:windows
thankyou!

Please share the workflow.

What is the actual error?

Perhap you can use this as reference

@zhou_yu have you restarted your n8n instance and tried again?

@zhou_yu the Switch node is unnecessary here, your Code node already builds complete Notion block objects with the right type info baked in. just skip it and append each block directly via HTTP Request to the Notion API, way cleaner than routing 7 switch branches into 7 separate Notion nodes

swap in your actual page ID where it says $('Create Page').item.json.id and hook up your Notion creds on the HTTP Request node, the API handles block type routing for you so no Switch needed at all.