ServiceNow AI Agent subflows: design multi-step work people can inspect

Kenneth Pangan
Written by

Kenneth Pangan

Stanley Nicholas
Reviewed by

Stanley Nicholas

Last edited September 8, 2026

Expert Verified
Two headset-wearing people seated with laptops inside a green speech-bubble shape

What a ServiceNow AI Agent subflow actually does

ServiceNow's AI Agent Studio guide lists subflows alongside script tools and knowledge retrievers as agent tools. A subflow is not an extra AI brain. It is the repeatable, structured part of a job that the agent can call when its inputs fit.

That distinction is useful. A good subflow makes the system easier to run because its inputs and outputs are explicit. “Resolve access issue” is too broad. “Prepare an account-recovery handoff from a verified ticket number” is a job an operator can test.

A concrete support-handoff subflow

Consider a customer who says their account is missing. A support agent should not create a new account simply because a chat message asks for it. A practical flow is:

  1. Receive the ticket number and customer identifier. Reject an incomplete request instead of guessing.
  2. Retrieve permitted account and ticket context. Return the fields the next decision needs, not an unrestricted record dump.
  3. Check for evidence. Has the customer supplied the account email, order reference, or other required verification? If not, draft the clarification question.
  4. Create a handoff draft. Include the evidence found, the missing evidence, and the owner queue.
  5. Send or update only after the configured approval path. The subflow can end with a prepared result when a human decision is needed.

The valuable output is not “the agent did something.” It is a handoff with the evidence another teammate needs.

Give each stage its own contract

StageInputOutputStop condition
Context lookupTicket and customer identifierAllowed account factsNo matching or authorised record
Evidence checkLookup result and requestVerified / missing evidencePolicy condition cannot be established
Handoff preparationEvidence and case summaryDraft owner, queue, and notesRequired owner is unavailable
Approved updateReviewed draftRecord update confirmationApproval is absent or update fails

This design also makes incident review less vague. If a failure comes from an absent record, fix the retrieval path. If it comes from missing customer evidence, improve the intake message. Do not treat both as a reason to grant a broad write action.

Configure security at the actual boundary

ServiceNow's current AI Agent Studio guide calls out two separate controls. ACLs determine who can discover and invoke an AI agent or agentic workflow. User identity determines what the agent can access after it starts. The recommended dynamic-user mode inherits the invoking user's roles; an AI user uses a dedicated account with fixed roles. Role masking can restrict inherited roles further.

That means an ACL is not enough to answer “can this subflow write this record?” It controls invocation, not the data authority during execution. For a script tool that accesses platform data, ServiceNow specifically recommends GlideRecordSecure rather than GlideRecord so table-level ACL checks apply.

ServiceNow also documents supervised mode for sensitive or critical tool actions. Use it where your own process requires a human decision. It is a configuration choice, not a claim that every action is automatically held.

Test the branch, not just the happy path

Run the subflow with a normal case, a missing identifier, a record the invoking user cannot access, contradictory evidence, and a failed downstream update. ServiceNow's current build guidance says access controls must be configured before testing or deployment. Its release notes also describe AI-native playground testing and automated agentic evaluations in the Australia release.

Check three outputs each time: the tools invoked, the data returned, and the final action or escalation. This is how a team finds a wrong boundary before it becomes an operational habit.

Inspect a scheduled or event handoff with eesel

eesel's AI helpdesk teammate is for teams that want a defined support job staffed in the tools they already use. The dashboard and CLI operate the same workspace and teammate. A person can run the commands; a script or coding agent such as Claude Code, Codex, or Cursor can read the JSON output and prepare a reviewed change.

With Node.js 18.17 or newer, inspect a scheduled or event-driven handoff before changing it:

Bash
npx @eesel/cli automations --agent "IT support"
npx @eesel/cli instructions --agent "IT support"
npx @eesel/cli activity --agent "IT support"

eesel automations shows event, scheduled, and webhook automations. eesel instructions lets you inspect the teammate's standing rules, and eesel activity shows recent work. If the evidence and rules look right, use the command's --help to find the supported update, run it with --dry-run, and only then make the approved configuration change. This does not configure ServiceNow for you; it gives the same eesel teammate a reviewable operating surface. The full CLI guide documents the commands.

eesel Activity worklist with status filters
eesel Activity worklist with status filters

The eesel Activity page shows recent work with filters for its status.

Build a handoff people can trust

