This Article will explore a simple yet powerful use case for Moonlit. It's been more than a year since the release of ChatGPT and since then everyone has been exploring all the multitude of use cases that can be put to action using this powerful AI. One conclusion has been consistent, these language models are not optimal for long form content or more precisely not automation blog creation start to finish. However, they are really good at proof reading and improving existing content by being concise and following a clean structure as well as generating short-form content.
Today I will put these strengths into action by building a Moonlit App that takes a rough first draft for a blog post along with a short list of target keywords and have it proof read and optimized for a better reading experience as well as generate all the properties for our CMS. These can differ depending on your blog, for this example we will assume the CMS blog collection has the following fields:
I started by adding two text input nodes for getting the content copy and the keywords. Then our logic is quite simple we just used two ChatGPT nodes, the first one will be responsible for Proof Reading, it will take our rough draft and improve it using the following guidelines:
The next GPT Node will be responsible for generating the CMS properties for our blog. So to make sure that we are getting a valid JSON response I'll tick the 'Force JSON' checkbox and also emphasize it in my prompt.
I've set this app to allow cloning for anyone so you can clone it into your project and make your own custom changes (app). Every CMS uses a different set of properties so it only makes sense to have this app be shared publicly for cloning so you can copy it to your project to either:
Or whatever change you need to fit your use-case!
This does save us a bit of time as it is, but what if we have tens of rough drafts or hundreds of blog posts that can be recycled? Then we can put the Bulk Run feature into action. I've prepared a short list for demonstration, a CSV containing 5 technical blog posts I wrote a few years ago.
In the bulk run tab I've created a new job and uploaded a CSV containing the keywords along with the blog content and started the job. I can now download the result then import into our CMS collection to get a list of blog ready for publishing immediately!
Mohammad is a full-stack developer, and the founder of Moonlit Platform. He holds a Bachelor's degree in Computer Science & Artificial Intelligence, and is committed to continuous learning and skill enhancement. His journey is marked by a steadfast dedication to developing and delivering exceptional product experiences.