The OpenAI Moderation node leverages OpenAI’s content moderation API to analyze input text for potentially harmful or inappropriate content, ensuring compliance with OpenAI’s usage policies.
Name: inputModerationOpenAI
Type: Moderation
Version: 1.0
Category: Moderation
Moderation
(Additional base classes from the Moderation parent class)
Type: credential
Credential Names: openAIApi
Description: OpenAI API credentials for accessing the moderation service
Error Message (optional)
Type: string
Default: “Cannot Process! Input violates OpenAI’s content moderation policies.”
Description: Custom error message to display when content violates moderation policies
The OpenAI Moderation node provides real-time content analysis through the following features:
Content Analysis
Analyzes text for harmful or inappropriate content
Uses OpenAI’s advanced moderation models
Provides detailed categorization of potential violations
Policy Enforcement
Ensures compliance with OpenAI’s usage policies
Prevents processing of prohibited content
Maintains consistent content standards
Integration Features
Seamless integration with OpenAI services
Real-time moderation checks
Customizable error handling
Content Pre-screening
Filter user inputs before processing
Prevent policy violations
Maintain content quality
API Compliance
Ensure adherence to OpenAI’s policies
Prevent API usage violations
Manage content restrictions
Safety Monitoring
Detect harmful content
Flag inappropriate submissions
Protect system integrity
Place the node before OpenAI API calls in your workflow
Configure appropriate error handling
Monitor moderation results for system optimization
Consider implementing retry logic for temporary failures
Configuration
Use clear, informative error messages
Set appropriate timeout values
Implement proper error handling
Monitoring
Track moderation results
Monitor false positives/negatives
Adjust settings based on performance
Maintenance
Keep API credentials secure
Update error messages as needed
Monitor OpenAI policy changes