Overview
Replaces the viral r/n8n 20-hour build. Takes an article URL or text, researches competitor takes on Google SERP, mines Reddit discussion quotes, and outputs three platform-tuned posts (LinkedIn, X thread, Reddit draft) ready for review in Slack.
Trigger
Webhook on publish or manual trigger with article URL
Schedule
Triggered on article publish
Workflow Steps
Ingest article
Webhook accepts article URL or raw text and extracts the main topic.
Competitor SERP research
Scavio Google search for the topic to pull 10 competing takes.
Reddit quote mining
Scavio Reddit search for community quotes and real phrasing.
LLM generation
Prompt an LLM with article + SERP + Reddit to draft LinkedIn, X thread, and Reddit variants.
Review in Slack
Drop the three drafts into a #social-drafts channel for human approval.
Publish on approve
Emoji reaction triggers auto-publish to LinkedIn, X, and Buffer.
Python Implementation
import os, requests
API_KEY = os.environ["SCAVIO_API_KEY"]
H = {"x-api-key": API_KEY}
def research(topic):
serp = requests.post("https://api.scavio.dev/api/v1/search",
headers=H, json={"query": f"{topic} perspective"}).json()
rdt = requests.post("https://api.scavio.dev/api/v1/search",
headers=H, json={"platform": "reddit", "query": topic}).json()
return {"serp": serp.get("organic_results", [])[:10],
"reddit": rdt.get("posts", [])[:10]}
print(research("ai coding agents 2026"))JavaScript Implementation
const API_KEY = process.env.SCAVIO_API_KEY;
const H = { "x-api-key": API_KEY, "content-type": "application/json" };
async function research(topic) {
const [serp, rdt] = await Promise.all([
fetch("https://api.scavio.dev/api/v1/search", {
method: "POST", headers: H, body: JSON.stringify({ query: topic + " perspective" })
}).then(r => r.json()),
fetch("https://api.scavio.dev/api/v1/search", {
method: "POST", headers: H, body: JSON.stringify({ platform: "reddit", query: topic })
}).then(r => r.json())
]);
return { serp: serp.organic_results?.slice(0,10), reddit: rdt.posts?.slice(0,10) };
}
console.log(await research("ai coding agents 2026"));Platforms Used
Web search with knowledge graph, PAA, and AI overviews
Community, posts & threaded comments from any subreddit