OBLYTECH Logo
OBLYTECH Logo

Building and Configuring AI Agents in AI Agent Studio

Build an AI agent in AI Agent Studio by defining its job, reviewing expected behavior, attaching tools and information, and setting access rules. Add test scenarios, optional triggers, channels and memory controls. Creating the agent requires sn_aia.admin. Test its behavior and permissions before selecting Activate so users receive the intended result.

Prepare AI Agent Studio for the build

Install the ServiceNow Otto AI Agents components before configuring the agentic AI experience. The Home page brings together recently edited assets, prebuilt automations and automation opportunities. In Agentic solutions, the AI agents and Agentic workflows tabs separate individual agents from processes that coordinate them. Select an asset’s name to open its node map, then edit the relevant node.

The instructions here follow the Brazil experience; check the interface and available capabilities on your instance and release. Settings includes AI Guardian offensiveness detection and prompt injection protection, long-term memory, user facts and preferences, external agent settings and model provider configuration. Decide the intended business outcome before changing these controls. If that outcome is unsettled, start with AI agent readiness and use-case design.

Create an AI agent with a defined job

With sn_aia.admin, navigate to All > AI Agent Studio > Home. Select Create new agentic solution, then New AI agent for a task. Describe the agent in the pop-up and select Next, or use Skip to open a new form. Choose Create an agent from scratch and select Next.

Describe the goal, what starts the work, the records and tables involved, and the result that counts as finished. Select Check to generate suggested general prompt content and tools. This check can identify existing solutions with a similar goal, giving you an opportunity to edit a matching asset instead of building a duplicate. Review the suggestions before accepting them.

Conversational creation and automation opportunities provide alternative starting points. A conversational build drafts the agent definition and suggests tools for review in guided setup; it creates agents rather than agentic workflows. An opportunity applies the identified automation context. Neither route removes the need to inspect the generated fields, access rules and tool selection.

Define expected behavior and modality

The Expected behavior section requires a name, description, modality, AI agent role and instructions. Defining this behavior requires sn_aia.admin. The Orchestrator uses the description, role and instructions to decide how the agent should participate, either independently or within an agentic workflow. The role describes its function in that wider process.

Make the name and description specific enough to distinguish this agent from neighboring agents. Write instructions that explain the work and its sequence. As a review check, trace each instruction to the information or tool needed to carry it out. Instructions that request an update without a suitable tool leave an unresolved gap in the design.

Chat agents can run in Virtual Agent or as part of an agentic workflow in the ServiceNow Otto panel. An agent has one modality. Build separate agents for Chat and Voice when both are needed, and create the voice assistant in Assistant Designer before selecting Voice. External AI agents have a separate creation route for connecting third-party providers.

Attach tools and information the agent can use

Tools provide the capabilities needed to perform tasks. Review suggested tools against the job rather than treating the suggested list as a completed configuration. For each intended action, check what information enters the tool, what it returns and how that result supports the next instruction. For work involving interface interactions, see AI desktop actions.

Information can reach the agent through knowledge graphs, search retrieval tools and file upload tools. These serve different needs: relationships between entities, retrieved content from defined sources, and specific documents. Long-term memory can make selected categories of previous interactions available for later requests. Configure its categories and learning controls deliberately rather than assuming the current conversation supplies everything the agent needs.

Separate user access from data access

Defining access rules requires sn_aia.admin. User access determines who can discover or invoke the agent. Allowed users offers Users with specified roles, Authenticated users and Public. Saving creates an ACL from those choices. Public permits anyone who can reach the instance to invoke the agent and should be reserved for agents that expose no record data.

Data access determines the identity used to read and write records after invocation. Dynamic user uses the invoking user’s identity, or the dynamic user of the calling workflow. AI user uses a dedicated identity with its own roles, regardless of who starts the request. Review these choices alongside instance security and access control.

For Dynamic user, Approved roles limits the roles available during execution. Leaving roles unselected can inherit the invoking user’s roles; role filtering is required unless an administrator with appropriate elevated access configures an override. Avoid treating a broad identity as a substitute for diagnosing missing permissions. Test different intended user roles and confirm the records they can access.

Third-party discoverability is a separate access choice, and an external agent still needs the correct user access. If access fields are read-only, check the application scope: Platform AI Agents and Skills enables editing. Role choices can be changed through guided setup; direct ACL changes require the appropriate elevated role.

For help planning this work, see ServiceNow implementation.

Add triggers and choose channels

Adding a trigger requires sn_aia.admin. A chat-only agent does not need one. For automatic invocation, choose a trigger type, enter its name, select a table, define at least one condition and supply Objective for this AI agent. Scope the condition before activation because matching records determine how widely the agent runs.

Choose the trigger identity through an AI user identity, an existing table or a custom script. Its roles and data access apply during execution, so compare them with the agent’s access rules. Test one matching record before enabling broader execution. Select the launch channel and decide whether Show an alert to users is appropriate. For the wider process context, see ServiceNow workflow automation explained.

