agent hive

AI AGENTS

Escalate blocked image prompts to Slack for human review

When a submitted image prompt is flagged by the moderation classifier, this workflow holds the request, logs it, and posts the offending prompt to a Slack review channel…

CategoryAI Agents
Enginesim
Difficultyintermediate
Triggerwebhook
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerPrompt submitted via webhookHTTP webhook
  • ActionClassify prompt for policy categoriesOpenAI
  • LogicSort into clean, blocked, or borderline
  • ActionDispatch clean prompts to ReplicateReplicateReplicate
  • ActionRecord borderline prompt as pending in PostgresPostgreSQLPostgres
  • OutputPost borderline prompt to Slack review channelSlack

What it does

Instead of silently rejecting borderline prompts, this gate routes flagged requests to a human. Clean prompts go straight to Replicate. Anything the classifier marks as borderline is parked, logged, and surfaced in a Slack channel where a moderator can approve or deny it, keeping a human in the loop for ambiguous cases.

When to use it

Use it when false positives are costly to your users and you would rather have a moderator adjudicate gray-area prompts than auto-block them. Good for creative tools where over-blocking frustrates legitimate use.

How it works

  1. 1A webhook receives the prompt and user context.
  2. 2An OpenAI classification returns a category verdict and confidence.
  3. 3A logic branch sorts the prompt into clean, blocked, or borderline.
  4. 4Clean prompts dispatch to Replicate immediately; hard violations are denied.
  5. 5Borderline prompts are written to Postgres as pending.
  6. 6A Slack message posts the prompt and scores to the review channel with approve/reject buttons for a moderator.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect OpenAIModels, embeddings, files.
  3. 3
    Connect ReplicateImage, video, and model inference.
  4. 4
    Connect PostgresAny Postgres URL — query, write, migrate.
  5. 5
    Connect SlackChannels, DMs, threads, mentions.
  6. 6
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  7. 7
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  8. 8
    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.