ServiceNow AI Agent RAG: retrieve the right support evidence

Kenneth Pangan
Written by

Kenneth Pangan

Stanley Nicholas
Reviewed by

Stanley Nicholas

Last edited September 8, 2026

Expert Verified
A photographer framed inside a green speech-bubble shape

How ServiceNow AI-agent RAG works

ServiceNow's Search retrieval tool adds RAG to an AI agent in AI Agent Studio. An administrator selects a search profile and sources, chooses fields to return and a result limit, and selects semantic or keyword criteria. The tool description is also sent to the model, so its scope needs plain, specific wording. ServiceNow documents sn_aia.admin as the required role to add it.

Behind that tool is AI Search. ServiceNow describes AI Search RAG as indexing data and then searching that indexed material. It uses an embedding model for semantic or vector search. The practical consequence is simple: an agent can only retrieve what was indexed, permitted, and described well enough for the query and tool to use.

ServiceNow retrieval-tool form with search-profile and result settings
ServiceNow retrieval-tool form with search-profile and result settings

The retrieval-tool form includes a description, search profile, result fields, and search criteria. Source: ServiceNow Search retrieval.

Test the evidence, not just the answer

Take a support policy that changed after a product release. Build a small test set: a normal request, a question whose older policy must not win, missing evidence, a confidential record, and an exception needing an owner. For each case, inspect the retrieved material, the final wording, and any action request separately.

If the agent retrieves old material, correct the source or profile and test again. If it retrieves the right source but offers an unauthorized exception, the retrieval layer is not the issue: the instruction, action boundary, or approval process is. Before production, include a failure path and a handoff. After a controlled release, check the actual case or downstream record, not merely an articulate response.

Inspect an eesel knowledge setup from a terminal

For an eesel helpdesk teammate, eesel CLI gives a support owner, script, or coding agent a terminal path into the same workspace and dashboard used by support. It is useful for a source-review note, while ServiceNow's Search retrieval tool remains the way to configure RAG inside ServiceNow. Claude Code, Codex, and Cursor can read the CLI's JSON output for a scoped review.

For example, when a returns-policy document changes, a coding agent can inspect the named eesel teammate’s connected sources, manually uploaded files, and instructions. The work is to identify whether the approved document and the handoff rule are present, not to connect a new account or turn on an action during inspection.

With Node.js 18.17 or newer, make the target explicit:

Bash
npx @eesel/cli login
npx @eesel/cli whoami
TARGET_EESEL_AGENT="paste-agent-id-or-name-here"
npx @eesel/cli integrations --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli files ls --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli instructions --agent "$TARGET_EESEL_AGENT"

After the owner approves an updated file, run --dry-run on the supported upload before sending it. Contain actions outside the test before asking a representative question. Create a named chat, check the cited policy and handoff, then inspect activity and the actual ticket or connected record after controlled rollout. Chat is billed work; dashboard-management commands are free. JSON makes the review repeatable, but it does not replace approval or a result check.

Use retrieval as a bounded capability

The strongest RAG setup is not the one with the most sources. It has a defined job, a source owner, access boundaries, and questions that prove what happens when evidence is insufficient. Apply the same discipline to ServiceNow Search retrieval and to an eesel support teammate.

Review knowledge before expanding automation

eesel Activity page showing a work list and status filters
eesel Activity page showing a work list and status filters

The eesel Activity page shows a work list and filters for approved, rejected, and pending items.

Try eesel to review a specific support teammate’s knowledge before it answers more customer cases.

Frequently asked questions

What is RAG for an AI agent?

Retrieval-augmented generation retrieves relevant information from a configured dataset and supplies it as context for a model response. It helps ground an answer, but teams still need to manage source freshness, access, and what the agent may promise or do.

How does ServiceNow add RAG to an AI agent?

ServiceNow's Search retrieval tool can be added in AI Agent Studio. An administrator chooses a search profile, search sources, returned fields, result limit, and semantic or keyword criteria.

Who can configure Search retrieval?

ServiceNow documents the sn_aia.admin role as required to add Search retrieval. Available features and content depend on the instance’s configuration and access controls.

