Unpublish NSFW ImageKit uploads with GPT-4o Vision via OpenRouter
UnknownWhat this workflow does
This AI workflow has 7 nodes and runs on Imagekit events (file.created). Along the way it connects OpenRouter Chat Model and Imagekit (community).
How it runs
Trigger: On Imagekit events (file.created).
- Download Image (HTTP Request): calls an HTTP API
- GPT-4o Vision (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Structured Output Parser
- Is NSFW? (If): checks a condition and branches into true / false
- Unpublish File (Imagekit): publish (file)
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @imagekit/n8n-nodes-imagekit is verified or supports 3.0 (used in New File Upload).
- Check that @imagekit/n8n-nodes-imagekit is verified or supports 3.0 (used in Unpublish File).
Nodes used (7)
- Imagekit Trigger
@imagekit/n8n-nodes-imagekit.imagekitTrigger - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Imagekit
@imagekit/n8n-nodes-imagekit.imagekit
From the author
Quick Overview This workflow triggers on new ImageKit uploads, downloads the image, uses OpenRouter (OpenAI GPT-4o) vision to run an NSFW check, and automatically unpublishes flagged assets in ImageKit so they are not served via your CDN. How it works 1.…