Skip to main content

Convert Notion to markdown and back to Notion

Workflow preview

Workflow preview
100%
Convert Notion to markdown and back to Notion preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow converts Notion pages to markdown, and then converts that markdown back to Notion blocks. It will triple the content of the last updated page it finds. This is useless by itself, but ...

Best for

  • Document Extraction automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.notiontrigger, n8n-nodes-base.notion, n8n-nodes-base.code, n8n-nodes-base.splitout, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Anton Vanhoucke.

Original n8n.io source

1.1 Workflow description

Title
Convert Notion to markdown and back to Notion
Workflow name
Convert Notion to markdown and back to Notion

This workflow converts Notion pages to markdown, and then converts that markdown back to Notion blocks. It will triple the content of the last updated page it finds. This is useless by itself, but you can copy-paste from this workflow to create your own.

Prerequisites

A notion account with some pages or databases

Setup instructions

Create a notion credential and share some pages as described here: https://docs.n8n.io/integrations/builtin/credentials/notion/

How it works

  • The HTTP Request gets notion child blocks from a page, because the default n8n block only gets plain text and no links.
  • The first code block converts it to markdown.
  • The second code block converts it back to Notion blocks
  • The last HTTP block appends everything to the original Notion page, essentially duplicating it for the purpose of demoing the script.

I hope in the future we get official n8n blocks that extract markdown, or use markdown to write to Notion. There is community block that also does this, but this template is easier: you can simply copy-paste the blocks from this workflow.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Notion Trigger

Type / Role
n8n-nodes-base.notionTrigger - notionTrigger
Config choices
Version 1

Block 2 - Notion

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.2

Block 3 - Notion Node Blocks to Md

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 5 - Full Notion Blocks to Md

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Md to Notion Blocks v3

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Add blocks as Children

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Get Child blocks

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

3. Summary Table

Workflow Convert Notion to markdown and back to Notion
Complexity intermediate
Nodes 12
Categories Document Extraction
Author Anton Vanhoucke
Published 13 Feb 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2901/2901.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Convert Notion to markdown and back to Notion do?

This workflow converts Notion pages to markdown, and then converts that markdown back to Notion blocks. It will triple the content of the last updated page it finds. This is useless by itself, but ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction use case.