Automating Notion as a CMS for the Blog

👋 Learn how to automate Notion as a CMS for your blog, eliminating manual steps and streamlining your content management process.

Let’s continue from where we left off. I was able to do the proof of concept that I could use Notion as a CMS for my blog. However, it still had some manual steps that I needed to eliminate.

Namely:

Some optimizations like not rerunning the processes for previously generated blogs were also added as part of the overall goals.

For running the CLI command to fetch blogs, I decided to simply use Laravel’s scheduler. To make it target two birds with one stone, I also added the

npm run build

command to the main handler via the Process utility which gives you access to system commands.

The generation of descriptions was handed over to GPT API.

Now the end-to-end flow is complete and I should be able to simply write a new blog entry on my notion and it will show up on my blog.

How cool is that?!