Use this comprehensive n8n workflow to automate social media moderation. Instantly detect toxic Instagram comments using the Perspective API, hide them, and notify your team via Slack and Google Sheets.
Download this n8n workflow template and start using it instantly.
This n8n templates automation is perfect for:
Social media managers needing 24/7 moderation.
Brands with high traffic on Instagram posts.
Community managers seeking to maintain a positive online environment.
Users looking for practical n8n workflow examples integrating external AI services.
Maintaining a healthy and positive online community on Instagram can be challenging, especially when managing high volumes of comments. Manual moderation is slow and resource-intensive. This powerful n8n workflow solves this problem by providing automated, real-time defense against toxic behavior.
Utilizing a scheduled n8n trigger, the workflow polls for new comments, sends the text to the Perspective API for toxicity scoring, and immediately takes action if the score exceeds a threshold (set at 0.7). The automation automatically hides the comment, logs the evidence in a Google Sheet for auditing, and sends a critical alert via Slack. This specific n8n node combination ensures rapid response and transparent reporting.
This n8n automation is designed for periodic polling, running every 15 minutes using the initial n8n trigger to check for new activity:
Schedule Trigger starts the n8n workflow execution.Loop Over Comments n8n node processes each comment individually to prevent rate limiting and ensure granular analysis.IF Toxic n8n node evaluates if the returned toxicity score is greater than 0.7.Hide Comment (HTTP Request n8n node): Immediately hides the comment via the Instagram API.Alert Team (Slack): Sends a detailed notification to a designated Slack channel.Store Evidence (Google Sheet): Logs the comment text, user, and toxicity score for future review.To set up this powerful n8n workflow template, follow these steps:
Get Instagram Posts and Hide Comment n8n nodes.Detect Toxicity n8n node's JSON body with your actual CLIENT_TOKEN (API Key).Alert Team (Slack) n8n node. Update the channel name.Store Evidence (Google Sheet) n8n node, link your Sheet ID and ensure the required columns are ready for data appending.Schedule Trigger n8n trigger is correctly configured for your desired frequency (default is every 15 minutes) and activate the n8n workflow. Schedule Trigger (n8n trigger): Initiates the polling process automatically every 15 minutes, allowing this n8n workflow to run autonomously.
Get Instagram Posts (HTTP Request n8n node): Fetches recent media posts using the Instagram Graph API. Key Configuration: Requires YOURINSTAGRAMBUSINESSACCOUNTID.
Get Comments (HTTP Request n8n node): Retrieves comments for the post identified in the previous step. Key Configuration: Uses dynamic data linking to get the post ID.
Loop Over Comments (Split In Batches n8n node): Ensures that each comment is processed sequentially by the toxicity detector, which is crucial for maintaining flow control in this n8n workflow.
Detect Toxicity (HTTP Request n8n node): Sends comment data to the Perspective API for toxicity analysis. Key Configuration: Uses a POST request with the comment text embedded in the JSON body, requiring the user's Perspective API key.
IF Toxic (If n8n node): The core decision maker of this n8n node setup. It routes the flow based on a toxicity score threshold (>0.7).
Hide Comment (HTTP Request n8n node): Executes the moderation action by posting a 'hide: true' payload back to the Instagram API.
Alert Team (Slack n8n node): Sends a detailed, formatted alert containing the comment text and score to the team Slack channel.
Automate Gmail organization using an n8n workflow leveraging GPT-4o-mini. Classify emails (Job, Application Status, Enquiries) and apply custom Gmail labels automatically using this powerful n8n template.

Use this powerful n8n workflow to automatically classify and label incoming Gmail emails using Gemini 2.5 Pro. Leverage this n8n template for precise inbox management.

Use this n8n workflow to automatically synchronize contacts from Google Sheets directly to a MailChimp subscriber list. Perfect for email marketing automation using n8n templates.

Use this powerful n8n workflow to automatically monitor the n8n GitHub RSS feed for new major releases. Receive instant notifications via Telegram and AWS SES email when a new n8n version drops, ensuring timely upgrades.

Use this powerful n8n workflow to automatically generate hyper-personalized first-touch messages for new leads stored in Google Sheets using the GPT-4o Mini AI agent. Boost sales efficiency with this ready-to-use n8n template.

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.







































