🛡️Moderation

Moderation nodes are used to check whether the input or output consists of harmful or inappropriate content.

1)OpenAI Moderation

The OpenAI Moderation node checks whether input content complies with OpenAI safety policies before sending it to the model.

Setup Requirements:

  1. Add OpenAI Moderation node to the canvas

  2. Connect Credential > paste OpenAI API Key

  3. Configure Error Message if required

Use Cases:

• Filtering unsafe or restricted content • Ensuring compliance with AI safety policies

2)Simple Prompt Moderation

The Simple Prompt Moderation node checks input against a deny list and blocks restricted content before sending it to the model.

Setup Requirements:

  1. Add Simple Prompt Moderation node to the canvas

  2. Enter Deny List (restricted words or phrases)

  3. Connect Chat Model if required

  4. Configure Error Message

Use Cases:

• Blocking specific keywords or instructions • Preventing prompt injection or misuse

Last updated