‹ All essays

AI

AI Agents in ServiceNow: What They Are, How They Work, and When to Use Them (Beginner Guide)

What Are AI Agents?

AI Agents in ServiceNow are autonomous AI workers that can reason about a task, plan the steps needed, execute those steps, and handle errors — all without a human telling them what to do at each stage.

This is fundamentally different from the other AI capabilities in ServiceNow:

Now AssistVirtual AgentAI Agents
RoleAssistant — suggests and draftsChatbot — follows scripted flowsWorker — reasons and acts autonomously
Decision makingHuman makes the decision, AI provides informationPre-built decision trees — bot follows the programmed pathAI makes decisions within defined boundaries
Autonomy levelLow — always advisoryMedium — follows rules but can branchHigh — plans and executes multi-step tasks
When human is involvedAlways — human reviews every suggestionOnly on escalation (handoff to live agent)Only for exceptions outside the agent's scope or confidence

The Everyday Analogy

Think about the difference between these three workplace roles:

  • Now Assist = a research assistant. You ask them to summarize a report or draft an email. They do the work, but you review and send it yourself.
  • Virtual Agent = a receptionist with a script. They greet visitors, answer common questions from a FAQ, and direct people to the right department. They follow a defined process.
  • AI Agent = a junior analyst who can work independently. You give them a task ("handle this incoming request"), and they figure out the steps: check the request type, look up policies, verify eligibility, create the necessary records, notify the right people, and close the loop. They come to you only when they encounter something outside their training.

How AI Agents Work — The Reasoning Loop

An AI Agent follows a reasoning loop that is fundamentally different from a scripted workflow:

Trigger: New P1 incident created with no assignment group
        ↓
AI Agent receives the task:
  "Investigate and route this P1 incident"
        ↓
REASONING STEP 1: "What kind of incident is this?"
  → Agent reads the short description, category, and affected CI
  → Agent uses Knowledge Graph to find similar past incidents
  → Conclusion: "This is a database connectivity issue on the payment server"
        ↓
REASONING STEP 2: "Who should handle this?"
  → Agent looks up the CI's support group in the CMDB
  → Agent checks the on-call schedule for that group
  → Conclusion: "Database Operations team, Jane Doe is on-call"
        ↓
REASONING STEP 3: "What else needs to happen for a P1?"
  → Agent checks P1 procedures: bridge call required, exec notification required
  → Agent creates a bridge call task
  → Agent sends executive notification
        ↓
ACTION: Agent updates the incident:
  - Assignment group: Database Operations
  - Assigned to: Jane Doe
  - Work notes: "AI Agent analysis: Database connectivity issue on payment
    server CM0001234. Similar to INC0045678 (resolved by restarting
    connection pool). Routed to Database Operations per CMDB ownership.
    Bridge call created. Executive notification sent."
        ↓
MONITORING: Agent monitors for resolution
  → If not acknowledged in 15 min → escalate to backup
  → If resolved → generate resolution summary

Notice the difference from a workflow: a workflow would need every possible path pre-programmed. The AI Agent reasons about the situation and decides what to do based on the context.

AI Agent Studio — Where You Build Agents

AI Agent Studio is the visual builder for creating and configuring AI Agents.

// Navigate to: All > AI Agent Studio
//
// When building an agent, you define:
//
// 1. PURPOSE — What is this agent responsible for?
//    Example: "Route and enrich incoming P1 incidents"
//
// 2. TOOLS — What actions can the agent take?
//    - Look Up Record (read CMDB, incident history, KB)
//    - Update Record (set fields on the incident)
//    - Create Record (create tasks, notifications)
//    - Knowledge Graph search
//    - Call Subflow (trigger a Flow Designer automation)
//    - File Upload / Download
//    - Send Notification
//
// 3. GUARDRAILS — What can the agent NOT do?
//    - Cannot delete records
//    - Cannot change priority (only a human can de-escalate a P1)
//    - Cannot access HR data tables
//    - Must explain its reasoning in work notes
//
// 4. ESCALATION — When should the agent hand off to a human?
//    - Confidence below 60% on intent classification
//    - No similar past incidents found
//    - Customer is VIP with special handling rules
//    - Agent has taken 5+ actions without resolution

Tools — What AI Agents Can Do

AI Agents are given access to tools — specific capabilities they can use during execution. The agent decides which tools to use based on the situation.

