Create an application using Build Agent
Build custom ServiceNow applications by describing your requirements in plain language to Build Agent. The AI agent generates and builds the application code automatically.
Before you begin
You can watch a short video on how to create an application in Build Agent.
[Omitted video] Description: Create an application in Build Agent
Install and enable Build Agent. For more information, see Install Build Agent.
If you prefer to access in the ServiceNow IDE instead of ServiceNow Studio, you must first create a workspace. For more information, see Create a workspace in the ServiceNow IDE.
Note: Build Agent requires ServiceNow SDK version 4.0 at a minimum. If you’re using an older version, Build Agent prompts you to upgrade to ServiceNow SDK 4.0.
For some prompting guidelines and ideas, see Example prompts.
Role required: admin
About this task
A ServiceNow app is a package that performs a specific task for a specified group of users. Think of an app as a container with a set of rules around who can access and edit it. For example, ServiceNow apps can include an API, a table, a workspace, a form, a flow, or any combination of those things.
Procedure
Navigate to All > App Development > ServiceNow Studio.
You can also open Build Agent in the ServiceNow IDE if you prefer a more code-centric experience.
The Build Agent chat panel opens by default in new ServiceNow Studio sessions. If the panel isn't open, select Open Build Agent from the status bar in the lower corner of your browser. You can also select the Sparkle icon
in the application banner.
If Build Agent isn't open, open it from the status bar in the corner of your browser.
- In the chat panel, describe the application that you want to create in plain language or select a prompt.
| Scenario | Actions |
|---|---|
| Describe the app you want to create | Describe the application that you want to create, and then select the Send icon Image omitted: ba-send-icon.png You can also attach images, such as architectural diagrams or UI wireframes, to provide context for prompts.. For example:\[Omitted image "build-agent-describe-app.png"\] Alt text: Describe the application in a chat panel |
| Select a predetermined prompt |
|
After reviewing your requirements, Build Agent requests confirmation to proceed with creating the application.
Instruct Build Agent to start developing the application by selecting Approve plan.
Or, if you're not satisfied with the plan, tell Build Agent what you change, and continue to prompt until you have a plan you like.
Implementation plan for Planner Tracker application
Build Agent can access ServiceNow knowledge sources and tools, which enable it to learn, analyze, and then create applications.
After creating the application, Build Agent builds the application.
**Note:** You can preview the code files before approval. But to see the actual metadata output, you must build and install the application on the instance.
If your application has a user interface, you can preview the app in a tab in ServiceNow Studio to inspect how it looks.
You can keep prompting to refine the app, its appearance, and functionality. For more information, see Edit an existing application using Build Agent.
Result
Review the application and its metadata in ServiceNow Studio using the change log. For more information, see Build Agent checkpoints and conversation change log. You can also review the application using the File Navigator in ServiceNow Studio. For more information, see Find an app or app file using the Navigator panel.
For information on deploying your application, see Deploying what you built with Build Agent.
For information on troubleshooting issues, see Issues and solutions in Build Agent.
After the application is built, Build Agent displays a success message. For example:
Build Agent success message
Build Agent displays the details of your app in the chat panel.
Planner Tracker application build summary
You can prompt Build Agent for details on how to access your new app.
Response with multiple methods to access the Planner Tracker app
If you want to view source code, open the ServiceNow IDE and select the File Explorer view from the Activity bar. The ServiceNow Fluent application code and other source code in the src directory appears.
File Explorer showing project structure with folders and configuration files
Parent Topic:Use Build Agent