Category: Automations › Social Media & Content · Best for: Businesses wanting steady blog traffic · Platform: n8n · Steps: 18
What it does
The AI researches a topic and writes a blog post made for Google.
- Query: The main topic for the blog post, representing the most trending news in the Men's Health field.
Works with: Telegram, OpenAI, Tool Workflow, Agent, Memory Buffer Window, Output Parser Structured
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- OpenAI API key: how to connect (used by OpenAI Chat Model, gpt-4o-mini, OpenAI Chat Model1, OpenAI Chat Model2)
- Telegram bot token from @BotFather: how to connect (used by Tele HoangSP_Social_Media, Telegram)
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Point these fields at your own sheets, chats and accounts:
- Telegram →
chatId: choose your own
- Telegram →
- Click Save.
Test it
- Click Test workflow (or Execute workflow). On form submission starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- On form submission starts the workflow (Form).
- Tele HoangSP_Social_Media starts the workflow (Telegram).
- OpenAI Chat Model1 uses AI (OpenAI).
- Perplexity_Searcher uses AI (Tool Workflow).
- Blog Content Generator uses AI (Agent).
- gpt-4o-mini uses AI (OpenAI).
- OpenAI Chat Model uses AI (OpenAI).
- OpenAI Chat Model2 uses AI (OpenAI).
- Metadata Generator uses AI (Agent).
- Simple Memory uses AI (Memory Buffer Window).
- Simple Memory1 uses AI (Memory Buffer Window).
- Structured Output Parser uses AI (Output Parser Structured).
- Metadata Extractor uses AI (Output Parser Structured).
- AI Agent uses AI (Agent).
- AI Agent1 uses AI (Agent).
- Merge uses Merge.
- Telegram uses Telegram.
- Combine Blog Details uses Aggregate.
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
Write SEO Optimized Blog Post
Perplexity Research
Sample Generic Search Terms and write content
-
Query: The main topic for the blog post, representing the most trending news in the Men's Health field.
-
Research findings: Detailed information from credible sources relevant to the blog topic. Your post should be based on this research.
With this information, write a comprehensive blog post that:
-
Include the query in the blog title, H2 heading, and the beginning of the introduction.
-
Incorporate all the details from the research findings, including the source URL for potential hyperlinks.
-
Use a professional but engaging tone, highlighting interesting developments and challenges in the industry.
-
Speak in a natural and logical manner, making it easy for readers to follow.
-
Be 1500 to 2000 words long.
-
Be written at a level that can be read by people who are interested in learning more. And want to receive additional care and support to solve the problem of interest.
Additional Requirements:
-
Include practical lessons or helpful tips for recruiters and HR professionals.
-
Highlight how the topic relates to the company's services or expertise.
-
Include a call to action (CTA) that encourages readers to explore the company's services or contact you for more information.
Create an entire blog post draft in your first output. Don't stop or cut it short.
Your output should be the blog post and nothing else.
Here are the details for this blog post project: Query: [Execute previous nodes for preview]
Create Title, Slug & Meta
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method