What This Workflow Does
This automation solution tackles the growing challenge of maintaining healthy conversations on Instagram by automatically detecting and handling toxic comments. It combines Instagram's API with Google's Perspective API to analyze comment toxicity in real-time, then takes appropriate action based on your configured thresholds.
The workflow doesn't just hide problematic comments - it creates a complete moderation system that alerts your team via Slack about flagged content, maintains logs of moderation actions, and provides visibility into comment patterns. This transforms comment moderation from a reactive chore to a proactive brand protection strategy.
How It Works
1. Comment Monitoring
The workflow continuously checks for new Instagram comments on your posts using Instagram's API. It captures the comment text, author information, and post context to evaluate each interaction.
2. Toxicity Analysis
Each comment is sent to Google's Perspective API, which uses machine learning to assess toxicity levels. The API returns a score from 0 (not toxic) to 1 (extremely toxic) across multiple dimensions like insults, threats, and obscenity.
3. Automated Actions
Based on your predefined thresholds, the workflow automatically hides comments that cross your toxicity limits. More severe cases can be escalated for human review while borderline cases might be flagged but left visible.
4. Team Notification
All moderated comments trigger Slack alerts with the original content, toxicity scores, and action taken. This creates transparency and allows your team to review edge cases or adjust thresholds as needed.
5. Logging & Reporting
The system maintains a complete record of all moderation actions, including before/after states of comments. This data can be analyzed to identify patterns, problematic users, or areas where your moderation rules may need adjustment.
Who This Is For
This workflow is ideal for brands, influencers, and community managers who:
- Receive high volumes of Instagram comments that need moderation
- Want to protect their brand from toxic content and hate speech
- Need documentation of moderation actions for compliance
- Want to reduce the manual workload of comment screening
- Operate in industries with strict content guidelines (healthcare, education, etc.)
What You'll Need
- An Instagram Business or Creator account with API access
- Google Cloud account with Perspective API enabled
- Slack workspace for receiving alerts
- n8n instance (self-hosted or cloud)
- Basic understanding of API authentication
Quick Setup Guide
- Download the JSON template file
- Import into your n8n instance
- Configure Instagram API credentials
- Set up Perspective API connection
- Add your Slack webhook URL
- Adjust toxicity thresholds to match your standards
- Test with sample comments before going live
Key Benefits
Protect your brand reputation 24/7 by automatically removing harmful content before it's seen by your audience. The system works around the clock, even when your team is offline.
Reduce moderation workload by 80%+ by automating the initial screening of comments. Your team only needs to review edge cases rather than every single comment.
Create audit trails for compliance with detailed logs of all moderation actions. This is especially valuable for regulated industries that must document content decisions.
Improve community engagement by fostering healthier discussions. Users are more likely to participate when they know toxic behavior won't be tolerated.
Gain insights into comment patterns through the collected moderation data. Identify frequent offenders, problematic topics, or times when toxic comments peak.
Pro tip: Start with conservative toxicity thresholds (e.g., 0.7+) and gradually adjust based on the types of comments being flagged. This prevents over-moderation while still catching the worst content.