ChatGPT · Arazzo Workflow
ChatGPT Moderation Gate Before Generation
Version 1.0.0
Classify input safety with a chat completion, then generate only if it is safe.
View Spec
View on GitHub
AgentsArtificial IntelligenceChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIReal-TimeArazzoWorkflows
Provider
Workflows
moderation-gate-generate
Use a chat-completion safety classification to gate a Responses API generation.
Classifies the user input as SAFE or UNSAFE with a JSON-object chat completion, then branches: safe input proceeds to a Responses API generation, unsafe input is rejected.
1
classifyInput
createChatCompletion
Ask a chat completion to classify the input as SAFE or UNSAFE, returning a JSON object so the verdict can be branched on deterministically.
2
generateAnswer
createResponse
Generate the answer with the Responses API now that the input has passed the safety gate.
3
rejectInput
createChatCompletion
The classifier flagged the input as unsafe, so no generation is performed. This terminal step records the rejection.
Source API Descriptions
openapi
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.