Help Needed: Converting and Saving Markdown as Notion Pages Using n8n

Help Needed: Converting and Saving Markdown as Notion Pages Using n8n

I am a beginner in n8n and often find myself confused while exploring its features. My goal is to save lengthy markdown documents as content in Notion pages.

Recently, I discovered a community node called n8n-nodes-notion-markdown created by @JingerTea. After trying it out, I found that this node efficiently converts markdown into JSON format compatible with Notion.

The problem I am facing is figuring out how to implement the process of saving this JSON-formatted result as blocks in the body of a Notion page.

If anyone has experience with this process, I would greatly appreciate it if you could guide me on how to set it up.

Thank you in advance for your help!

2 Likes

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @houarnu166

Thanks for posting here and welcome to the community! :partying_face:

Can you share what the input looks like exactly? (Some dummy data)

Tip for sharing your workflow in the forum

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!


In general though you should be able to map the inputs like in this demo:

1 Like

Hi, thank you for your help!

First of all, I want to extract a specific newsletter from Gmail and save the content as a single page in the notion database, but notions are peculiarly blocky and can only be saved in markdown form.

So the workflow I’m creating is as follows.

[Gmail Trigger]->[Markdown the content]->[Format the markdown into a notion (feat.*community node*)]->[Save it to the Notion (not yet created)].

Here’s the resulting JSON after formatting the notions in the markdown.

(I wanted to post it as code, but got stuck on the character limit).

‘converted-markdown’ is the result output of the notion formatting.

I will leave workflow code.

You can pin the data of the last node like this:

And then copy-paste your entire workflow again? (between two ``` blocks)

Thanks so much! :pray:

I wanted to, but the character limit prevented me from doing so.
If you don’t mind, I’ll post a link to my Google Drive.

Link

@houarnu166 You’ll need to use the notion API.
I have an example in this link: Getting markdown out of AI Agents and Tools - #2 by Jim_Le

I posted this feedback post on extending the notion node a while ago which would enable posting blocks JSON via the notion node and fix your issue but no response as yet. Hopefully, this will get updated in the future.

any luck figuring this out? It seems the last step of actually getting it work is not clear…

1 Like

Looks like you have the same problem as me, I’m still waiting for someone to fix this.

1 Like
3 Likes


Hello n8n community!

I can’t thank you enough for this valuable resource. I’m trying to implement the Notion API workflow, but I’m currently experiencing an issue with the Patch HTTP request node. When attempting to upload markdown output to a Notion page, I keep receiving the following error:

Problem in node 'Upload markdown output to page via Notion API1'
Bad request - please check your parameters

I’m using a self-hosted instance on Heroku running version 1.66.0. Could anyone please confirm if this workflow is still functional with the current Notion API? Or am I potentially missing something in my configuration?

Any guidance would be greatly appreciated!:pray::heart:.

Hi @kdventures
it looks like you got some unwanted characters in your URL field

Also, I would recommend to update your n8n version. 1.66 is pretty old by now :wink:

1 Like


The character got in there while I was trouble shooting
I just ran it again and I got the same error

@kdventures
this is coming from the Notion API. You needs to add a children property in the body you’re sending.

2 Likes

Thank you
I got it to work!

1 Like