Skip to content
kRamu581Public

About

An open-source, multi-model Agentic AI ecosystem purpose-built for ServiceNow developers, administrators and ITSM teams.

Topics

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

Now Pilot for ServiceNow Logo

Now Pilot for ServiceNow v2.0

The open-source AI agent that never writes to production without you.

From Ticket to Takeoff. Built natively for ServiceNow. Free. Controllable. Safe.

Version License ServiceNow Stars Forks

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


🚀 What's New in v2.0

Pillar 1 — cut the backlog, raise code quality. Three tools that help teams move faster without writing unsafe platform code.

1. Backlog Story Decomposer

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

2. ATF Engine

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)

3. Senior Architect Code Refactorer

Review and rewrite risky junior patterns into safer ServiceNow code.

  • Remove current.update() inside before Business Rules (recursion risk)
  • Replace sync client GlideRecord with GlideAjax + server Script Include
  • Add setLimit on large queries; avoid hardcoded sys_ids; flag N+1 loops

The problem everyone hits

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.


Why teams are switching

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.

Core Capabilities

💬 Context-Aware Chat

Floating panel across forms, lists, and Next Experience. Automatically reads active record context (g_form, table, sys_id) without manual copy-pasting.

🔍 ITSM Intelligence

Correlates open tickets with historically resolved incidents and published Knowledge Base articles. Enforces citation integrity to eliminate AI hallucinations.

💻 Dev Assistant & Code Generation

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

⚡ Autonomous Workflows with Pause / Approve / Resume

Multi-step workflow plans execute read operations automatically, pausing whenever a state change or write is needed to generate an action proposal card.

🛡️ GMGSeal — Cryptographic Proposal Integrity

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.


See it in 60 seconds

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.do

Click the floating Now Pilot launcher at the bottom-right. Work a mock incident, decompose a backlog story, or refactor code.

Deploy on a ServiceNow Instance

Follow the 11-step walkthrough in → INSTALL.md:

  1. Import update_sets/now_pilot_global.xml → Preview → Commit
  2. Import update_sets/now_pilot_scoped.xml → Preview → Commit
  3. Assign role x_gmg_ai.user to your user account
  4. Add an AI provider in x_gmg_ai_provider.list (e.g. Gemini, OpenAI, Claude, or OpenRouter)
  5. 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
Google 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

Architecture

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
Loading

Security (Non-Negotiable)

  • 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


Project Layout

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

License

Apache License 2.0 — see LICENSE.

Copyright 2026 GMG Technology LLC
Developed and extended by Kanam Ramu

If this is the ServiceNow AI agent you wished existed — star the repo!

Star

Now Pilot · Built for people who still want the last click · Open source for enterprise IT

About

An open-source, multi-model Agentic AI ecosystem purpose-built for ServiceNow developers, administrators and ITSM teams.

Topics

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages