n8n

How to Automate Notion Content Formatting?

Keep Notion pages clean and consistent without copy paste work. The flow watches a database for page updates, converts content to Markdown, then rebuilds styled blocks and adds them back. Great for content teams and ops who want repeatable page structure.

An event trigger checks the chosen Notion database every minute. Blocks are fetched two ways. One path uses the Notion Blocks get all call, which is fast but drops bold and links. The other path uses a custom request that reads rich text, then code nodes turn blocks into Markdown and back into proper Notion blocks. Finally a request appends the new blocks to the same page.

Connect a Notion account in n8n Cloud and share the database with the integration. Pick the database, decide which path you want, and set the polling time that fits your team. Expect fewer formatting fixes, faster updates, and easy page cloning for briefs, notes, and drafts.

What are the key features?

  • Notion trigger checks for page updates in a database every minute.
  • Official Notion blocks get all pulls child blocks quickly.
  • Optional custom request reads full rich text to keep styling.
  • Split Out processes arrays of blocks item by item.
  • Code converts Notion blocks into Markdown format.
  • Alternate code turns full rich text into Markdown with styles.
  • Code builds Markdown back into valid Notion blocks.
  • HTTP request appends the new blocks as children of the same page.
  • Single Notion credential is used across all nodes.

What are the benefits?

  • Reduce manual copy paste from 30 minutes per page to 2 minutes
  • Preserve bold, links, and headings for higher accuracy
  • Automate 100 percent of block to Markdown conversion and back
  • Support three times more content during batch updates
  • Keep all work inside Notion with no extra tools

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Notion. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create a Notion credential. Click Create new credential, choose Notion, then follow the on screen steps to approve access to your workspace. Name it Notion Main.
  4. Open the Notion Trigger node. Select the Notion Main credential. Choose your database and set the event to page updated in database. Keep the polling to every minute or adjust as needed.
  5. Open the Notion node that reads blocks. Select Notion Main. Leave Block ID as the page id from the trigger and keep return all enabled.
  6. Open Get Child blocks. In Authentication, select Notion Main. Keep the built in settings so it reads child blocks with rich text.
  7. Decide on one content path. To keep full styling, enable the custom request path and disable the simple Notion Blocks path. To avoid duplicate content, do not run both at the same time. Use the Disable option in each node menu.
  8. Review the code nodes that convert Notion blocks to Markdown and back. You can adjust how headings, lists, and links are handled if your pages need changes.
  9. Open Add blocks as Children. Select Notion Main. Confirm the URL uses the page id from the trigger and that the JSON body sends the blocks array.
  10. Test the flow. Update a page in the chosen Notion database. After a minute, refresh the page and confirm new blocks were added and formatting looks right.
  11. If nothing happens, make sure the Notion integration has access to the database. Share the database with the integration in Notion. Also check that the correct database is selected in the trigger and that credentials are connected.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Notion

Sign up

Free plan: $0 per member / mo (Public API included)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.