AI Guardian is the guardrail layer in ServiceNow that reviews requests sent to large language models and the responses they return. It screens for offensive content, prompt injection attempts and sensitive subjects. Detections are logged, and blocking can be turned on as well. The sections below cover scope, setup, logs and the dashboard.
Where each guardrail applies
Generative AI output is probabilistic, so the same input can produce different responses. AI Guardian evaluates requests and responses in real time to reduce that risk, using three guardrails with different reach.
| Guardrail | What it looks for | Where it applies |
|---|---|---|
| Offensiveness detection | Toxic, defamatory or fraudulent content in inputs and outputs | Specific Now Assist skills and workflows |
| Prompt injection detection | Attempts to override instructions or extract restricted information | All generative AI features on the instance |
| Sensitive topic filters | Subjects such as workplace safety or employee compensation | Virtual Agent conversations |
Check the scope column first. Prompt injection detection is the broadest guardrail. Offensiveness detection is tied to listed skills, and sensitive topic filters apply to Virtual Agent conversational skills. A rollout plan should follow those boundaries rather than assume one switch covers everything.
Offensive content categories in the logs
Current AI Guardian logs use 12 categories, S1 to S12 (Violent Crimes, Non-Violent Crimes, Sex-Related Crimes, Child Sexual Exploitation, Specialized Advice, Privacy, Intellectual Property, Indiscriminate Weapons, Hate, Suicide and Self-Harm, Sexual Content, Jailbreak Prompts / Prompt Injection).
| ID | Category |
|---|---|
| S1 | Violent Crimes |
| S2 | Non-Violent Crimes |
| S3 | Sex-Related Crimes |
| S4 | Child Sexual Exploitation |
| S5 | Specialized Advice |
| S6 | Privacy |
| S7 | Intellectual Property |
| S8 | Indiscriminate Weapons |
| S9 | Hate |
| S10 | Suicide and Self-Harm |
| S11 | Sexual Content |
| S12 | Jailbreak Prompts / Prompt Injection |
A log line shows the category but not the framing of the request, so read the conversation before drawing conclusions about the person who sent it.
Prompt injection detection
Prompt injection is an attack in which someone tries to override an LLM’s instructions to reach restricted information or trigger unintended behavior. AI Guardian detects these attempts with a model trained on techniques such as role playing, paraphrasing, repetition, instructions to ignore earlier instructions, and persuasion.
Attack techniques keep changing, and the detector is itself probabilistic, so some attempts may go unflagged. Prompt injection detection covers all generative AI applications and features on the instance. It can be set at instance level or per skill, and where both settings exist the more protective one applies. That makes it the first place to look in a coverage review. Treat it as one control among several.
Choosing a severity level for prompt injection checks
Severity sets how readily prompt injection detection flags a request. Low catches even slight signs of manipulation, Medium catches clear or moderate attempts, and High flags only attempts the detector is highly certain about. Medium is the default for built-in skills. If logs show attacks getting through, Low is the setting to try.
Sensitive topic filters and the Virtual Agent redirect
When a sensitive topic filter fires in a Virtual Agent conversation, the user is redirected to the Sensitivity Detection: Fallback topic instead of receiving a generated answer. That topic can connect them to a live agent or help them open an HR case. The user can choose Proceed, not sensitive to return to the original topic. Availability is listed with HR Service Delivery, and Customer Service Management is also named for this guardrail. Confirm which entitlement applies to your instance before planning a rollout.
Case management filters
Customer Service Management has its own filters. They analyze the tone of case conversations with a sentiment analysis engine and redirect the user when one matches.
| Filter | What it detects |
|---|---|
| Active data loss or security breach | Unauthorized data access or a live security incident |
| Threatening legal action | Intent to pursue legal remedies or regulatory complaints |
| Reputational incident or issue | Content that could damage the public image of either party |
Activation requires the admin role, Otto for Customer Service Management enabled, and Virtual Agent topics already built for sensitive scenarios. The steps are:
- Open the filters page in the Now Assist admin area and activate the chosen filter.
- Confirm the display name, description and filter group priority.
- Add sample phrases that represent the content you want detected. Several phrases improve accuracy.
- Choose the Virtual Agent configurations the filter applies to.
- Review the redirect topic, and customize it in Virtual Agent Designer if needed.
- Review the full configuration and select Activate.
Test the filter with a case that uses the sample phrases, then adjust them as needed.
Turning on guardrails for AI agents
Agentic workflows have their own switches in AI Agent Studio. For AI agents, the offensiveness setting sits on the Offensiveness page under the Settings tab of AI Agent Studio. Turning on its toggle starts detection, and the detection impact sets whether offensive content is only logged or also blocked. Confirm on your instance how the agent setting behaves before planning a logging-first rollout.
Offensiveness logs are exported from the Offensiveness tab of Now Assist Guardian, which downloads a CSV file of the logged events. For prompt injection, the Prompt Injection page under Settings in AI Agent Studio has a Configure option that opens the AI Admin Hub, where the detection is set up. After that setup, an agentic workflow is covered by the prompt injection check, which is designed to block the conversation when it fires.
The same guardrails are reachable from AI Admin Center’s Next Experience UI, which ServiceNow is preparing to deprecate in favor of the Lux experience. That path needs the sn_na_center.nac_admin role and the AI Admin Center and AI Admin Hub applications installed. The AI Guardian section of the Admin view offers Prompt injection, Offensiveness and Sensitive Filters tabs. Hub setup is covered in Now Assist administration and the AI Admin Hub.
Logs, blocking and what the user sees
Each log entry can hold the request, the conversation containing the flagged content, and any user feedback. Blocking is a separate choice made on top of logging. When it is on and content is detected, the user may see a message that the request could not be completed, and the generated output is withheld.
Skills that use AI Guardian can remove personally identifiable information before the request reaches the LLM, and administrators choose which data types are anonymized. For catalog item generation and agent skills such as summarization and resolution notes, the guardrails run on both input and output. Reviewing logs for a while before enabling blocking shows how often each issue appears in your environment. For the wider controller settings, see the Gen AI Controller guide.
Reading the AI Guardian analytics dashboard
The dashboard reports on the two detection guardrails separately, filtered by skill and date range.
| Indicator | Offensive content | Prompt injection |
|---|---|---|
| Guardrail-added latency | Yes | Yes |
| Percentage flagged | Yes | Yes |
| Total occurrences | Yes | Yes |
| Breakdown by category | Yes | No |
| Occurrences by skill over time | Yes | Yes |
Guardrail-added latency is the average delay the active guardrail introduces. A rise can mean more guardrail activity in the period.
Exporting AI Guardian logs
Exporting gives you records to review outside the dashboard:
- Open All, then Now Assist Admin, then Settings.
- In the side panel, select AI Guardian.
- For offensiveness, go to Now Assist Guardian, then Offensiveness. On the Active tab, select the workflow and then select Export.
- For prompt injection, go to Now Assist Guardian, then Prompt Injection, and select Export Log.
The file downloads as CSV, and the export needs the sn_generative_ai.nsa_admin role. An empty file usually means the guardrail has not triggered yet. If you expected data and none appears, raise it with ServiceNow support.
Where AI Guardian fits in agentic AI security
AI Guardian sits under AI threat protection in the agentic AI security guidance, which lists six areas: Permissions-based access control; Data protection; Agent traceability and monitoring; Governance and admin safeguards; AI threat protection; and External AI agent security.
Permission controls keep an agent within its intended boundaries, while the guardrails handle unsafe content inside the conversation. For the wider program, see the AI governance and control services page, and for agent design see agentic automation services.
Frequently asked questions
Is logging the same as blocking?
No. Logging records detected events, and blocking changes what the user sees. You can run the instance-level prompt injection guardrail and the Now Assist offensiveness guardrail in logging mode alone.
Which guardrail covers all generative AI features?
Prompt injection detection does. Offensiveness detection is tied to listed skills and workflows, and sensitive topic filters apply to Virtual Agent conversations.
What does a user see when a sensitive filter fires?
They are redirected to the Sensitivity Detection: Fallback topic. They can choose Proceed, not sensitive to go back to where they were.
Why do some pages call it Now Assist Guardian?
The current export steps still show the Now Assist Guardian menu name, such as Now Assist Guardian > Offensiveness, while the guardrail itself is called AI Guardian.