Workflow: Noop Telegram Automate

Workflow Details

Download Workflow
{
    "nodes": [
        {
            "name": "Telegram Trigger",
            "type": "n8n-nodes-base.telegramTrigger",
            "position": [
                600,
                300
            ],
            "webhookId": "2d0805da-143e-40c9-b327-242b1f052c31",
            "parameters": {
                "updates": [
                    "message",
                    "edited_message",
                    "channel_post",
                    "edited_channel_post"
                ],
                "additionalFields": []
            },
            "credentials": {
                "telegramApi": "telegram_habot"
            },
            "typeVersion": 1
        },
        {
            "name": "Google Perspective",
            "type": "n8n-nodes-base.googlePerspective",
            "position": [
                800,
                300
            ],
            "parameters": {
                "text": "={{$json[\"message\"][\"text\"]}}",
                "options": {
                    "languages": "en"
                },
                "requestedAttributesUi": {
                    "requestedAttributesValues": [
                        {
                            "attributeName": "identity_attack"
                        },
                        {
                            "attributeName": "threat"
                        },
                        {
                            "attributeName": "profanity"
                        }
                    ]
                }
            },
            "credentials": {
                "googlePerspectiveOAuth2Api": "perspective_api"
            },
            "typeVersion": 1
        },
        {
            "name": "IF",
            "type": "n8n-nodes-base.if",
            "position": [
                1000,
                300
            ],
            "parameters": {
                "conditions": {
                    "number": [
                        {
                            "value1": "={{$json[\"attributeScores\"][\"PROFANITY\"][\"summaryScore\"][\"value\"]}}",
                            "value2": 0.6999999999999999555910790149937383830547332763671875,
                            "operation": "larger"
                        }
                    ]
                }
            },
            "typeVersion": 1
        },
        {
            "name": "Telegram",
            "type": "n8n-nodes-base.telegram",
            "position": [
                1200,
                150
            ],
            "parameters": {
                "text": "I don't tolerate toxic language!",
                "chatId": "={{$node[\"Telegram Trigger\"].json[\"message\"][\"chat\"][\"id\"]}}",
                "additionalFields": {
                    "reply_to_message_id": "={{$node[\"Telegram Trigger\"].json[\"message\"][\"message_id\"]}}"
                }
            },
            "credentials": {
                "telegramApi": "telegram_habot"
            },
            "typeVersion": 1
        },
        {
            "name": "NoOp",
            "type": "n8n-nodes-base.noOp",
            "position": [
                1200,
                400
            ],
            "parameters": [],
            "typeVersion": 1
        }
    ],
    "connections": {
        "IF": {
            "main": [
                [
                    {
                        "node": "Telegram",
                        "type": "main",
                        "index": 0
                    }
                ],
                [
                    {
                        "node": "NoOp",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Telegram Trigger": {
            "main": [
                [
                    {
                        "node": "Google Perspective",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Google Perspective": {
            "main": [
                [
                    {
                        "node": "IF",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}
Back to Workflows

Related Workflows

HTTP Respondtowebhook Create Webhook
View
Umami analytics template
View
Podcast Digest
View
Meeting booked - to newsletter and CRM
View
Splitout Zendesk Send Triggered
View
Customer and Sales Support
View
Wait Limit Update Webhook
View
Backup Squarespace code Injections to Github
View
Wait Splitout Create Webhook
View
Agent Access Control Template
View