Earl Duque
Administrator
Administrator

Hey ServiceNow Developers!

 

Big news today! The teams behind the PDI program and Build Agent just rolled out two updates that make it easier than ever to try conversational coding (aka vibe coding) with the new Build Agent.

 

First, there’s now a full vibe coding experience right on developer.servicenow.com. You can experiment with Build Agent and spin up custom apps directly on your Personal Developer Instance (PDI).

 

You can also grab the Build Agent Trial app from the Store, which gives you up to 25 free prompts to explore and build right on your instance.

 

Both updates are designed to help you jump in faster. no setup pain, just build and go.

 

Usage is limited

 

On PDIs you get 10 prompts per month so we recommend that you be intentional on how you want to use it. We suggest you try it at least in these two ways:

 

buildagent.png

 

Basically, we want you to try it once with a super descriptive prompt, and then try it again with a YOLO prompt. Trying it intentionally both these ways will give you a good understanding of Build Agent's capabilities.

 

Try it this way once: Be descriptive

 

Be as descriptive as you can be so that the Build Agent gets as close to what you were hoping for as possible. Here's a template prompt you can use:

 

You are building the following application. If any detail is missing, choose sensible defaults and proceed, then document what you assumed.
[Replace the bracketed content below. If a section does not apply, delete it.]

## Goal
- Primary objective: [clear, outcome-focused goal in one sentence]
- Success criteria: [3 to 6 measurable checks the app must pass on day one]
- Non-goals: [things explicitly out of scope]

## Audience
- Users: [roles or job titles, for example “intake submitters”, “approvers”, “operations analysts”]
- Skill level: [novice, intermediate, expert]
- Usage pattern: [daily, weekly, ad-hoc, mobile in field, call-center desktop, etc.]

## App Identity
- App name: [e.g., “Equipment Checkout”]
- Data classification: [internal, confidential, restricted]
- Themeing: [Default or pick a mood/vibe that you are going for]

## What the App Must Do
- Core capabilities (list 5 to 10 plain language statements):
  1. [e.g., “Allow staff to request equipment with desired pickup date.”]
  2. [...]
- SLAs or service targets: [e.g., “approval within 2 business days”, “fulfillment within 5 business days”]
- Reporting needs: [e.g., aging by state, throughput by month, backlog by assignee]

## Data Model (Tables, fields, relationships)
[This is optional, you can also let Build Agent guess entirely!]
Create the following tables. Include dictionary attributes, reference integrity, choice lists, indexes, and demo data. 
Unless otherwise stated, add standard fields (Number, State, Assigned to, Short description, Description, Opened by, Opened, Updated, Active).

[TABLE 1]
- Table label and name: [Label], [x_[company]_[table]]
- Extends: [task or none]
- Ownership: [who creates and updates records]
- Fields:
  - [field_name] (type: [string|integer|reference to [table]|choice|date|datetime|boolean|currency|URL|email|attachment], required: [yes/no], max length: [n], default: [value], notes: [validation or regex])
  - [repeat per field]
- Choices (if any): 
  - [field_name]: [value=Label, value=Label, ...]
- Business rules on this table:
  - [rule name]: [when to run, what it enforces]
- Indexes and uniqueness:
  - [field or composite], unique: [yes/no]

[TABLE 2]
- Table label and name: [...]
- Extends: [...]
- Fields: [...]
- Relationships:
  - One-to-many or many-to-many with [table], store in [m2m table if needed], cascade delete: [yes/no]
- Sample records: [...]
[Repeat for each table]

## Automation (What scripts/business rules Build Agent should make for you)
[Describe what should happen with records when submitted]

## User Experience
[Describe how the user should interact with your app]

## Security and Roles
- Roles: 
- ACLs:

## Output Required From You (the build agent)
Provide at the end:
1) A build log of everything created (names and paths) 
2) A quick start checklist (how each role uses the app) 
3) Any assumptions you made 

## Constraints and Defaults
- [Things like, I prefer that you do X over Y when possible]
- If a choice must be made and nothing is specified, choose the simplest workable option and document it

 

Try it this way once too: Super-simple prompt

 

 

Share your experience!

 

Let us know how it goes!

25 Comments
Ihor Kochetkov
Tera Contributor

I had to request this app from Store for my dev isntance, before it become available in Plugins list.

gjz
Mega Sage

@Earl Duque 

How do I get this installed? How do I get started?  I'm on the latest version and I don't have Build Agent, nor can I get it installed as a plugin.  Can you provide specific instructions, please?

Dr Atul G- LNG
Tera Patron
Tera Patron
gjz
Mega Sage

@Dr Atul G- LNG 

 

Thank you so much for the video, it was really good and gave me the information I needed.

Yukiko_snow
Tera Explorer

Persistent Build Agent Error in ServiceNow PDI: "Diagnostic errors found in source files

 

Dear ServiceNow Experts, I hope this message finds you well.

I am relatively new to ServiceNow and have recently started working with a Personal Developer Instance (PDI).

I apologize in advance if this issue is covered in documentation that I might have overlooked due to my limited experience.

I've been using the Build Agent in my PDI, but I'm repeatedly encountering a persistent build error.

The exact error message I receive is:

``` ×Build Error executing the build command for app f9ce8cce83113210e3f4b8c6feaad31e: DiagnosticError: Diagnostic errors found in source files, fix errors and re-run build ```

 

_1-1763609833907.png

The Build Agent has attempted to recover multiple times in response to this error, but the issue remains unresolved.

My primary question is: Is there any specific pre-configuration or setup I should have performed in my PDI for the Build Agent that might be causing this?

Or, given the "Diagnostic errors found in source files" message, does this typically point to issues within the application's code itself (e.g., syntax errors, missing dependencies, or other development-related errors) rather than a PDI configuration problem?

Any guidance on how to troubleshoot and resolve this would be greatly appreciated.

Please feel free to point me to any specific documentation I should review.

Thank you for your time and assistance.