ToolWhat It DoesExample Use
Look Up RecordQuery any ServiceNow tableLook up the affected CI's support group, check the caller's VIP status, find similar past incidents
Update RecordModify fields on existing recordsSet assignment group, update priority, add work notes
Create RecordCreate new records in any tableCreate a child task, create a change request, create a problem record
Knowledge GraphSearch connected knowledge across CMDB, KB, and service relationshipsFind which business service is affected, find the owner, find relevant KB articles
Call SubflowExecute a Flow Designer subflowTrigger a password reset, create a bridge call, send a Slack notification
Predictive IntelligenceRun ML models for classificationPredict the correct category, assignment group, and priority

AI Agents in Virtual Agent

One of the most powerful combinations: an AI Agent running inside a Virtual Agent conversation. Instead of following rigid scripted topic flows, the Virtual Agent hands off to an AI Agent that can reason about the user's request in real time.

// Traditional Virtual Agent:
//   User says "my laptop is slow"
//   Bot follows scripted flow: "Have you restarted?" → Yes/No → ...
//   Every possible path must be pre-built
//
// Virtual Agent + AI Agent:
//   User says "my laptop is slow"
//   AI Agent reasons: check user's device in CMDB → check recent incidents
//   for that device → check if there's a known issue →
//   "I see your laptop was imaged 3 years ago and has 4GB RAM.
//    There's a hardware refresh program available. Would you like me
//    to submit a replacement request?"
//
// The AI Agent handles the conversation dynamically based on data,
// not a pre-scripted decision tree.

When to Use What — The Decision Framework

ScenarioUse ThisWhy
User needs to check ticket statusVirtual Agent (scripted topic)Simple lookup — no reasoning needed, just a GlideRecord query
Agent needs a ticket summaryNow Assist skillAdvisory — agent reviews and uses the summary
Password reset requestVirtual Agent + Flow DesignerWell-defined process with clear steps — scripted flow is sufficient
Route a P1 incident with CMDB contextAI AgentRequires reasoning about CI relationships, team availability, and P1 procedures
Handle a complex, multi-step employee onboardingAI AgentMany conditional steps, cross-department coordination, exceptions handling
Generate resolution notes at ticket closeNow Assist skillSingle-task AI assistance, human reviews output
Automatically resolve known-error incidentsAI Agent + Predictive IntelligenceAI matches to known error, applies fix, verifies, closes — fully autonomous

Governance and Safety

Because AI Agents can take actions autonomously, governance is critical:

ControlWhat It Prevents
Tool restrictionsAgent can only use tools you explicitly grant. No tool = no access.
Table/field ACLsStandard ServiceNow ACLs apply. The AI Agent runs under a service account with specific roles — it cannot access tables or fields its role does not permit.
Confidence thresholdsIf the agent's confidence in its reasoning drops below a threshold, it escalates to a human instead of guessing.
Action limitsMaximum number of actions per execution. Prevents runaway loops.
Human-in-the-loopFor high-impact actions (delete, major field changes), require human approval before the agent acts.
Audit loggingEvery action the AI Agent takes is logged — what it reasoned, what tools it used, what changes it made. Full audit trail.
AI Control TowerDashboard showing all AI Agent activity across the instance — usage, errors, escalations, compliance status.

The Adoption Path — How to Get There

AI Agents are not a day-one deployment. They require a mature foundation:

  1. Phase 1: Data Foundation — Clean CMDB, structured KB, consistent categorization. Without good data, AI Agents make bad decisions.
  2. Phase 2: Now Assist — Deploy AI assistance for agents. Prove AI value with lower-risk advisory capabilities.
  3. Phase 3: Virtual Agent — Deploy scripted self-service chatbot. Learn which use cases work well and which need human judgment.
  4. Phase 4: Predictive Intelligence — Deploy ML-based categorization and routing. Build confidence in AI-driven decisions.
  5. Phase 5: AI Agents (Pilot) — Pick one well-defined, high-volume use case (e.g., known-error auto-resolution). Build the agent with strict guardrails. Monitor closely.
  6. Phase 6: AI Agents (Expand) — Expand to more use cases as confidence and governance maturity grow.

The #1 Mistake

Deploying AI Agents before the data foundation is solid. An AI Agent that routes incidents based on bad CMDB data will misroute them at scale — faster than a human would, and without the judgment to realize something is wrong. Fix your data first, then automate.