Telegram Message Content Moderation and Auto-Reply Workflow
This workflow implements real-time monitoring and automatic response functionality for new messages in Telegram groups or channels. By using the Google Perspective API, it conducts toxicity detection on message content. When inappropriate language exceeds a set threshold, the system automatically issues a warning as a bot, reminding users to communicate respectfully. This feature effectively reduces the burden on administrators, maintains a harmonious community environment, prevents the spread of malicious language, and enhances the quality of communication within the community.

Workflow Name
Telegram Message Content Moderation and Auto-Reply Workflow
Key Features and Highlights
This workflow monitors new messages in Telegram channels or chats and leverages the Google Perspective API to detect toxic content in message texts—including identity attacks, threats, and inappropriate language. Once the detected toxicity surpasses a predefined threshold (profanity score greater than 0.7), it automatically sends a warning reply as a bot, reminding users to communicate civilly and helping to maintain a positive community atmosphere.
Core Problems Addressed
This workflow effectively solves the problem of real-time monitoring and automatic management of inappropriate speech within Telegram groups or channels. It reduces the burden on administrators, maintains a healthy and harmonious communication environment, and prevents the spread of malicious language and offensive content.
Application Scenarios
- Content moderation and automated management for Telegram groups or channels
- Community operations and content compliance monitoring
- Online customer service or community bots that automatically detect and curb uncivil language
Main Process Steps
- Telegram Trigger: Listen for new messages and message edits in Telegram.
- Google Perspective Analysis: Send the received message text to the Google Perspective API to evaluate toxicity metrics (identity attacks, threats, profanity).
- Conditional Check (IF Node): Determine whether the profanity score exceeds the threshold of 0.7.
- Auto-Reply:
- If the threshold is exceeded, the bot automatically replies with the warning message: “I do not tolerate toxic language!”
- If the threshold is not exceeded, no action is taken (NoOp node).
Involved Systems or Services
- Telegram: Message triggering and bot replies
- Google Perspective API: Toxicity detection providing authoritative text safety scoring
Target Users and Value
- Telegram group administrators and channel operators seeking automated content management
- Community operation teams aiming to improve content review efficiency and foster a positive, healthy community environment
- Developers and automation enthusiasts looking to quickly build AI-powered chatbots for content moderation
By seamlessly integrating Telegram with Google Perspective and combining intelligent decision logic, this workflow enables real-time content review and friendly reminders, significantly enhancing the automation and intelligence of community management.