download dots

🛡️ Keep a Group Chat on Topic with AI

Each message is judged against your rules by an agent that remembers who it has warned, then either removed with an explanation or answered.

  • Event-triggered
  • 100+ integrations
  • Branching logic
  • Schedule + monitor
UNIT · TASKADE.FLOW3 STEPS

How this flow runs

When

New Message

Telegram Bot

Then 1

Agent

Moderator

Ask an agent · Taskade AI

Knows
your community rules and what counts as off-topic here
Remembers
which members it has already warned

Then 2

Branch

Branch

Take the first path whose condition is true, each with its own steps. Paths are evaluated in order.

  1. 01Breaks the rules

    Delete Message

    Telegram Bot

    Send Message

    Telegram Bot

  2. 02Worth answering

    Send Message

    Telegram Bot

This agent carries its knowledge and memory between runs, and can call your other automations as its own tools. How custom agents work

Branch is a step you add in the builder, in the same list as an app step — there is no separate scripting surface. All automation actions

Build this flow with AI

Opens the builder with these steps already described. Free to start, no card.

What does this automation do?

Each message is judged against your rules by an agent that remembers who it has warned, then either removed with an explanation or answered.

What can you do with it?

  • Enforce the rules consistently at any hour
  • Explain a removal instead of deleting silently
  • Answer the messages that deserve an answer

The Steps

This automation runs in 3 steps:

  1. When Telegram Bot — New Message
  2. Then Taskade AI — Ask an agent ("Moderator")
  3. Then Branch — Breaks the rules: Delete Message, Send Message · Worth answering: Send Message

What makes this different from a Zapier-style flow?

The "Moderator" step is not a one-off model call. It is a Taskade AI agent that knows your community rules and what counts as off-topic here, remembers which members it has already warned, so every run builds on the last one instead of starting from an empty prompt.

A stateless "ask the model" step forgets everything the moment it returns. An agent keeps its knowledge and its memory between runs, carries its own tools, and can be handed work by other automations.

Who is this automation for?

Built for community managers running a large public group. Each message is judged against your rules by an agent that remembers who it has warned, then either removed with an explanation or answered.

How do you set it up?

  • Open the "Automations" tab in your workspace.
  • Click ➕ Add automation, then start from scratch.
  • Add the trigger "New Message" from Telegram Bot.
  • Add the action "Ask an agent" from Taskade AI. Point it at an agent called "Moderator".
  • Add a Branch step: Branch — Breaks the rules: Delete Message, Send Message · Worth answering: Send Message.
  • Enable the toggle in the top-right corner to activate the automation.

Prefer to describe it instead? Click Build this flow with AI above and Taskade wires the trigger, the steps, and the agent for you.

Related from the blog