Activate offensiveness protection for generative AI
Activate offensiveness detection to log or block offensive content generated by AI skills and workflows.
Before you begin
Role required: sn_nowassist_admin.nsa_admin
About this task
Generative AI output is probabilistic, which means that the same input can produce different outputs. Some of the AI generated content may be offensive, which includes toxic, sexist, or other harmful language. AI Guardian enables you to detect offensive content in both inputs and outputs, and logs the event when it is detected. You can also configure it to block offensive material so that users see a standard error message instead of the generated response.
Note: Offensiveness detection applies to specific skills and workflows, and to AI agents and Virtual Agent conversations when configured in AI Agent Studio.. For more information about skills that support offensiveness detection, see AI Guardian. For information about enabling offensiveness guardrails in AI Agent Studio, see .
By default, offensiveness guardrails for AI skills are not active. You must activate offensiveness guardrails for each workflow where you want offensiveness guardrails to operate in AI skills. Blocking content may increase latency.
Offensiveness guardrails are available only for supported workflows and AI skills. This behavior is different from prompt injection protection, which is applied instance-wide.
You can export logs for review. For more information, see Export AI Guardian logs.
Procedure
-
Navigate to All > AI Admin Hub > Settings.
-
In the side panel, select the AI Guardian > Offensiveness tab.
-
Select the Available for you tab to review which workflows you can choose from.
Offensiveness guardrails that are already activated appear in the Active tab.
-
Select Activate for the workflow that you want to enable offensiveness detection.
-
Select the appropriate action.
- Select Log the output to record the events when offensive content is detected. The content is still shown to the user.
- Select Block the response and log the output to record the event and prevent the content from being shown to the user. The user sees a standard error message instead. [Omitted image "na-guardian-activate-offensiveness.png"] Alt text: Offensiveness guardrail for AI Guardian with option "log only" selected
-
Select Save and activate.
-
Repeat the proceeding steps for other workflows where you want offensiveness guardrails to operate.
Result
Offensiveness detection guardrail is enabled for the selected workflow. Events are logged when offensive content is detected or generated.
What to do next
You can enable offensiveness detection separately for each supported generative AI application and workflow. Repeat this task for each workflow where you want offensiveness protection enabled.
To change the action for an active workflow, select more options ([Omitted image "image.more-options-menu-item"] Alt text: More options icon.) icon in the list of active workflows, then select Edit.
To deactivate offensiveness protection for a workflow, select more options ([Omitted image "image.more-options-menu-item"] Alt text: More options icon.) icon in the list of active workflows and then select Deactivate .
Parent Topic:AI Guardian
---
title: Activate offensiveness protection for generative AI
description: Activate offensiveness detection to log or block offensive content generated by AI skills and workflows.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/activate-offensiveness-protection-for-generative-ai.html
release: australia
topic_type: task
last_updated: "2026-11-16"
reading_time_minutes: 2
keywords: [Generative AI, Gen AI, Now Assist, Admin, Guardian, offensiveness protection]
breadcrumb: [AI Guardian, Agentic AI security and governance]
---
# Activate offensiveness protection for generative AI
Activate offensiveness detection to log or block offensive content generated by AI skills and workflows.
## Before you begin
Role required: sn\_nowassist\_admin.nsa\_admin
## About this task
Generative AI output is probabilistic, which means that the same input can produce different outputs. Some of the AI generated content may be offensive, which includes toxic, sexist, or other harmful language. AI Guardian enables you to detect offensive content in both inputs and outputs, and logs the event when it is detected. You can also configure it to block offensive material so that users see a standard error message instead of the generated response.
**Note:** Offensiveness detection applies to specific skills and workflows, and to AI agents and Virtual Agent conversations when configured in AI Agent Studio.. For more information about skills that support offensiveness detection, see [AI Guardian](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/now-assist-guardian.md). For information about enabling offensiveness guardrails in AI Agent Studio, see .
By default, offensiveness guardrails for AI skills are not active. You must activate offensiveness guardrails for each workflow where you want offensiveness guardrails to operate in AI skills. Blocking content may increase latency.
Offensiveness guardrails are available only for supported workflows and AI skills. This behavior is different from prompt injection protection, which is applied instance-wide.
You can export logs for review. For more information, see [Export AI Guardian logs](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/export-now-assist-guardian-logs.md).
## Procedure
1. Navigate to **All** > **AI Admin Hub** > **Settings**.
2. In the side panel, select the **AI Guardian** > **Offensiveness** tab.
3. Select the **Available for you** tab to review which workflows you can choose from.
Offensiveness guardrails that are already activated appear in the **Active** tab.
4. Select **Activate** for the workflow that you want to enable offensiveness detection.
5. Select the appropriate action.
- Select **Log the output** to record the events when offensive content is detected. The content is still shown to the user.
- Select **Block the response and log the output** to record the event and prevent the content from being shown to the user. The user sees a standard error message instead.
\[Omitted image "na-guardian-activate-offensiveness.png"\] Alt text: Offensiveness guardrail for AI Guardian with option "log only" selected
6. Select **Save and activate**.
7. Repeat the proceeding steps for other workflows where you want offensiveness guardrails to operate.
## Result
Offensiveness detection guardrail is enabled for the selected workflow. Events are logged when offensive content is detected or generated.
## What to do next
You can enable offensiveness detection separately for each supported generative AI application and workflow. Repeat this task for each workflow where you want offensiveness protection enabled.
To change the action for an active workflow, select more options \(\[Omitted image "image.more-options-menu-item"\] Alt text: More options icon.\) icon in the list of active workflows, then select **Edit**.
To deactivate offensiveness protection for a workflow, select more options \(\[Omitted image "image.more-options-menu-item"\] Alt text: More options icon.\) icon in the list of active workflows and then select **Deactivate** .
**Parent Topic:**[AI Guardian](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/now-assist-guardian.md)
| title | Activate offensiveness protection for generative AI |
| description | Activate offensiveness detection to log or block offensive content generated by AI skills and workflows. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/platform-security/activate-offensiveness-protection-for-generative-ai.html |
| release | australia |
| topic_type | task |
| last_updated | 2026-11-16 |
| reading_time_minutes | 2 |
| keywords | Generative AIGen AINow AssistAdminGuardianoffensiveness protection |
| breadcrumb | AI GuardianAgentic AI security and governance |