md
Absolutely — let’s build this step by step like a real production system. 🚀 I’ll guide you **from zero → live bot** with exact actions, node choices, prompts, and checks. We’ll build an **n8n workfl

Absolutely — let’s build this step by step like a real production system. 🚀 I’ll guide you from zero → live bot with exact actions, node choices, prompts, and checks.
We’ll build an n8n workflow that:
- Fetches research papers on your topics
- Understands them
- Converts them into engaging Medium-style articles
- Publishes them to your site
This is 100% legal, ethical, and powerful.
🧩 PART 0 — What you need ready
Before we start, make sure you have:
-
✅ An n8n instance (cloud or self-hosted)
-
✅ An OpenAI API key (or any LLM provider supported by n8n)
-
✅ A place to publish:
- WordPress
- Ghost
- Or your own API endpoint
Tell me if you’re using WordPress, Ghost, or custom — I’ll tailor the publishing node.
🧩 PART 1 — Choose your research sources
We’ll use arXiv (best for tech/AI/engineering) and optionally Semantic Scholar.
Step 1: Pick your topics
Examples:
- “drones”
- “battery technology”
- “artificial intelligence”
- “robotics”
- “computer vision”
Tell me 3–5 topics you want.
🧩 PART 2 — Create the n8n workflow
Open n8n → Click New Workflow.
🔹 Step 1: Add a Trigger
Add:
-
Cron Node
- Mode: Every day (or every 6 hours)
- Time: Choose any
This runs your bot automatically.
🔹 Step 2: Fetch papers from arXiv
Add:
- HTTP Request Node
Configure:
- Method:
GET - URL:
http://export.arxiv.org/api/query?search_query=all:YOUR_TOPIC&start=0&max_results=5&sortBy=submittedDate&sortOrder=descending
Example:
http://export.arxiv.org/api/query?search_query=all:drones&start=0&max_results=5&sortBy=submittedDate&sortOrder=descending
Set:
- Response Format:
JSONorText
🔹 Step 3: Parse the arXiv feed
Add:
- Function Node
Paste this:
const xml = items[0].json;
const entries = xml.feed.entry || [];
return entries.map(entry => ({
json: {
title: entry.title,
summary: entry.summary,
link: entry.id,
authors: entry.author.map(a => a.name).join(', '),
published: entry.published
}
}));
This extracts:
- Title
- Abstract
- Authors
- Link
🔹 Step 4: Clean the abstract
Add:
- Set Node
Create fields:
clean_summary→ Expression:
{{$json["summary"].replace(/\s+/g, ' ').trim()}}
🧩 PART 3 — Turn research into a Medium-style article
🔹 Step 5: Add AI Rewrite Node
Add:
- OpenAI Node (or your LLM node)
Model: GPT-4.1 / GPT-4o / GPT-5 (whatever available)
Prompt:
You are a science writer.
Read the following research abstract and write a Medium-style article for general readers.
Rules:
- Do NOT copy sentences.
- Use storytelling.
- Explain the problem, solution, and why it matters.
- Avoid technical jargon.
- Make it engaging and easy to read.
- Add a catchy headline.
- End with a short “Source” section crediting the original paper with title, authors, and link.
Abstract:
{{$json["clean_summary"]}}
Paper title: {{$json["title"]}}
Authors: {{$json["authors"]}}
Link: {{$json["link"]}}
Output:
- Store as
article_body
🧩 PART 4 — Add plagiarism safety + quality filter
(Optional but recommended)
🔹 Step 6: Add another AI Node (Quality Check)
Prompt:
Check this article for:
- Originality
- No sentence overlap with the abstract
- Readability
If it is good, reply ONLY with "PASS".
If not, reply ONLY with "FAIL".
Article:
{{$json["article_body"]}}
Then add:
-
IF Node
- Condition: Output equals
PASS - True → Publish
- False → Stop workflow
- Condition: Output equals
🧩 PART 5 — Publish to your site
🔹 Step 7: Publishing Node (example: WordPress)
Add:
-
WordPress Node
- Operation: Create Post
- Title: Extract headline from article
- Content:
{{$json["article_body"]}} - Status: Draft or Publish
If you’re not using WordPress, tell me — I’ll give you the correct node setup.
🧩 PART 6 — Logging & Monitoring
🔹 Step 8: Add Google Sheet / DB / Email log
Store:
- Paper title
- Date
- Link
- Article title
- Status
This prevents duplicates and gives you a content audit trail.
🚀 Bonus: Make it even smarter
Later we can:
- Avoid duplicate topics
- Rank papers by citations
- Detect trending research
- Add your brand tone automatically
- Auto-generate images
- Auto-post to Medium, LinkedIn, Twitter
🎯 Next step (I need from you)
Reply with:
- ✅ Your topics
- ✅ Your publishing platform (WordPress / custom / something else)
- ✅ Whether you want daily, weekly, or instant publishing
I’ll then:
- Generate a ready-to-import n8n JSON workflow
- Customize prompts for your niche
- Optimize the publishing flow for your setup
Written by
minidroneshop8Sharing knowledge about drones and aerial technology.

