AI Builder
Beta: describe an outcome, review linked commands, automations and switches, and apply the setup from one chat.
Last updated: December 3, 2026
Build a complete SN Utils setup from one request. AI Builder creates linked slash commands, automations and switches in a separate chat workspace, with editable previews and one apply action.
Open a new chat
Open Manage → AI Builder, or run this slash command in ServiceNow:
/builder
Add a prompt to open a new chat with your request already filled in:
/builder Add Copy Table + SysID to the table menu on incident and problem forms
Each slash invocation opens a separate Builder tab and a new chat. It does not replace a conversation you already have open or submit your prompt. Review it, then choose Generate or press Enter. Use Shift+Enter for a new line.
Screenshots show the actual Builder interface with sample data. The Beta label beside the title marks the beta.
The existing /newcmd and /newsnip commands still open the command and snippet editors in Manage. Their AI side panel is covered in the separate AI Assistant guide.
Review the proposed setup
For the Copy Table + SysID example, AI Builder proposes two linked items:
- A JavaScript command that copies the saved record's table and sys_id.
- An automation that adds a menu action on the requested forms and runs that command when clicked.
The Proposed setup explains the result and its assumptions. Each item shows what it does, where it applies, whether it is ready, and where it will be saved.
Select a card to inspect Details, Code or Changes. Edit fields directly, or ask for a refinement in the chat. Use Lock beside a field to keep that value during later AI refinements.
For example:
Only show the menu action on our development instance dev123.service-now.com
Review the instance and table scope before applying. JavaScript is checked for syntax and displays capability summaries, but those checks do not prove that the code does what you intended. An automation that runs when a page loads may take effect as soon as its conditions match; a table-menu action runs when clicked.
If a name already exists, resolve the conflict in the preview. Built-in and shared items are protected, and updates to personal items are checked against the installed version.
Apply and open the result
Choose the apply action below the preview. For this example it reads Add command and enable automation. AI Builder saves the command and connects the automation to it.
The result lists what was saved and the actual sync status for each item. Open in Manage opens that item's editor in another tab.
To try the example, open a saved incident or problem record and reopen its table-name menu. Choose Copy Table + SysID. The expected clipboard format is:
incident.0123456789abcdef0123456789abcdef
You can also run the generated command directly from the slash palette. The exact trigger is shown on its card.
Undo apply removes newly added items or restores their previous configuration when they have not been changed since. It preserves later edits. Undo cannot reverse effects of a command that has already run, such as a record update or clipboard write.
Build switches too
Leave Auto selected to let AI Builder choose the items needed for your request. Expand Build options & context to request only a command, automation or switch.
Switches support encoded-query parts, URL parameters, links, prepend values and dynamic date filters with an optional fallback field. A build can create a switch and a command that uses it together.
Try:
Create a switch called urgentwork for priority 1 active records, and a command that uses it to open matching incidents
Personal commands and ordinary switches can sync when cloud sync is enabled. Automations and dynamic date switches stay in this browser. Check the per-item result instead of assuming the whole setup has synced.
Snippets and keyboard shortcut assignments are not yet part of this standalone Builder. Continue using their Manage editors and the AI Assistant for snippets.
Keep, revisit or delete a chat
New chat starts another conversation. Chat history, beside the title, lets you search, reopen, export and delete saved chats, or clear them all.
History is local to this browser and scoped to your connected account. It keeps up to 50 chats and expires them after 30 days without an edit. Export chats you want to keep. Deleting a chat removes its draft and undo history; installed items remain.
If an apply pauses, choose Retry apply to resume it or Dismiss to keep saved items and continue with other chats. Deleting the paused chat or clearing history also dismisses the pending apply. Recovery checks for later edits before continuing.
What is sent to AI
When you send a message, the request includes your prompt, recent conversation and the current draft, including generated or edited code. The optional Installed commands control adds command names. Recent ServiceNow tab adds the selected tab's hostname, detected table and surface type.
AI Builder does not automatically collect record values, page DOM, ServiceNow cookies or session credentials. Anything you paste into a prompt or draft becomes part of that submitted content. Opening the page or using /builder alone makes no generation request.
Requests go through SN Utils to its AI providers. Local chat deletion does not delete backend operational logs or provider records. See AI Integration & Data Handling for the standalone Builder's request and logging behavior, and the Privacy & Data Processing Agreement for provider terms.
Related
- AI Assistant: the existing command and snippet editor side panel
- Automations: triggers, conditions and menu actions
- Switches: using reusable command modifiers
- Custom commands: editing commands manually