FM
FlowMarket
Messaging & Chat Beginner ⚡ 5 n8n Nodes

Detect toxic language in Telegram messages

This workflow detects toxic language (such as profanity, insults, threats) in messages sent via Telegram. This blog tutorial explains how to configure the wo...

🔌 Nodes & Integrations Used (1)

n8n Core Logic

📖 Implementation & Setup Guide

This workflow detects toxic language (such as profanity, insults, threats) in messages sent via Telegram. [This blog tutorial](https://n8n.io/blog/create-a-toxic-language-detector-for-telegram/) explains how to configure the workflow nodes step-by-step.

![workflow-screenshot](https://lh3.googleusercontent.com/pSN-PhPuKlXONRTmsT6_6pNDUNHRwtaRfBpuCnslpZS4NsuZwfJmYl8ANTa4gcdL0JMUXvLEyJQP9k8It2AvNyWLHdJ0m3dJ1nSM_z-CprrOwjqNXTNjg-2WEriYJaDWVXsKZ-YZ=s0)

**Telegram Trigger**: triggers the workflow when a new message is sent in a Telegram chat.

**Google Perspective**: analyzes the text of the message and returns a probability value between 0 and 1 of how likely it is that the content is toxic.

**IF**: filters messages with a toxic probability value above 0.7.

**Telegram**: sends a message in the chat with the text "I don't tolerate toxic language" if the probability value is above 0.7.

**NoOp**: takes no action if the probability value is below 0.7.

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Detect toxic language in Telegram messages.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related Messaging & Chat Workflows

View All in Messaging & Chat →