Build
Build Catalog Item — example output
Service catalog item with variables & flows
$ nowaikit run build-catalog
███╗ ██╗ ██████╗ ██╗ ██╗ █████╗ ██╗ ██╗ ██╗██╗████████╗
████╗ ██║██╔═══██╗██║ ██║ ██╔══██╗██║ ██║ ██╔╝██║╚══██╔══╝
██╔██╗██║██║ ██║██║ █╗ ██║ ███████║██║ █████╔╝ ██║ ██║
██║╚████║██║ ██║██║███╗██║ ██╔══██║██║ ██╔═██╗ ██║ ██║
██║ ╚███║╚██████╔╝╚███╔███╔╝ ██║ ██║██║ ██║ ██╗██║ ██║
╚═╝ ╚══╝ ╚═════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ✦
NowAIKit — The #1 AI App for ServiceNow
- Running build-catalog in direct mode (ollama)...
# Catalog Item Build Report: New Employee Onboarding Package
## Executive Summary
Based on analysis of the existing `catalog_items` table (30 records found in demo2 instance), I have identified an opportunity to create a comprehensive New Employee Onboarding Package catalog item. This service addresses common onboarding needs that are not explicitly covered in the existing catalog items list.
---
## Step 1 — Understand the Requirement
### Service Analysis
| Aspect | Details |
|--------|---------|
| Service Offered | Complete new employee onboarding package including IT equipment, software access, account creation, and facilities setup |
| Requesters | All employees (via HR department), new hires, contractors, consultants |
| Data Collection | Employee personal details, start date, location, department, manager, equipment preferences |
| Approval Path | HR manager approval (cost-sensitive), IT manager for equipment (security compliance) |
| Fulfillment Steps | 1. Create employee accounts (SSO, email)<br>2. Provision hardware (laptop, phone)<br>3. Assign software licenses<br>4. Setup physical workspace |
| SLA Expectations | 48 hours for standard requests, 24 hours for priority |
| Category Determination | Need to find existing HR or IT categories, or create new one |
### Category Selection
```javascript
// Query for existing HR/IT categories
let hrCategories = new sn_ws.HttpClient().setHeaders({"X-NOW-SYSTEM-SECRET": "..."})
.get("/api/now/table/sc_category?sysparm_query=active=true^short_description~^HR");
// Common category structure:
// - IT Services → Equipment → Hardware
// - HR Services → Onboarding → New Hire
// - Facilities → Workspace Setup
```
Recommended Category: Create or use existing category with parent path: HR Services > Onboarding > New Hire Package (sys_id to be determined via `query_records` on `sc_category`)
---
## Step 2 — Check Existing Catalog Items
### Analysis of Existing Items
| Name | Category | Gap Assessment |
|------|----------|----------------|
| Manage Knowledge Ownership Group | (none specified) | Irrelevant |
| Abuse of access privileges | d2600f00ff2231009bd3ffffffffff80 | Different domain (security incident) |
| Retire a Standard Change Template | 00728916937002002dcef157b67ffb6d | Change management, not onboarding |
| Grant role delegation rights | 496a3a7e0a0a0bc0089b39df14eb56e | Role access, not onboarding |
| Heating & Cooling | 463151e0cb3310104c16f34df8076dd0 | Facilities only, incomplete |
| Direct Deposit Inquiry | 31c78de49f331200d9011977677fcf6b | HR payroll only |
Conclusion: No existing catalog item covers complete new hire onboarding. Create new item from scratch.
Reuse Opportunities:
- Check for shared variable sets related to employee data, location, or equipment
- Check for existing approval rules that could be adapted
---
## Step 3 — Design Variable Layout
```
CATALOG ITEM: "New Employee Onboarding Package"
VARIABLES:
--- Container: "Employee Information" ---
1. employee_email — [Single Line Text] [mandatory] — description
Question: "Employee Email Address (corporate)"
Default: "newemployee{sys_user.email}"
Help: "This will be used for SSO, email, and system accounts"
Order: 100
2. first_name — [Single Line Text] [mandatory] — description
Question: "First Name"
Order: 101
3. last_name — [Single Line Text] [mandatory] — description
Question: "Last Name"
Order: 102
--- Container End ---
--- Container: "Onboarding Details" ---
4. start_date — [Date] [mandatory] — description
Question: "Employment Start Date"
Default: "tomorrow"
Help: "First day of work. Account creation begins this date."
Order: 200
5. location — [Reference: Location] [mandatory] — description
Question: "Work Location"
Default: "primary_location"
Help: "Physical office location for workspace setup"
Order: 201
6. department — [Reference: Company Department] [mandatory] — description
Question: "Department"
Help: "Select the employee's department for proper routing"
Order: 202
... (580 more lines — full output truncated for screenshot)



