- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
15m ago
Build a full-stack event registration and visitor logistics application with deep-level prompts — public portal, live organiser dashboard and hardened security included
|
11 PROMPTS · ~90 MINUTES · NO HAND-WRITTEN CODE · Australia + FLUENT SDK |
| What you will build | A deployable Event Visitor Management application: six tables, role-based ACLs, a single rules engine with seventeen thin business rules, event-driven notifications and a scheduled lunch lock, front-desk UI actions, a public self-registration Service Portal, and a live React organiser dashboard backed by a role-checked REST API |
| Time required | ~90 minutes to complete the 11 build prompts. Additional time for exploration. |
| What you need | A Australia ServiceNow instance with Build Agent activated, admin role and at least 11 Build Agent interactions available. Familiarity with the ServiceNow IDE helps but no code is written by hand. |
| Interaction budget | This guide uses 11 Build Agent interactions. Make sure your instance has at least 11 available before you start. |
This guide walks you through building a complete event registration and visitor logistics application using Build Agent. The eleven prompts are deep-level prompts: each one is a detailed specification with exact table and field names, field types, platform limits and known pitfalls written in, so Build Agent produces a deployable application rather than a prototype. You will copy and paste each prompt and end up with a working scoped app, a public self-registration portal and a live organiser dashboard.
| PREPARE YOURSELF — READ THIS BEFORE OPENING THE IDE |
Prepare Yourself
This section gives you the background and official documentation links you need before starting the build.
What is ServiceNow Build Agent?
Build Agent is an AI-powered development assistant inside the ServiceNow IDE. You describe what you want to build in plain language and Build Agent generates the application — tables, fields, roles, business rules, and navigation — as working platform code. This approach is called 'vibe coding': you focus on intent, the AI handles implementation. For this lab, you do not need to write any code.
Official Documentation — Australia Release
| Documentation | What it covers | URL |
|---|---|---|
| Build Agent — Australia | Capabilities, interaction model, PDI limits, supported metadata types | docs.servicenow.com |
| Personal Developer Instance / Cloud Lab | Request a free Australia PDI, manage your existing instance, and access developer labs | developer.servicenow.com |
|
⚠ Build Agent will ask you for approval before it builds
|
Before You Start
How it works
This guide uses eleven deep-level copy-paste prompts to build a complete application. Here is the overall pattern:
|
1 Think of your problem Guest lists in spreadsheets. Parking allocated by email. Lunch counts guessed the night before. Lab instances handed out on sticky notes. That is your application. |
2 Copy and paste the prompts Each grey box is a deep-level prompt. Paste it into the Build Agent chat panel, press Enter and approve the plan. |
3 Explore what it built Register on the portal. Check guests in at the front desk. Watch the live dashboard update. This is a real, working application. |
| WHAT YOU ARE BUILDING — EVENT VISITOR MANAGEMENT |
By the end of this guide you will have a scoped ServiceNow application called Event Visitor Management — attendee-type entitlements, automatic parking, badge, lunch and lab instance allocation, a public self-registration portal and a live organiser dashboard, with security designed in.
| Capability | What it does |
|---|---|
| Data model | Six tables with exact short names: Event, Registration (REG numbering), Parking Spot, Visitor Badge, Meal Allocation and Lab Instance — with audit, unique indexes, related lists and seven live event counters. |
| Role hierarchy and ACLs | Six roles with Event Manager containing the rest. Record and field ACLs on every table, scripted ACLs so hosts see only their own guests, and photo ID verification writable only by Front Desk. |
| Rules engine | EventVisitorEngine holds the entitlement matrix and every allocation: parking with EV preference and accessibility as a hard filter, badges, meals, lab instances, cancellations and waitlist promotion. |
| Business rules | Seventeen thin rules call the engine — cut-off rejection, capacity waitlisting, entitlements, lab assignment at check-in, cancellation release, counters, and the badge security gate. |
| Notifications and scheduling | Four platform events drive Executive Guest, parking-shortage, lab-shortage and lunch-lock emails. A scheduled job locks lunch headcounts every 15 minutes and sends catering the table. |
| Front desk tools | Check In, Check Out, Verify Photo ID, Issue Badge and Return Badge UI actions, plus accessible field styles flagging executives, lab issues and waitlisted guests. |
| Public self-registration portal | An anonymous Service Portal at /event with event discovery, capacity bands (Available, Almost Full, Full, Closed), waitlist sign-up and My Bookings — all through a hardened intake. |
| Live organiser dashboard | A React UI page polling a role-checked Scripted REST API every 20 seconds: capacity, check-in progress, catering by diet, parking by zone, lab status, compliance gaps and attention alerts. |
| PART 1 — BUILD YOUR APPLICATION (11 PROMPTS · ~70–95 MINUTES) |
Follow these steps in order. Do not skip a step or submit the next prompt before the current one has finished.
|
How to submit a prompt
|
| 1 |
App and roles Interaction 1 of 11 |
|
What this prompt builds
|
| COPY AND PASTE THIS PROMPT — Step 1 of 11 |
|
Create a new scoped ServiceNow application called "Event Visitor Management" — event registration and visitor logistics for a corporate office hosting customer workshops, labs and events. Then create six roles in src/fluent/roles.now.ts: - host — ServiceNow employee who registers guests and sees their own guests - front_desk — checks attendees in/out, verifies photo ID, issues and collects badges - catering_coordinator — views meal allocations and headcounts - facilities_coordinator — manages the parking inventory - lab_admin — manages lab instances and assignments - event_manager — full access; use containsRoles to include the other five Build and install. |
| 2 |
Event and Registration tables Interaction 2 of 11 |
|
What this prompt builds
|
| COPY AND PASTE THIS PROMPT — Step 2 of 11 |
|
Add two tables. IMPORTANT: table names cap at 30 chars and the scope prefix eats ~19, so use these exact short names. Table 1: x_snc_event_visito_event, label "Event", display name, audit on. Fields: name (string 120, mandatory), event_date (date, mandatory), start_time and end_time (time), location (reference cmn_location), venue_room (string 100), image_url (UrlColumn 1024, hint: used as the event card image on the public portal, gradient generated when blank), seating_capacity (integer min 0), registration_cutoff and lunch_cutoff (datetime), includes_lab (boolean), meal_headcount_locked (boolean, readOnly), event_manager (reference sys_user, qualifier active=true), status choice (no none): planned | open_for_registration | registration_closed | in_progress | completed | cancelled, default planned. Also seven readOnly integer counters default 0: registered_count, confirmed_count, waitlisted_count, checked_in_count, no_show_count, labs_assigned_count, labs_available_count. Table 2: x_snc_event_visito_reg, label "Registration", display full_name, audit on, autoNumber prefix REG starting 1000 with 7 digits. Fields: number (readOnly), event (reference to the event table, mandatory), event_name (string 120 readOnly), full_name (string 120 mandatory), email (EmailColumn 100 mandatory), mobile_number (40), company (100), job_title (100), attendee_type choice (no none): executive_guest | speaker | customer_partner_guest | servicenow_employee, host (reference sys_user), needs_parking (boolean), vehicle_registration (40), needs_ev_charging (boolean), dietary_preference choice (with none): vegetarian | non_vegetarian | vegan | jain | gluten_free, accessibility_needs (MultiLineText 1000), expected_arrival (datetime), arrival_priority (integer readOnly), parking_summary / badge_summary / lab_summary (string 120 readOnly), lab_participant (boolean), lab_assignment_issue (boolean readOnly), lab_assignment_note (string 255 readOnly), nda_accepted (boolean), photo_id_verified (boolean), check_in_time and check_out_time (datetime), status choice (no none): registered | confirmed | waitlisted | checked_in | checked_out | no_show | cancelled, default registered. Add Form and List layouts for both, plus Registration as a related list on Event. Build and install. |
| 3 |
Logistics tables Interaction 3 of 11 |
|
What this prompt builds
|
| COPY AND PASTE THIS PROMPT — Step 3 of 11 |
|
Add four more tables with Form and List layouts. x_snc_event_visito_park_spot "Parking Spot", display spot_number: spot_number (40 mandatory, unique index), zone choice: basement_1_reserved | basement_2_visitor | ev_charging, has_ev_charging (boolean), accessible (boolean), registration (reference to Registration, cascade clear), status choice: available | assigned | occupied | blocked, default available. x_snc_event_visito_badge "Visitor Badge", display badge_number: badge_number (40 mandatory unique), registration (reference mandatory), badge_type choice: vip | speaker | visitor | employee, escort_required (boolean), access_floors (255), access_zones (255), issue_time, return_time (datetime), status choice: generated | issued | returned | voided, default generated. x_snc_event_visito_meal_alloc "Meal Allocation", display registration: registration (reference, cascade delete, mandatory), event (reference mandatory), meal_type choice: lunch, dietary_preference (same five choices), seating_area choice: executive_table | general_seating, status choice: allocated | locked | served | released. Unique index on registration + meal_type. x_snc_event_visito_lab_inst "Lab Instance", display instance_name. NO PASSWORD FIELD: instance_name (100 mandatory unique), instance_url (UrlColumn 1024), release (40), instance_type choice: pdi | cloud_lab | demo, build_agent_enabled (boolean), build_agent_interactions (integer min 0), event (reference), registration (reference), assigned_time, released_time (datetime), status choice: available | assigned | in_use | released | needs_reset, default available. Add related lists: parking/badges on Registration; meals/labs on Event. Build and install. |
| 4 |
ACLs Interaction 4 of 11 |
|
What this prompt builds
|
| COPY AND PASTE THIS PROMPT — Step 4 of 11 |
|
Add record ACLs for all six tables in src/fluent/acls.now.ts, importing the Role objects from roles.now.ts. CRITICAL: never write roles: ['']. An empty-string role reference FAILS THE INSTALL. For an ACL that applies to all authenticated users, OMIT the roles property entirely. - Event: read for all six roles; create/write/delete Event Manager only. - Registration: read/write for Event Manager + Front Desk + the three coordinators; PLUS a scripted read AND a scripted write for the host role with script: answer = (current.host == gs.getUserID()) || (current.sys_created_by == gs.getUserName()); create for Event Manager + Host + Front Desk; delete Event Manager only. Add a field-level write ACL on photo_id_verified for Front Desk + Event Manager only. - Parking Spot: Facilities + Event Manager full; Front Desk read. - Visitor Badge: Front Desk + Event Manager full except delete (Event Manager only). - Meal Allocation: Catering read-only; Event Manager full. - Lab Instance: Lab Admin + Event Manager full. Build and install. |
| 5 |
Rules engine Interaction 5 of 11 |
|
What this prompt builds
|
| COPY AND PASTE THIS PROMPT — Step 5 of 11 |
|
Create a Script Include EventVisitorEngine (Class.create, package_private) with the script in src/server/script-includes/event-visitor-engine.js. This is the single place all business logic lives. Glide APIs are auto-available — do not import them. Table-name constants, plus: ENTITLEMENT MATRIX by attendee_type: - executive_guest: parking zone basement_1_reserved ALWAYS, VIP badge, escort true, seating executive_table - speaker: basement_1_reserved ALWAYS, Speaker badge, escort false, access zones "Venue, Green Room", general_seating - customer_partner_guest: basement_2_visitor only if needs_parking, Visitor badge, escort true, general_seating - servicenow_employee: NO parking ever, Employee badge, escort false, general_seating Methods: - isPastRegistrationCutoff, countSeatsTaken (GlideAggregate), hasCapacity (blank/zero capacity = unlimited), getExpectedArrival (event date + start time) - applyEntitlements(regId): allocate parking first; if no spot in the zone, set the registration to waitlisted and fire a parking-shortage event, and do NOT create a badge or meal. Otherwise create badge + meal. Must be idempotent. - assignParking: first available spot in the entitled zone ordered by spot_number. If EV charging requested prefer an EV-capable spot, then the ev_charging zone. Accessibility is a HARD FILTER on every attempt, never a preference. Re-read and re-check each candidate immediately before claiming it so concurrent check-ins cannot take the same spot. - createBadge, createMeal (meal created locked if the event headcount is locked) - releaseForCancellation: release parking, void badges, release meals, release labs, then promoteOldestWaitlisted for that event - assignLabInstance: only for lab participants, only if nda_accepted; pick the first available instance reserved for that event with build_agent_enabled and build_agent_interactions >= 5; re-check before claiming; if none, flag lab_assignment_issue + note and fire a lab-shortage event - releaseLabsForRegistration / releaseLabsForEvent: set needs_reset, stamp released_time, clear registration - isGatedBadgeType (vip, speaker, visitor) and badgeIssueBlockers(regId) returning which of NDA acceptance / photo ID verification / assigned host is missing - lockMealHeadcount(eventId) + buildHeadcountHtml(eventId) grouped by seating_area and dietary_preference with a total - getArrivalPriority: executive_guest 1, speaker 2, customer_partner_guest 3, servicenow_employee 4 - refreshRegistrationSummary(regId): parking/badge/lab summary strings, only update if something changed - refreshEventCounters(eventId): ONE GlideAggregate grouped by status for registrations and one for labs; only update if a counter changed - notifyRecipients(roleName): active users with that role as comma-separated sys_ids, falling back to event_manager; notifyExecutiveGuest(reg) targeting host + event manager Also register four platform events (sysevent_register). event_name is capped at 40 chars and the scope prefix eats 19, so keep suffixes short: <scope>.exec.guest, <scope>.parking.short, <scope>.lab.short, <scope>.meal.locked Reminders: gs.nowDateTime() is banned in scoped apps — use new GlideDateTime(). Boolean getValue() returns '1'/'0', not true/false. Build and install. |
| 6 |
Business rules Interaction 6 of 11 |
|
What this prompt builds
|
| COPY AND PASTE THIS PROMPT — Step 6 of 11 |
|
Add business rules, each with its script in src/server/business-rules/*.server.js (plain legacy scripts using current/previous/gs, calling new EventVisitorEngine()). *** CRITICAL: NEVER set abortAction: true on a BusinessRule. That is the platform's declarative abort flag and aborts EVERY operation the rule runs on, regardless of what the script decides. Use conditional current.setAbortAction(true) inside the script. Also getAbortAction() does NOT exist in the scoped API — use a local boolean flag. *** In encoded filter conditions use ^NQ for OR-of-blocks and never put ^EQ mid-condition. On Registration: - order 50 "Sync Event Name", before insert/update, filter event changes — denormalise the event name onto event_name (notifications reserve ${event} for the triggering sysevent, so a field named event cannot be rendered) - order 100 "Reject Registrations After Cut-off", before insert — abort with a message naming the cut-off date - order 200 "Set Registration Status And Expected Arrival", before insert — confirm if capacity allows, else waitlist with an info message; default expected_arrival - order 60 "Set Arrival Priority", before insert/update when attendee_type changes - "Stamp Check-in And Check-out Times", before update on those status transitions - after insert "Apply Entitlements On Registration" — allocate when confirmed, and always raise the Executive Guest alert for executive_guest - after update "Apply Entitlements On Confirmation" when status changes to confirmed - after update "Release Entitlements On Cancellation" when status changes to cancelled - after update "Assign Lab Instance On Check-in" when lab_participant and status changes to checked_in - after update "Release Lab Instance On Check-out" when status changes to checked_out - after insert/update "Refresh Event Counters" (also refresh the previous event if the event changed) On Visitor Badge: before insert/update "Badge Issue Security Gate" — block a VIP, Speaker or Visitor badge reaching issued unless NDA accepted, photo ID verified and a host assigned, listing exactly what is missing; stamp issue_time/return_time. Employee badges are not gated. On Lab Instance: before update "Prevent Lab Instance Double Assignment" — block moving a still-assigned/in-use instance to a different registration. After insert/update/delete "Sync Lab Summary" — refresh registration summary and event counters. On Parking Spot and Visitor Badge: after insert/update/delete sync rules that refresh the registration summary for current and previous registration. On Event: after update "Release Lab Instances On Event Completion" when status changes to completed. Build and install. |
| 7 |
Notifications and scheduled job Interaction 7 of 11 |
|
What this prompt builds
|
| COPY AND PASTE THIS PROMPT — Step 7 of 11 |
|
Add four event-driven email notifications and one scheduled script. All notifications take recipients from event parm1 via recipientDetails: { eventParm1WithRecipient: true, sendToCreator: false }, and use triggerConditions: { generationType: 'event', eventName: '<scope>.<suffix>' } with emailContent: { contentType: 'text/html', importance, subject, messageHtml }. *** Do NOT use ${event} anywhere in a subject or body. It is reserved for the triggering sysevent object; using it renders empty AND silently blanks the whole subject line. Use ${event_name} on Registration-based notifications. *** 1. "Executive Guest Registered" on Registration, event exec.guest, importance high — guest name, job title, company, expected arrival, event_name, host, number, status. 2. "Parking Unavailable - Registration Waitlisted" on Registration, event parking.short, high — attendee, type, required zone from ${event.parm2}, EV needed, accessibility needs, vehicle, event_name, number. 3. "No Lab Instance Available" on Registration, event lab.short, high — attendee, event_name, check-in time, number, lab_assignment_note. 4. "Lunch Headcount Locked" on Event, event meal.locked — event name, date, location, room, cut-off, and the rendered headcount table from ${event.parm2}. Scheduled Script "Lock Lunch Headcount", frequency periodically, executionInterval 15 minutes: find events where meal_headcount_locked is false, lunch_cutoff is not empty and has passed, and status is not cancelled; collect the sys_ids BEFORE processing (the engine updates the event, which would otherwise mutate the cursor), then call lockMealHeadcount on each. Wrap in try/catch. Build and install. |
| 8 |
UI actions, field styles and navigator menu Interaction 8 of 11 |
|
What this prompt builds
|
| COPY AND PASTE THIS PROMPT — Step 8 of 11 |
|
Three things. 1. Five server-side UI Actions on the Registration table, scripts in src/server/ui-actions/*.server.js, all with roles [front_desk, event_manager] passed as the IMPORTED Role objects, showUpdate true, on both form and list: - "Check In" (primary, order 100) when status is confirmed or registered - "Check Out" (order 200) when status is checked_in - "Verify Photo ID" (order 300) when photo_id_verified is false and not cancelled - "Issue Badge" (order 400) when confirmed or checked_in — find the registration's generated badge, set it to issued, then RE-READ it and only report success if it is actually issued, because the Badge Issue Security Gate may have aborted - "Return Badge" (order 500) when checked_in or checked_out Note: role restriction is stored in the sys_ui_action_role m2m table, NOT a roles column on sys_ui_action — don't be confused if you inspect the record later. 2. Field styles (sys_ui_style via Record) on Registration highlighting attendee_type = executive_guest, lab_assignment_issue = true, and status = waitlisted. Check real contrast ratios: #F59E0B amber is only 2.15:1 on white and fails even for graphics — use #B45309 for amber text and keep the bright tone for dots/fills only. 3. A navigator ApplicationMenu "Event Visitors" with six role-scoped groups using SEPARATOR modules: My Guests (host), Front Desk, Catering, Facilities, Lab Administration, Event Manager View (event_manager only). Use LIST / FILTER / NEW modules. Fluent has NO report API, so for aggregate views use link_type DIRECT with URLs like x_snc_event_visito_meal_alloc_list.do?sysparm_query=statusINallocated,locked,served&sysparm_group_by=dietary_preference Useful filters: My Guests host=javascript:gs.getUserID(); today's arrivals using gs.beginningOfToday()/gs.endOfToday() ordered by arrival_priority then expected_arrival; badges status=issued; parking status=available; labs status=needs_reset; lab_participant=true^lab_assignment_issue=true. Build and install. |
| 9 |
Self-registration portal Interaction 9 of 11 |
|
What this prompt builds
|
| COPY AND PASTE THIS PROMPT — Step 9 of 11 |
|
Build a hybrid self-registration Service Portal. Service Portal (not a UI Page) is required because the public page must work for anonymous visitors — UI Pages need an authenticated session. Portal: url suffix "event", title "ServiceNow CEG Dev Meetup", Coral theme, logo set to a ServiceNow wordmark db_image sys_id (sp_portal.logo is dictionary type user_image but its VALUES are db_image sys_ids — there is no user_image table), logoAltText "ServiceNow", plus a mainMenu (SPMenu) with Home and My Bookings items pointing at the two pages. SPMenu items need the OOB menu widget sys_id and must reference the imported SPPage objects, not pageId strings. *** Do NOT draw a nav bar inside the widgets. The theme already renders the portal header; a widget nav produces two wordmarks and two avatars stacked. *** Pages: evm_register (PUBLIC) and evm_my_registration (authenticated). Public access needs sp_page.public = true AND sp_widget.public = true. Add to the engine a hardened intake, which is the ONLY public write path: - submitPublicRegistration(payload): validate event is open, cut-off not passed, email shape, field lengths; reject duplicates WITHOUT returning the existing registration number (that is an enumeration oracle); throttle to 3 live submissions per email per day and 20 per session identity per 5 minutes keyed on sys_created_by. FORCE attendee_type to customer_partner_guest and nda_accepted and photo_id_verified to false, and NEVER accept host or status from the payload. Capacity is deliberately NOT a gate — the status rule waitlists instead. - buildPublicLanding(): one call returning everything the page needs in TWO queries total (one over Event, one grouped aggregate over Registration). Per event return percentFull, a band (available / almost_full at >=50% / full / closed when past cut-off, closed outranking the others), registrationOpen, month and day parts, placeLabel, imageUrl, a stable gradient index hashed from the name, and initials. Return hero stats (openEvents, venues as distinct location+room, seatsLeft) and chip counts. Closed events must NOT count toward the hero stats. listOpenEvents() must keep its old contract by filtering closed events out. - findMyRegistrations() scoped to the caller's session email, plus a record ACL granting read where the registration email matches the session email (omit roles). Public widget: an event discovery page with a gradient hero (linear-gradient 100deg #7b2ff2 → #9333ea → #c026d3 → #e8458f) with a 28% dark scrim for contrast, a white stats card, a live status pill, five keyboard-operable filter chips with aria-pressed (All / Available / Almost Full / Full / Closed), and a 3/2/1 CSS Grid of cards with media strip, status badge, stacked date chip, time, title, venue, percent full, seats left and a role="progressbar" capacity bar. Choosing a card switches to a registration step. Full events keep an OPERABLE "join the waitlist" button because the backend genuinely waitlists; closed events get a DISABLED "Registration closed" button. *** Widget CSS/JS traps that will cost you a build or a broken page: *** - src/server/** is linted with no-restricted-globals: NEVER reference `window`. Inject Angular's $window service instead. - Do not declare ANY opacity below 1 in widget CSS. A nested partial opacity leaks onto the widget root and fades the whole page. Use colour and filter instead, and add a flat non-nested `.evm-portal { opacity: 1 !important; }` as the last rule. - Do not break out of the container with width:100vw and negative calc margins. The theme's navbar is fixed and the breakout drops the padding that clears it. - The CSS compiles as SCSS: bare custom properties inside a nested @media must be wrapped in `& { }`, and write slashes unspaced (16/9, 1/-1) so they are not read as division. - Scope every selector under one root class. Build, install, then verify the intake rejects a payload claiming executive_guest + nda_accepted + photo_id_verified + status checked_in, confirming it lands as a Visitor badge in Basement 2 with NDA false. |
| 10 |
Live organiser dashboard Interaction 10 of 11 |
|
What this prompt builds
|
| COPY AND PASTE THIS PROMPT — Step 10 of 11 |
|
Build a live operations dashboard for the Event Manager. Add buildDashboardSummary(eventId) to the engine returning camelCase sections: events (picker list), event, capacity (seatingCapacity, seatsTaken, seatsRemaining, utilisationPct, per-status counts), checkIn (expected, checkedIn, checkedOut, stillOnSite, progressPct), catering (locked, totalCovers, byDiet, bySeating), parking (byZone, totalSpots, totalAssigned), labs (total, available, assigned, inUse, needsReset, eligible, waiting), compliance (outstandingNda, outstandingId, missingHost, badgesIssued, badgesOutstanding, labIssues), and a derived attention array of { severity, message }. Add a Scripted REST API evm_dashboard with a GET "summary" resource backed by that method. It MUST check gs.hasRole for the event_manager role explicitly and return 403 with a generic body otherwise — server-side GlideRecord does not enforce ACLs. Add a React UI Page at x_snc_event_visito_dashboard.do that polls that endpoint every 20 seconds, with an event picker, pause/resume, a last-updated stamp, visibility-aware polling, and panels for attention, capacity, check-in, catering, parking, labs and compliance. Use @Servicenow/react-components and --now-* design tokens; pin exact dependency versions in package.json. Include the uxpcb cache-bust parameter on script tags. Add one navigator module "Live Event Dashboard" to the Event Manager View group, restricted to event_manager. Build, install, then run ui_diagnostics on /x_snc_event_visito_dashboard.do and confirm errors is empty and the summary endpoint returns 200. |
| 11 |
Sample data Interaction 11 of 11 |
|
What this prompt builds
|
| COPY AND PASTE THIS PROMPT — Step 11 of 11 |
|
Load realistic sample data using run_script (data, not metadata — do not put this in Fluent source). Insert registrations through the normal business rules so parking, badges, meals, lab assignment, counters and summary fields are all DERIVED. Location: ServiceNow Bengaluru. Seven demo users, each with one role and notification enabled: Meera Iyer (Event Manager), Rahul Nair and Sneha Kulkarni (hosts), Joseph D'Souza (front desk), Lakshmi Rao (catering), Imran Khan (facilities), Karthik Subramanian (lab admin). Parking: 25 spots — 6 Basement 1 Reserved (2 accessible), 15 Basement 2 Visitor (make 2 of them accessible, otherwise a visitor needing step-free access gets waitlisted because accessibility is a hard filter), 4 EV Charging. Events — "Build Agent Customer Workshop" (3 days out, Innovation Hall, capacity 30, hands-on lab, lunch cut-off the evening before) and five 2027 events in different months named after ServiceNow products: - Feb 18 ITSM Pro Workshop: Incident to Insight, Innovation Hall, cap 20, lab - Apr 15 Security Operations Threat Response Lab, Lab 2, cap 12, lab - Jun 10 HR Service Delivery Experience Design, Boardroom 4, cap 18, no lab - Sep 9 App Engine Studio Build Day, Innovation Hall, cap 24, lab - Nov 11 Now Assist and AI Agents Bootcamp, Auditorium, cap 40, lab Lab pools reserved per lab event (18 for the December workshop, ~8-12 each for the 2027 ones). In every pool include some deliberately ineligible instances: one with only 3 Build Agent interactions, one with Build Agent disabled, one needs_reset. Registrations: 15 for the December workshop including an Executive Guest customer CIO with a reserved spot and VIP badge, a Speaker with a Jain meal and an EV spot, eight Customer/Partner Guests from different companies with mixed diets and one needing accessible parking, three ServiceNow Employees with no parking, one cancelled whose spot is released, one waitlisted, one fully compliant guest checked in with a lab instance assigned, and one with the NDA not accepted. Then ~48 randomised registrations across the 2027 events so the fullness bands land at Almost Full, Full (with two auto-waitlisted), and Available. Keep parking demand low on the bulk registrations: Executive Guests and Speakers get a Basement 1 spot unconditionally, so creating many of them exhausts the zone and waitlists them instead of seating them. Finally set one 2027 event's registration_cutoff in the past so the portal's greyed-out Closed band is populated. |
| PART 2 — EXPLORE YOUR APPLICATION (NO ADDITIONAL INTERACTIONS REQUIRED) |
Your application is built. The four activities below let you see the most important capabilities in action — no Build Agent interaction needed.
|
Try this 1 Register as an anonymous visitor on the public portal |
|
|
|
Try this 2 Run the front desk flow with UI actions |
|
|
|
Try this 3 Watch the live organiser dashboard |
|
|
|
Try this 4 Test the lunch lock and waitlist promotion |
|
|
| TROUBLESHOOTING |
If something is not working
| What you see | What to do |
|---|---|
| Install fails after the ACL prompt | An ACL has roles: ['']. Ask Build Agent: 'Find any ACL with an empty role reference and remove the roles property instead.' |
| Table or event names rejected or truncated | The name plus the scope prefix is over 30 characters (tables) or 40 (events). Ask Build Agent to use the exact short names from the prompt. |
| Every update on a table is blocked | A business rule has abortAction: true. Ask: 'Remove abortAction from all BusinessRule definitions and use a conditional current.setAbortAction(true) in the script.' |
| Notification subject arrives blank | ${event} is used in the subject or body. Replace it with ${event_name} on Registration-based notifications. |
| Portal looks faded or shows two headers | A widget declares partial opacity or draws its own nav bar. Ask Build Agent to remove both, as described in Prompt 9. |
| Dashboard shows no data | Log in with the event_manager role — the API returns 403 to everyone else. Then run ui_diagnostics on /x_snc_event_visito_dashboard.do. |
| A visitor needing step-free access is waitlisted | Accessibility is a hard filter. Make sure Basement 2 Visitor has accessible spots — Prompt 11 creates two. |
| Something missing after a build step | Use one targeted interaction: "In Event Visitor Management, I am missing [describe]. Please add it." Do not re-submit the full prompt. |
| WHAT'S NEXT |
You have built a full-stack application with AI
Six tables, six roles with record and field ACLs, a single rules engine, seventeen business rules, four platform events and notifications, a scheduled job, five front-desk UI actions, a role-scoped navigator, a public self-registration portal and a live React dashboard — from eleven prompts and no hand-written code.
Office events are often run on spreadsheets, email threads and last-minute calls to catering and facilities. This application replaces that with a system where every registration drives consistent, auditable allocations — and because the deep-level prompts are a full specification, you can run them again on a new instance and get the same application.
|
Your application keeps working
|
| Resource | Where to find it |
|---|---|
| Build Agent documentation | servicenow.com/docs/r/application-development/build-agent.html |
| ServiceNow Workplace Service Delivery | https://www.servicenow.com/products/workplace-service-delivery.html |
| ServiceNow developer community | developer.servicenow.com |
| Talk to ServiceNow | Contact your ServiceNow account team or Solutions Consultant |
Reference: servicenow.com/docs/r/application-development/build-agent.html