Tailflow
Skip to article
Browse documentation

OpenAI · Action

Check moderation

Asks OpenAI's moderation check whether the text is harmful, and hands on the answer and the reasons.

When to use it

Keeping abuse out of a public channel: a token named to harass somebody is caught before its name is posted. Put a filter after this step on flagged.

At a glance

IntegrationOpenAI
Credits2
ConnectionOpenAI, by pasting a key

Settings

textRequiredAccepts event fields
Text. The text to check, usually a value somebody else wrote, such as a token's name.

What it hands on

Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.openai_moderate_1.flagged }} — the action’s key, then which one it is if you use more than one of the same kind.

flagged
True when OpenAI flags the text.
categories
The reasons it was flagged, such as harassment or hate. Empty when it was not.

Good to know

  • Runs on your own OpenAI key. OpenAI does not charge for this check.
  • The text is checked as it is. Nothing in it is followed as an instruction.