AI Article Rewriter & WordPress Draft Publisher via Discord

Alessandro Federici

Overview

This advanced automation was designed to help a client in the automotive content niche streamline the entire process of republishing news articles — from link to finished WordPress draft — with zero manual effort.
The client’s goal was simple in theory but complex in execution:

“I want to send a link from Discord and have the system fetch the article, rewrite it completely, upload the images, and save it as a draft in WordPress — all without me lifting a finger.”

🚀 What the automation does

As soon as the user sends a link (e.g. from Motor1, Hdmotori, Quattroruote, or Carscoops) in a specific Discord channel, a Webhook is triggered, kicking off a multi-layered Make.com scenario that performs the following:
Input & Trigger
A link is posted in Discord → Webhook receives it and triggers the flow.
Web Scraping & Fallback Handling
The content of the article is extracted via HTTP or HTML parsers.
If the target site has strong bot protection, the system automatically switches to a third-party scraper (Apify) for reliable extraction.
Text Parsing & Data Extraction
Using multiple text parsers, regex filters, and routers, the flow isolates key information like:
Title
Intro paragraph
Core content
Images
Author/date (if needed)
Unwanted sections (ads, legal disclaimers, footers) are automatically cleaned.
Content Generation via AI
The extracted content is rewritten with OpenAI (ChatGPT) to ensure originality, remove redundancy, and improve structure.
Paragraphs are split, unified and structured using aggregators and iterators for precise formatting.
Image Hosting & Upload
Images are uploaded to ImgBB via HTTP calls.
A custom SSH command uploads them directly to the client’s WordPress hosting folder, ready for use.
WordPress Post Creation
The rewritten article, with clean HTML and updated image paths, is created as a draft post via the WordPress module in Make.
Confirmation & Feedback
A final Discord message notifies the user that the article has been successfully processed and saved as a draft.

⚙️ Per-Site Custom Automation Logic

To ensure the highest content quality and accuracy, each source website (such as Motor1, Hdmotori, Carscoops, etc.) requires its own customized automation logic.
While AI is powerful, it can’t always determine which parts of an article are contextually relevant or redundant. That’s why I deliberately separate the scraping logic from the AI rewriting:
Using regex filters, text parsers, and route conditions, I manually define site-specific rules to extract only the most valuable parts of each article.
The AI (OpenAI GPT) is used only for rewriting and language refinement (or translating) — not for deciding what content to keep.
This approach ensures that the final article is not just clean and readable, but factually accurate, context-aware, and free of noise like cookie banners, disclaimers, related articles, or ads.
Each supported site is carefully mapped and cleaned through dedicated Make scenario branches, giving me full control and flexibility to adapt when the site layout changes.

Tools Used / Stack

Make (Integromat) – core orchestration logic
Discord – trigger input + status output
Webhooks – event-driven logic
Text Parsers & Regex – data cleanup and filtering
Apify – advanced web scraper
HTTP - for scraping and make HTTP requests to upload images
ImgBB – image hosting
SSH Console – server-side image management
OpenAI GPT – AI content rewriting
WordPress – CMS integration for draft publishing

Key Features

This isn’t just a basic automation — it’s a true content ops engine, capable of:
Replacing manual article reformatting and rewriting
Bypassing scraping restrictions intelligently
Handling both content and media in parallel
Delivering a ready-to-publish WordPress draft from a single Discord message
No Zapier. No copy-pasting. No need for expensive scraping APIs or plugins.

Outcome

From Discord link to a fully rewritten, image-loaded, formatted, and saved draft article — in one click. The client only needs to review, adjust photo positions, and publish.

Benefits for the client

🕒 Saved dozens of hours per week on manual content creation
🧠 Generated SEO-friendly rewritten articles with minimal effort
📥 Handled images, links, and formatting automatically
📢 Used a simple Discord workflow instead of a CMS backend
💸 Cut costs by avoiding premium scrapers, writers, and plugins
Like this project

Posted Jun 1, 2025

This automation was designed to streamline the entire process of republishing news articles — from link to finished WordPress draft — with zero manual effort.

Auto Social Publisher – From WordPress to Multi-Platform Post
Auto Social Publisher – From WordPress to Multi-Platform Post
Automated YouTube Video Analysis System
Automated YouTube Video Analysis System
Lead Management Automation Flow
Lead Management Automation Flow
Smart 360 CRM Automation Project
Smart 360 CRM Automation Project

Join 50k+ companies and 1M+ independents

Contra Logo

© 2025 Contra.Work Inc