ActionOpenAIUpdated September 2026

How do I check text for harmful content with OpenAI moderation?

Short answer: You can moderate text in OpenAI by hand from its own interface, but it won’t repeat itself. On TinyCommand, add the OpenAI Moderate Text action to a workflow, map its 2 inputs from any upstream app, and it runs automatically every time the trigger fires. No code, and a free tier to start.

Moderate Text in OpenAI — start free
Inputs

The fields this action accepts.

Every field can be mapped from an upstream trigger, AI step, table row, or hard-coded literal.

FieldTypeRequiredDescription
Text to Moderate
input
stringRequiredText to Moderate
Model
model
optionsOptionalModel. Options: Omni Moderation (Latest), Text Moderation (Latest)
Sample request
{
"input": "{{trigger.input}}",
"model": "{{trigger.model}}"
}
Returns
{
"id": "modr-abc",
"model": "omni-moderation-latest",
"results": [
{
"flagged": false,
"categories": {
"hate": false,
"violence": false
},
"category_scores": {
"hate": 0.0001
}
}
]
}

Use these fields in downstream nodes for routing, logging, or error handling.

Triggered by

Apps that pair well as the trigger for Moderate Text.

Any of these apps can fire this action as part of a workflow.

FAQ

Questions about Moderate Text.

What does the Moderate Text action do in OpenAI?
Checks text against OpenAI's moderation endpoint for harmful content (hate, harassment, self-harm, sexual, violence), with per-category scores. Free to use; gate user-generated content with this.
What inputs does Moderate Text require?
Required: Text to Moderate. Every input accepts a static value or a variable from any upstream node in your workflow.
Can I use dynamic inputs from earlier workflow nodes?
Yes. Any field on this action can pull values from upstream nodes, whether that's a form response, a trigger payload, an AI output, or a lookup result.
What happens if OpenAI returns an error?
The run history shows the failed step with its input and the error message OpenAI returned, so you can fix the input and run the workflow again. Automatic retries are built into HTTP steps only, where you can also set your own retry count and delay.
Does Moderate Text support batch operations?
Run Moderate Text inside a loop to process each item in an array. TinyCommand does not throttle calls for you, so for large arrays add a Delay step if you need to stay within OpenAI's rate limits.
More actions

Other OpenAI actions.

Moderate Text in OpenAI — start free