Getting started with Build Agent
On this page
Getting started with Build Agent
Use the following guidelines to help you transition from using App Engine Studio to Build Agent.
From wizard completion to intent-driven prompts
App Engine Studio (AES) development is a series of guided wizard steps that result in building an application and app files. Each step corresponds to a discrete decision, such as adding a table, adding a field, or configuring a form. The wizard interface constrains what you can do and sequences the choices for you.
With Build Agent, development occurs via a conversational interface. In either ServiceNow Studio or the ServiceNow IDE, you describe the application that you want, who it’s for, and what it should contain. From that description, Build Agent produces the artifact. Unlike AES, the Build Agent interface doesn’t constrain your choices. Instead, Build Agent interprets your intent and generates output accordingly.
This process means learning how to write prompts that are clear and effective. Prompts should lead with the purpose of the application and the key workflows it needs to support, rather than describing a request for a specific artifact. For guidance on effective prompting, see General guidelines for Build Agent and Example prompts.
Owning the review step
With AES, the constraints imposed by the wizard interface meant that you were limited in what you could create accidentally. For example, you were unlikely to create apps or files that affect entire instance performance by accident.
However, with Build Agent, you have access to create the full set of artifacts available on the ServiceNow AI Platform. With this greater range of creation abilities, the necessity of reviewing your development output becomes of even greater importance and impact to your instance performance and security. So you must shift to owning the review step when migrating applications to Build Agent.
Before accepting any Build Agent output, read the generated code and description. Treat the output as a strong first draft that might not contain specific business rules, data volumes, or performance requirements for your organization.
The core workflow of prompting, reviewing, and accepting or rejecting is consistent across every Build Agent session. For more information, see Build Agent workflow.
Iteration over prompt perfection
When creating apps and files in AES, modifying selections that you made during the creation process could sometimes prove to be difficult or require restarting the process entirely. But with Build Agent, the agent supports iteration by default. From prompt to prompt, Build Agent can process corrections and adjust the output accordingly. You can also create checkpoints with Build Agent, which help you distinguish one artifact version from another across sessions. For more information, see Checkpoints and conversation change log.
Prioritize iteration over a perfectly articulated prompt when developing with Build Agent. Attempting to write a single, catch-all prompt that describes an entire application and all of its artifacts rarely produces better results than the iterative approach. If needed, you can also revert your changes with Build Agent. For more information, see Revert app changes with Build Agent.
Session continuity
Development in AES is stateless, meaning that each app a file you create is discrete and independent of the existence of other files. AES also doesn’t store data about your work from one session to the next.
Build Agent accumulates information about your data model, business rules, and design decisions during each session. Sessions are then stored, enabling you to choose between rejoining an earlier session or starting a new one.
Learning how to structure your work between and across sessions is helpful when developing with Build Agent. Determine whether your work would benefit from the accumulated context of an existing session. For less complex builds or single artifact extensions, you can start a new session. For more information about sessions and limitations, see Build Agent limitations.
Build Agent as a development partner
AES is a development tool. When you’re ready to build an application or file, you enter the AES development environment and create or modify app files.
With Build Agent, you can use the chat panel as both a development tool and a design/planning partner. For example, you can use Build Agent to:
-
Brainstorm application architecture before writing any code
-
Analyze an existing AES application and identify where scripting or additional artifacts would improve it
-
Generate README documentation for an application
-
Add comments to existing scripts
-
Refine requirements before committing to a data model
-
Identify scope conflicts in applications that originated globally
These activities don’t produce deployable artifacts on their own, but they can help to reduce the uncertainty that leads to rework. Using Build Agent to think through a build before prompting can result in higher quality output.
Related topics
Keep exploring.
Find another answer, or bring this documentation into your own tools.