0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

The node provides a versatile toolbox of no-code utilities grouped under various resources, including AI. Specifically, for the AI resource with the "Check Content Policy" operation, it analyzes a given text input to verify compliance with content policies. This can be useful in scenarios where you want to automatically screen user-generated content, filter inappropriate or restricted material, or ensure that text inputs meet certain guidelines before further processing or publishing.

Practical examples include:

  • Moderating comments or posts on social media platforms.
  • Screening chatbot inputs to prevent policy violations.
  • Validating marketing copy or user submissions for compliance.

Properties

Name Meaning
Text (prompt) The text string you want to analyze against the content policy.
Code Variables Optional collection of code variables defined in the code editor, each with a variable name/ID and its value. These can be used to dynamically inject values into the analysis.

Output

The node outputs a JSON array containing the results returned from the content policy check API endpoint. Each item in the output corresponds to an input item processed and includes the analysis result indicating whether the text complies with the content policy or details about any violations found.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication with the external service providing the content policy checking functionality.
  • The node internally calls a POST request to the ai/checkContentPolicy endpoint of the external API.
  • No additional environment variables are explicitly required beyond the API key credential.

Troubleshooting

  • Common issues:

    • Missing or invalid API key credential will cause authentication failures.
    • Providing empty or malformed text input may lead to errors or unexpected results.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • Authentication errors typically indicate issues with the provided API key; verify the credential configuration.
    • Validation errors may occur if the "Text" property is missing or empty; ensure it is properly set.
    • API rate limits or quota exceeded errors require checking your subscription or usage limits with the external service.

Links and References

  • n8n Expressions Documentation — for using expressions in code variables.
  • External API documentation for content policy checking (not included in source code; consult your API provider).

Discussion