A subflow is worthwhile when it turns a fuzzy support task into small, testable pieces of work. Start with retrieval and a draft handoff. Expand to an approved update only after real cases show that the inputs, access, and failure paths hold up.

Inspect one support handoff before you scale it

eesel lets a support team operate the same teammate in the dashboard, terminal, or a reviewable script. Connect the knowledge it needs, inspect the instructions and automation that shape the handoff, and test the result before you approve a wider configuration. Try eesel when you want that support work to be visible and reviewable.

Frequently asked questions

What is a ServiceNow AI Agent subflow?

A subflow is a reusable Flow Designer sequence that an AI agent can run as a tool. It gives a multi-step task defined inputs and outputs.

When should I use a ServiceNow AI Agent subflow?

Use one when a repeatable sequence has a clear start, result, and failure path, such as collecting incident context or creating a handoff task.

Can a ServiceNow agent subflow update records?

It can if the configured identity and roles permit it. ServiceNow ACLs control invocation, while user identity controls the data and actions available during execution.

How should I test an AI Agent subflow?

Test normal, missing-data, denied-access, and downstream-error cases. Review which tools ran, their outputs, and the escalation result.

Can I inspect eesel automations from a terminal?

Yes. eesel automations shows event, scheduled, and webhook automations for the same workspace used by the dashboard.

What does the eesel CLI dry-run flag do?

--dry-run prints the server call a supported write would make without sending it, so a person or coding agent can check the change first.

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 →
Illustration of a presenter pointing to the Zendesk logo
Guides

Zendesk AI agent escalations: design a handoff people can finish

Build Zendesk AI agent escalations that collect the next useful detail, respect agent availability, route clearly, and leave humans enough context to act.

Kenneth PanganKenneth PanganOct 14, 2025
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
Banner image for Zendesk automation recipe: How to close stale tickets with multi-step reminders
Guides

Zendesk automation recipe: How to close stale tickets with multi-step reminders

A step-by-step guide to creating a Zendesk automation workflow that sends reminders and closes stale tickets automatically.

Stevia PutriStevia PutriFeb 24, 2026
Zendesk automation to close stale tickets after multi step reminders: The definitive guide
Guides

Zendesk automation to close stale tickets after multi step reminders: The definitive guide

Stale tickets are a natural part of any busy support queue. This guide walks you through setting up a native Zendesk automation to close stale tickets after multi step reminders and introduces an AI-powered solution to help manage your backlog even more efficiently.

Stevia PutriStevia PutriOct 28, 2026
How to create ServiceNow AI agents: A step-by-step guide
Guides

How to create ServiceNow AI agents: A step-by-step guide

Wondering how to create ServiceNow AI agents? This practical guide breaks down the process, from setting up agentic workflows to equipping agents with tools. We'll explore the complexities and introduce a simpler, more powerful way to automate your IT and customer support.

Stevia PutriStevia PutriOct 7, 2025
How to enable AI search in ServiceNow: A 5-step guide
Guides

How to enable AI search in ServiceNow: A 5-step guide

Looking to activate AI Search in ServiceNow? This practical guide breaks down the process into five clear steps, from enabling plugins to configuring search profiles, so you can deliver a modern search experience to your users.

Kenneth PanganKenneth PanganOct 7, 2025
A practical guide to multi-turn AI conversations
Guides

A practical guide to multi-turn AI conversations

Tired of chatbots that forget what you just said? Multi-turn AI conversations are the key to more natural, helpful support. This guide breaks down what they are, why they often fail, and how you can implement them successfully without the headaches.

Kenneth PanganKenneth PanganOct 29, 2025
Grok Bot working a ServiceNow incident queue, illustrated hero banner
Guides

Grok Bot for ServiceNow: what it can and can't do in 2026

xAI's Grok Bot can sign into ServiceNow and work the queue by remote control, and there's a second, MCP-based route in too. Here's what each one actually does, what breaks on a live ITSM queue, and the safer alternative.

Rama Adi NugrahaRama Adi NugrahaSep 21, 2026
Illustration of a developer at a terminal with a CLAUDE.md file, subagents, a code diff, and a rocket launching
Trending

Claude Code projects: how to set up and ship real work (2026)

A practical guide to Claude Code projects: the new Projects feature, the CLAUDE.md and subagent setup that makes them repeatable, real pricing, and what to build.

Rama Adi NugrahaRama Adi NugrahaSep 21, 2026

Ready to hire your AI teammate?

Set up in minutes. No credit card required.

Get started free