Welcome to AgenticBPC - created and maintained by Sascha Wildgrube.
Kudos to Olivier Gregoire for his contributions to lifting the AgenticBPC to the next level.
The Agentic Business Process Consultant AI Agent creates structured process descriptions based on conversations with business stakeholders. The process description can then serve as the foundation of a backlog or even direct automatic process implementations.
AgenticBPC is NOT an officially supported ServiceNow product.
AgenticBPC does NOT come with any kind of warranty. If you use it, you own it!
x_snc_devtools.InstallApp("x_snc_agenticbpc");To gather insights from process stakeholders, some setup is required. For each distinct business process, follow these steps:
Once all steps have been completed, users can use the link contained in the invitation to navigate to the business process form and start the interview.
The first step of the implementaton of a Business Process should be to create boilerplate Application Files according to an agreed standardized pattern. The AI-generated JSON object serves as the input for this boilerplate implementation.
The JSON object contains base data about the process, involved roles, the states through which the process flows and the allowed transitions between these states.
The function x_snc_devtools.BusinessProcessValidate() - as the name suggests - validates the given object and returns either true or false (or if bDetailed is set to true: a detailed response about what is missing or wrong).
The function x_snc_devtools.AppBuilderImplementBusinessProcess() implements the given business process in the given custom application. It creates the table (derived from task), state Choices, Roles, ACLs, Business Rules, UI Actions and other Application Files.
Use the following code example to start the implementation:
// The scope of the app to be created
var strScope = 'x_test_process';
// The name of the app to be created
var strAppName = 'Test Business Process';
// The number of the business process
var strBusinessProcess = 'BP-00001';
// Load the business process record
var grBusinessProcess = x_snc_agenticbpc.GetBusinessProcessRecord(strBusinessProcess);
if (x_snc_devtools.IsValidRecord(grBusinessProcess) == false)
{
gs.error('Business process record could not be loaded!');
}
else
{
var business_process = x_snc_devtools.ParseJson(grBusinessProcess.json);
if (x_snc_devtools.BusinessProcessValidate(business_process) == false)
{
gs.error('Business process is invalid!');
}
else
{
// Create the app
var strAppSysId = x_snc_devtools.AppCreate(strAppName,'scoped',strScope);
if (x_snc_devtools.IsValidSysId(strAppSysId) == false)
{
gs.error('Could not create app.');
}
else
{
// Implement the process
x_snc_devtools.AppBuilderImplementBusinessProcess(strScope,business_process);
}
}
}The function creates various hook points (Business Rules, UI Actions, etc.) which all relay to a process class derived from the BusinessProcessAPI class. This (derived) class is the core and heart of the business process implementation - one script to rule them all.
The derived class also contains the object that defines the business process itself - the implementation contains the definition it is based on. This pattern is just one out of many other possible (and fit-for-purpose) implementation patterns. Every organization is well-advised to defined their own standard if they see fit - and create their own version of x_snc_devtools.AppBuilderImplementBusinessProcess().
Build Agent (or any other AI development harness) could also be used to create the boilerplate implementation using elaborate skills and guardrails. Experiments show that results will still vary and will not produce a consistent implementation pattern. Starting with the scripted boilerplate implementation provides AI Development Agents a more robust guidance on how future changes should be added and integrated into the platform.
Controls if the AgenticBusinessProcessConsultant application is active.
Controls the verbosity of log output produced by the AgenticBusinessProcessConsultant application.
Users with the x_snc_agenticbpc.admin role have full access to all "Business Processes".
Users with the x_snc_agenticbpc.consultant role can create new Business Processes, edit existing Business Processes and start the agent.
A stakeholder knows something about a business process and is interviewed by the Agentic Business Process Consultant AI agent.
Users with the x_snc_agenticbpc.viewer role can see all Business Processes, but cannot edit them.
The table is not derived from any other table.
The table is not derived from any other table.
Send an invitation to the business process stakeholder.
Starts the interview and shows the Now Assist Panel.
Opens the Business Process viewer.
Provides client-callable functions to support the Agentic Business Process Consultant process.
|
Methods:
* StartInterview()
Retrieves information about the app's dependencies to other apps and required versions.
Gets a system property of this application.
This script installs AgenticBusinessProcessConsultant.
Sets all system properties to default values.
Sets a system property of this application.
Produces a log output in the application log using the DevTools Debug function.
Implements the extension point for DevTools.
|
Methods:
* initialize()
* GetParentRecord()
* GetLinkDirectory()
* GetFormatConfig()
* GetApplicationStatus()
* RenderDebugDump()
* GetInstancePipelineName()
* GetEncodedQueryToPreventUselessChecks()
* AppVersionBaselineOnFinish()
* Prompt()
* IsTechnicalUser()
The DevToolsGetLinkDirectory function is called by the DevTools extension point instance class and returns an extended (or modified) link directory object that serves as the basis for the DevTools Link page.
The DevToolsGetParentRecord function is called by the DevTools extension point instance class and returns a parent record for the given record if it can be determined.
Returns a GlideRecord object representing the given Business Process based on Sys ID, number or name.
Returns true if the application is active, otherwise false.
Produces a log output in the application log.
Produces an error log output in the application log.
Produces a warning log output in the application log.
Compatible Versions: 29.1.8,30.1.1
Running custom AI Agents requires the Prime Tier.
Compatible Versions: 1.148.0
Repository url: https://github.com/saschawildgrube/servicenow-devtools.git
No technical debt has been documented for this application.
Copyright 2026 by Sascha Wildgrube
Licensed under the Apache License, Version 2.0 (the "License")
You may not use AgenticBPC except in compliance with the License.
You may obtain a copy of the License at: https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
First baselined version