From Ticket to Takeoff. Built natively for ServiceNow. Free. Controllable. Safe.
Star this repo if you want a ServiceNow AI agent that respects ACLs, shows you the diff, slashes backlogs, and waits for Accept.
What's New in v2.0 • Why Now Pilot • Quick Start • Features • Architecture
Pillar 1 — cut the backlog, raise code quality. Three tools that help teams move faster without writing unsafe platform code.
Turn a vague story or Jira ticket into a clear build plan before anyone writes code.
- Prefer OOTB (UI Policies, Flow Designer) over custom scripts when it fits
- List what you need: UI Policies, Flows, Business Rules, Script Includes, ACLs
- Suggest story points, risk, and simple Given / When / Then acceptance criteria
Generate Automated Test Framework ideas so upgrades and releases are not blocked by weeks of manual testing.
- Form steps: open form, set fields, check mandatory / read-only, submit
- Server-side test script outlines (setup → assert → clean up)
Review and rewrite risky junior patterns into safer ServiceNow code.
- Remove
current.update()inside before Business Rules (recursion risk) - Replace sync client
GlideRecordwith GlideAjax + server Script Include - Add
setLimiton large queries; avoid hardcoded sys_ids; flag N+1 loops
Enterprise AI on ServiceNow usually means:
- Expensive seat licenses on top of the platform you already pay for
- Locked to one vendor’s models
- Scary autonomous writes with no clear approval path
- Opaque scripts that freeze instances with
current.update()in Business Rules
Now Pilot is the opposite: open source, multi-model, human-in-the-loop by design.
| Pain with closed GenAI add-ons | What Now Pilot does |
|---|---|
| $30–$70+/user/month on top of Pro Plus | $0 platform license — Apache-2.0. You only pay your LLM tokens. |
| One vendor’s models only | Google Gemini 2.0 Flash, Claude, GPT-4o, Grok, DeepSeek, Ollama, vLLM — route how you want. |
| Model writes straight to tables | 0% unapproved writes. Every change is a sealed proposal. You click Accept. |
| Junior code that breaks the platform | DevValidator & ArchitectRefactorer block and fix current.update(), eval(), and sync GlideRecord. |
| Testing takes weeks and stalls upgrades | ATF Generator produces automated form validation steps and Jasmine server assertions. |
| Can’t try without a full instance | node local_runner.js — full mock UI in under 60 seconds. |
Floating panel across forms, lists, and Next Experience. Automatically reads active record context (g_form, table, sys_id) without manual copy-pasting.
Correlates open tickets with historically resolved incidents and published Knowledge Base articles. Enforces citation integrity to eliminate AI hallucinations.
Produces production-grade ServiceNow scripts:
- Business Rules (
before,after,async) - Script Includes (standard and client-callable
AbstractAjaxProcessor) - Client Scripts (
onLoad,onChange,onSubmit) - UI Policies & UI Actions
- Scripted REST APIs & Service Portal widgets
Multi-step workflow plans execute read operations automatically, pausing whenever a state change or write is needed to generate an action proposal card.
Every proposed modification is protected by HMAC-SHA256 seals, sys_mod_count stale-record checks, and replay prevention. The AI never commits directly to tables without human confirmation.
No ServiceNow instance required to test the interface and developer engines:
git clone https://github.com/kRamu581/NowPilot.git
cd NowPilot
node local_runner.js
# → Open http://localhost:3000/incident.doClick the floating Now Pilot launcher at the bottom-right. Work a mock incident, decompose a backlog story, or refactor code.
Follow the 11-step walkthrough in → INSTALL.md:
- Import
update_sets/now_pilot_global.xml→ Preview → Commit - Import
update_sets/now_pilot_scoped.xml→ Preview → Commit - Assign role
x_gmg_ai.userto your user account - Add an AI provider in
x_gmg_ai_provider.list(e.g. Gemini, OpenAI, Claude, or OpenRouter) - Open an Incident form and click the launcher
Supported Multi-Provider Models (v2.0)
NowPilot features a unified AI provider architecture supporting 9 leading AI providers with capability-aware routing (Reasoning, Vision, Code, Fast):
| Provider | Canonical Base URL | Supported Models | Capabilities |
|---|---|---|---|
| DeepSeek | https://api.deepseek.com |
deepseek-chat (V4.1/V4 Flash), deepseek-reasoner (R1 0528), deepseek-ocr |
Code, Reasoning, Vision |
| Z.ai (GLM) | https://open.bigmodel.cn/api/paas/v4 |
glm-5.3-flash, glm-4.7-flash, glm-4.5-flash, glm-4.1v-thinking-flash, glm-4v-flash, glm-4-flash, glm-z1-flash, glm-4-9b, glm-z1-9b |
Code, Reasoning, Vision, Fast |
| Qwen | https://dashscope.aliyuncs.com/compatible-mode/v1 |
qwen3-235b-instruct, qwen3-8b, qwen3.5-4b, qwen2.5-7b-instruct |
Reasoning, Code, Fast |
https://generativelanguage.googleapis.com/v1beta/openai |
gemini-2.0-flash, gemma-4-26b-a4b, gemma-4-e4b |
Vision, Code, Fast | |
| OpenAI | https://api.openai.com/v1 |
gpt-oss-120b, gpt-4o, gpt-4o-mini |
Reasoning, Vision, Code |
| Meta | https://api.groq.com/openai/v1 (or Gateway) |
meta-llama/llama-3.1-8b-instruct, meta-llama/llama-3.3-70b-instruct |
Code, Fast |
| Mistral | https://api.mistral.ai/v1 |
mistral-small-3.2-24b, open-mistral-nemo |
Code, Fast |
| NVIDIA | https://integrate.api.nvidia.com/v1 |
nvidia/nemotron-3-ultra, nvidia/nemotron-3-nano-omni-30b |
Reasoning, Vision |
| Specialty / Ollama | Gateway / http://127.0.0.1:11434/v1 |
hunyuan-mt-7b, liquid/lfm-2.5-2.6b, xing-4.0-29b, llama3.1:8b |
Edge, Translation |
flowchart TD
subgraph Browser ["1. Browser / ServiceNow UI"]
UI["NowPilot Floating Widget<br/>(gmg_ai_agent_panel.js)"]
User(["Developer / ITIL Agent"])
User <-->|Prompt / Accept Proposal| UI
end
subgraph Scoped ["2. ServiceNow Scoped Backend (x_gmg_ai)"]
REST["Scripted REST API (/api/x_gmg_ai/agent/chat)"]
Core["AgentCore Orchestrator"]
DevAsst["DevAssistant (Pillar 1 Engines)"]
ITSM["ITSMAssistant (RAG & Knowledge)"]
WF["WorkflowEngine (Autonomous Tasks)"]
Tools["AgentTools (GlideRecordSecure)"]
Validator["DevValidator (Static Code Analysis)"]
Seal["GMGSeal (Cryptographic Action Guard)"]
end
subgraph LLM ["3. Model Layer"]
Adapter["LLMAdapter"]
Gemini["Google Gemini 2.0 Flash"]
Claude["Anthropic Claude 3.5"]
GPT["OpenAI GPT-4o"]
Local["Local Ollama / vLLM"]
end
UI --> REST --> Core
Core --> DevAsst
Core --> ITSM
Core --> WF
DevAsst & ITSM & WF --> Tools
DevAsst --> Validator
Core --> Adapter
Adapter --> Gemini & Claude & GPT & Local
Core --> Seal
Seal -->|Sealed Action Card| UI
- Zero Unapproved Writes: Proposals only. Database writes occur only upon human confirmation.
- ACL Enforcement: All database access routes through
GlideRecordSecure. - SSRF Hardening: Private, metadata, and link-local IP addresses are blocked.
- PII Redaction: Sensitive credentials and system information are stripped from outbound traffic.
- Audit Trails: Unique correlation IDs and execution telemetry are recorded for compliance.
Details: SECURITY.md
NowPilot/
├── README.md, INSTALL.md, FEATURES.md, SECURITY.md, CONTRIBUTING.md
├── local_runner.js # Local ServiceNow simulator (port 3000)
├── SHA256SUMS # Cryptographic checksums of packaged XMLs
├── update_sets/ # Canonical ServiceNow Update Sets
│ ├── now_pilot_global.xml # Global UI panel & applier
│ └── now_pilot_scoped.xml # Scoped application backend (x_gmg_ai)
├── src/
│ ├── global/ # Global UI script (gmg_ai_agent_panel.js)
│ ├── scoped/ # AgentCore, DevAssistant, DevValidator, LLMAdapter...
│ ├── assets/ # Vector logos and favicons
│ └── test/ # Offline unit tests
└── scripts/
└── rebuild_global_xml.py # Packaging sync utility
Apache License 2.0 — see LICENSE.
Copyright 2026 GMG Technology LLC
Developed and extended by Kanam Ramu