Not too long ago, I shared that I added Cusdis comments to this blog. I love its privacy-first approach and lightweight footprint, but manual moderation can be a bit of a chore.
The never-ending spam, the clicking of “Approve” buttons, and the mental energy needed to write a thoughtful “Thank you” every time… I felt like there had to be a better way. So, I built a fully automated system using n8n and Gemini.
Today, I’m sharing the guide and the slides on how to set it up!
👉 View Guide: Cusdis Auto-approval and AI Reply Automation
What does this automation actually do?
It goes way beyond simple notifications. Here is the breakdown of the workflow:
- AI-Powered Spam Detection: Using the Gemini 2.5 Flash model, it analyzes the content to distinguish between genuine feedback and annoying spam.
- Auto-Approval & Smart Replies: If it’s a valid comment, the system approves it immediately. The AI then drafts a natural-sounding reply that matches the tone and language of the original commenter.
- The “Human” Delay: Getting a reply in 0.1 seconds feels robotic. I used the
Waitnode in n8n to introduce a random delay (between 10 to 60 minutes) to make the interaction feel natural, as if I actually saw it and took a moment to respond. - Self-Hosted Infrastructure: I’ve included how to use Cloudflare Tunnel to securely expose n8n running on your local NAS or server to receive webhooks.
The System Flow
The core logic is straightforward:
- Cusdis Webhook: Sends data to n8n when a new comment is posted.
- n8n Workflow:
- Gemini Analysis: Handles spam filtering and reply generation (returning clean JSON).
- Wait Node: Adds a human-like delay.
- HTTP Request: Calls the Cusdis API to finalize the approval and post the reply.
Why go through the trouble?
As a developer, automating repetitive tasks is practically a reflex. But more importantly, I wanted to ensure that communication with readers never feels ignored.
Whether I’m asleep or deep in a coding session, I want anyone who takes the time to leave a comment to receive a warm response. If this automation makes people feel even slightly better about visiting my blog, it’s a win in my book.
The full implementation details and prompt settings are in the slides below. Hope this helps you manage your own blog more efficiently!
🚀 Check out the full automation guide here
Note: I’m a solo developer based in Korea. To share my journey with a wider audience, I used AI to help translate my thoughts into English. If any phrasing feels a bit “too AI” or unnatural, please bear with me—I’m spending most of my energy on the code!
Related Posts