Channel configuration lets users invoke the agent through selected Virtual Agent chat assistants. Chat agents can also participate in workflows in the Otto panel. Check access through the intended channel after testing and activation; a successful builder test does not establish the audience’s experience.

Test versions, scenarios and outcomes

Manual testing requires sn_aia.admin and either admin or at least one role required by the asset’s ACL and each downstream component’s ACL. Missing access prevents execution. From the node map or guided setup, select Run test, choose Single test, select the asset and Version, enter the objective, then select Run single test.

Use a record identifier that exists on the instance. Review the simulated conversation, expanded nodes, Trace log, Analysis and Test details. A completed execution means the run finished; it does not prove the answer or record changes were correct. Compare the actual outcome with the objective and inspect the first tool call whose inputs or outputs diverge from expectations.

Creating test scenarios requires sn_aia.admin. In guided setup, use Test scenarios and Add scenarios. Table records supports objectives containing field variables through Insert related columns; Manual entry requires a separate objective for each scenario and does not support variables. Select records covering different conditions, then use Evaluation to assess patterns across executions. Choose acceptance criteria before running it.

Instructions can have multiple versions. Compare behavior after changes using the Version selection rather than assuming revised wording improved the outcome. Save the configuration and select Activate after testing. Maintain human review where the consequences of an incorrect action warrant it.

Diagnose permission gaps and tool failures

Test individual agents as well as their calling workflows. A workflow can be accessible while one underlying agent lacks resource access, producing a silent failure. Compare assigned roles, required table access and role filtering. The generative AI Log table, sys_generative_ai_log, helps investigate execution errors and permission failures; agent definitions and memory records can help isolate configuration or memory problems.

Start with the test’s Analysis findings, then follow the Trace log backward from the failure. Inspect the failing tool’s inputs and outputs before rewriting instructions. Use Activity to check runs still in progress and to review performance patterns. This separates a blocked execution from a completed run that produced the wrong business result.

Questions about build and test edge cases

Why does an opportunity show tools I cannot find?

The preview’s tool count estimates what the opportunity needs. It does not count tools already installed on your instance. Review availability during the build.

Why does a scheduled trigger omit matching records?

Scheduled execution has a record cap of ten by default. Check sn_aia.max_scheduled_trigger_query before assuming the condition failed.

Can a new email directly trigger the agent?

New emails are not available as triggers in this configuration. Choose a supported trigger type that fits the intended event.

Why is another test or evaluation blocked?

An open test prevents another test or evaluation on the same asset. Close the test panel and start a new run to clear that state.

Where can I inspect the full execution record?

Use the execution sys_id in Test details to open the run in the Execution Plans table, sn_aia_execution_plan.

How do the Brazil single canvas and Action Fabric change how we build agents and let external agents call our workflows?

In Brazil, AI Agent Studio puts the agent, its workflow and its tools on one visual canvas. Action Fabric lets external agents and MCP clients call ServiceNow workflows that are already governed, with identity, permissions and audit controls still applying. Builders design the agent and its workflow together, and every external caller becomes a security question.

What the single canvas changes in the build

As of November 2026, Brazil is the current generally available platform family, which reached that status on 5 November 2026. Within it, AI Agent Studio places the agent, its workflow and its tools on one canvas, with version control and duplicate detection. In practice, the reviewer checks the instructions and the tool calls they drive in one place.

AI-agent creation is subject to the customer’s AI tier, so the canvas does not mean every team can build on it. Confirm the tier before you plan a rollout.

A build sequence for the canvas

  1. Define the job first: what starts it, the records it touches and what counts as finished.
  2. Place the workflow steps the agent runs, then attach only the tools each step needs.
  3. Settle the name, description, role and instructions before you test the agent.
  4. Save a version before each change to the instructions, so that a regression traces back to a single edit.
  5. Review the duplicate detection result before publishing a second agent with a similar purpose.

How Action Fabric lets external agents call workflows

Action Fabric runs the other way. An external agent or MCP client calls in and works against governed ServiceNow workflows. As of November 2026, the Brazil MCP servers and capabilities for product areas include:

  • ITSM MCP Server, for incidents, requests, changes and on-call tasks.
  • HRSD MCP Server, for opening or updating HR cases and verifying eligibility with identity and permission checks, which requires HRSD and an AI/MCP entitlement.
  • SPM MCP capability, for querying portfolios, detecting risks and generating status reports while ACLs and audit trails still apply. It is listed at the Advanced tier.

What to confirm before an external caller gets access

  • The identity the external caller uses and the roles it holds, because access follows that identity.
  • The ACLs on each table the workflow reads or writes, tested with that identity rather than an admin account.
  • Whether the ITSM Enhanced Security Features plugin is active. It activates automatically on upgrade and adds deny-unless-authenticated ACL behavior, so integrations need retesting.
  • Whether specific product MCP servers carry their own licenses, and whether outbound MCP use draws on Assists.
  • As of November 2026, monitoring external enterprise AI agents through the Super Intelligence Control Tower requires the enterprise-AI SKU.

Several items in this list are tier-dependent, so check entitlement for each one before you plan around it.