Build Agent workflow
The Build Agent workflow automates building applications, testing, and deploying update sets on the ServiceNow AI Platform. Build Agent streamlines development by handling code compilation, quality checks, and deployment steps without manual intervention.
A general workflow for using Build Agent in either ServiceNow Studio or the ServiceNow IDE is the following:
- Make sure that everything you need is properly configured in the settings, such as supported MCP server connections. For more information, see Build Agent configuration.
- Open ServiceNow Studio or the ServiceNow IDE to access the Build Agent panel in the workspace.
- Describe what to create or change in natural language.
- Let Build Agent parse requirements and propose the application and files to create or modify.
- Build Agent edits code or metadata or scaffolds a new application.
- Review proposed edits, diffs, and summaries, and approve or adjust before applying changes. Review checkpoints and manual edit update sets. In ServiceNow Studio, view generated app details from the Apps tab, and inspect the source code from the Explorer tab.
- Iterate until the desired metadata changes are complete. For more information, see Supported metadata in Build Agent.
- Prompt Build Agent to create and run Automated Test Framework (ATF) tests to verify that the tests execute as expected. Depending on your configuration, Build Agent may ask you if you want to run ATF tests. If there are failures, auto troubleshooting triages the tests and produces a regression test suite that you can use to monitor app health.
- Instruct Build Agent to build the application; verify results in the File Navigator or Metadata Explorer.
- Deploy the application. If you're using source control, you can push to Git. For more information, see Deploying what you built with Build Agent.