The client wanted to publish SEO-friendly content regularly to improve search engine rankings and organic traffic. However, the traditional blogging process required multiple manual steps:
Publishing quality content consistently required significant time and resources, making it difficult to scale content marketing efforts without a large writing team.
I designed and implemented a fully automated AI blogging workflow using N8N, OpenAI, and Gemini.
The workflow starts with a Google Sheet that acts as the content queue. Users simply add blog topics and target keywords into the spreadsheet.
Every day at a scheduled time, N8N automatically selects unpublished topics, generates a complete SEO-optimized blog article, creates metadata, produces a featured image, and publishes everything directly to the website through API and webhook integrations.
Once the content is successfully published, the workflow updates the Google Sheet status automatically to prevent duplicate posting. The entire process operates without any manual intervention.
▶ Watch: End-to-end walkthrough — from Google Sheet entry to live published blog post with AI-generated image.
A Google Sheet serves as the lightweight CMS where users maintain blog topics, target keywords, and publishing status. The workflow only processes rows marked as unpublished, ensuring no duplicate content is ever generated.
OpenAI automatically creates fully structured, SEO-ready content including:
Gemini generates custom featured images based on the blog topic and content context, eliminating the need for manual image sourcing or design work entirely.
Once content and images are generated, N8N sends the data through webhooks and API integrations to publish the article directly on the website. The corresponding Google Sheet row is then automatically updated to "Published" to prevent duplicate processing and maintain a clear publishing history.
constkeyword=$json.keyword;consttopic=$json.topic;return[{json: {prompt:`Write an SEO-optimizedblog about "${topic}".Target keyword: "${keyword}".Include:- Meta Title- Meta Description- H1, H2, H3 headings- FAQ Section- Conclusion`} }];// Image generated by Gemini// Published automatically via API
The automation transformed a manual content creation process into a fully autonomous publishing system. By combining Google Sheets, OpenAI, Gemini, and N8N workflows, the client can now generate and publish SEO-optimized blog posts complete with featured images on a daily schedule. This significantly reduces content production costs while enabling consistent organic growth through automated content marketing.
Let's build an AI blogging system for your business.