AI AGENTS

Auto-suspend repeat offenders who keep submitting blocked prompts

On each blocked prompt, this workflow counts a user's recent violations in Postgres and, once they cross a strike threshold, suspends their generation access and alerts the team.

CategoryAI Agents
Enginesim
Difficultyintermediate
Triggerwebhook
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerBlocked-prompt event arrives via webhookHTTP webhook
  • ActionCount user's recent blocks in PostgresPostgreSQLPostgres
  • LogicBranch on strike count vs threshold
  • ActionSet user status to suspended in PostgresPostgreSQLPostgres
  • OutputAlert trust-and-safety in SlackSlack

What it does

This workflow enforces consequences for repeated abuse. Every time the moderation gate blocks a prompt, it tallies that user's violations over a rolling window. When someone exceeds the strike limit, their access flag is flipped to suspended in Postgres so future requests are rejected outright, and the team is notified.

When to use it

Use it alongside a prompt-moderation gate when a small number of users generate most of the abuse and you want automatic, auditable enforcement rather than manual bans.

How it works

  1. 1A webhook fires whenever the gate records a blocked prompt, carrying the user ID.
  2. 2A Postgres query counts that user's blocks within the rolling window.
  3. 3A logic branch checks the count against the strike threshold.
  4. 4If exceeded, a Postgres update sets the user's status to suspended.
  5. 5A Slack alert notifies the trust-and-safety team with the user and violation history.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect PostgresAny Postgres URL — query, write, migrate.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.