What should teams test?

Test a correct source, a stale source, missing or conflicting evidence, unauthorized data, and a question that needs a human decision. Inspect the retrieved evidence and the final response separately.

Does retrieval guarantee a correct answer?

No. Retrieval can return irrelevant, incomplete, or outdated material. A grounded response still needs response rules, human handoff, and checks of the system where work is completed.

Does eesel CLI configure ServiceNow Search retrieval?

No. eesel CLI manages an eesel teammate rather than ServiceNow AI Search. It can inspect sources and instructions for the same eesel teammate shown in the eesel dashboard.

Can coding agents use eesel CLI for knowledge reviews?

Yes. Scripts and coding agents can use its JSON output for a named teammate. A person should approve writes, dry-run supported changes, contain actions for tests, and verify outcomes separately.

Share this article

Kenneth Pangan

Article by

Kenneth Pangan

Writer and marketer for over ten years, Kenneth Pangan splits his time between history, politics, and art with plenty of interruptions from his dogs demanding attention.

Related Posts

All posts →
ServiceNow illustration of three people reviewing a workflow on a screen
Guides

ServiceNow Agentic AI: what to evaluate before deployment

Understand ServiceNow Agentic AI, its Studio, orchestration, testing, and governance controls, plus what a support team should verify before agentic work reaches users.

Alicia Kirana UtomoAlicia Kirana UtomoOct 7, 2025
Two headset-wearing people seated with laptops inside a green speech-bubble shape
Guides

ServiceNow AI Agent Analytics: metrics that lead to decisions

Use ServiceNow AI Agent Analytics to assess agent use, efficiency, errors, and guardrails, then turn the findings into a controlled improvement decision.

Kenneth PanganKenneth PanganOct 19, 2025
Two headset-wearing people seated with laptops inside a green speech-bubble shape
Guides

ServiceNow AI Agent Governance: define control before rollout

A practical way to govern ServiceNow AI agents: name the owner, set access and guardrails, test the change, then verify the work in the system of record.

Kenneth PanganKenneth PanganOct 17, 2025
Two headset-wearing people seated with laptops inside a green speech-bubble shape
Guides

ServiceNow AI Agent Reasoning: make plans testable

Learn how ServiceNow agents use instructions, record context, and tools to plan work, plus the checks that make agent reasoning safe to deploy.

Stevia PutriStevia PutriOct 19, 2025
Two headset-wearing people seated with laptops inside a green speech-bubble shape
Guides

ServiceNow AI Agent Skills: give each capability a boundary

Learn how to scope ServiceNow AI-agent capabilities, describe tools clearly, test their permissions, and verify the records they affect before rollout.

Kenneth PanganKenneth PanganOct 17, 2025
Banner image for ServiceNow Virtual Agent review: Is it right for your team in 2026?
Guides

ServiceNow Virtual Agent review: Is it right for your team in 2026?

A fact-checked look at ServiceNow Virtual Agent's capabilities, real user feedback, and whether it's the right fit for your IT service desk.

Stevia PutriStevia PutriMar 15, 2026
How to use AI directories like “There's An AI For That” to find the right tools
Guides

How to use AI directories like “There's An AI For That” to find the right tools

How to search smarter for AI tools? well, There Is An AI For That,

Stevia PutriStevia PutriAug 3, 2025
Illustration of AI being added to a ServiceNow ITSM and customer service workflow
Guides

How to add AI to ServiceNow: a practical guide for 2026

A step-by-step guide to adding AI to ServiceNow in 2026: Now Assist (now ServiceNow Otto), AI Agents, the license tiers you need, and what it actually costs.

Rama Adi NugrahaRama Adi NugrahaJul 15, 2026
Banner image for 7 ServiceNow Virtual Agent alternatives that actually work in 2026
Guides

7 ServiceNow Virtual Agent alternatives that actually work in 2026

Looking for alternatives to ServiceNow Virtual Agent? We compare 7 top platforms that offer faster implementation, better AI, and lower costs.

Stevia PutriStevia PutriMar 15, 2026

Ready to hire your AI teammate?

Set up in minutes. No credit card required.

Get started free