AI AGENTS

Summarize daily prompt-moderation verdicts into a report

Runs on a schedule to roll up the previous day's prompt-moderation log from Postgres, computes block rates and top violation categories, and delivers a digest to your team.

CategoryAI Agents
Enginesim
Difficultybeginner
Triggerschedule
Steps5
Setup~5 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDaily schedule fires
  • ActionQuery last 24h of verdicts from PostgresPostgreSQLPostgres
  • LogicAggregate block rate, categories, offenders
  • ActionDraft narrative summary from aggregatesOpenAI
  • OutputPost moderation digest to SlackSlack

What it does

This workflow turns your moderation audit log into a daily operations report. It reads the prior 24 hours of verdicts from Postgres, aggregates how many prompts were allowed versus blocked, breaks blocks down by policy category and repeat offenders, and sends a readable summary to your team channel.

When to use it

Use it when you already have a moderation gate writing verdicts to Postgres and now need visibility into how it is performing: spotting abuse spikes, tuning thresholds, and reporting safety metrics to stakeholders.

How it works

  1. 1A daily schedule triggers the run.
  2. 2A Postgres query pulls all verdict rows from the last 24 hours.
  3. 3A logic step aggregates totals, block rate, top categories, and top offending users.
  4. 4An OpenAI step drafts a concise narrative summary from the aggregates.
  5. 5The formatted digest is posted to a Slack channel for the trust-and-safety team.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect PostgresAny Postgres URL — query, write, migrate.
  2. 2
    Connect OpenAIModels, embeddings, files.
  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.