AgenticBPC 1.1.0

Welcome to AgenticBPC - created and maintained by Sascha Wildgrube.

Kudos to Olivier Gregoire for his contributions to lifting the AgenticBPC to the next level.

Overview

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.

Table of Contents

Features

  • Interviews business process stakeholders through the ServiceNow Otto panel using AI.
  • Auto-generates business process documentation.
  • Auto-generates business process visualization.
  • Documents business processes based on the input provided by stakeholders in a JSON object - which can then be used to auto-implement a process.
  • Sends invitations to stakeholders via email.

Disclaimer

AgenticBPC is NOT an officially supported ServiceNow product.

AgenticBPC does NOT come with any kind of warranty. If you use it, you own it!

System Requirements

Installation

  1. Install Store App App Engine - Prime License Tier.
  2. Create an account on GitHub - if not done already.
  3. Create a personal access token (classic with "repo" scope) for your GitHub account.
  4. Add credentials to access GitHub - use "Basic Auth".
  5. Perform all installation steps for the DevTools application documented here: https://www.wildgrube.com/servicenow-devtools/ 
  6. Fork the repository https://github.com/saschawildgrube/servicenow-agenticbpc.
  7. Go to Studio and import the AgenticBusinessProcessConsultant application from source control.
  8. Execute installation scripts.
    Run the following script as a background script in scope x_snc_agenticbpc:
  9. x_snc_devtools.InstallApp("x_snc_agenticbpc");
  10. Activate the ServiceNow Otto panel. Refer to the DevTools - Instance AI Status page for guidance.

Setup Interviews

To gather insights from process stakeholders, some setup is required. For each distinct business process, follow these steps:

  1. Assign the x_snc_agenticbpc.consultant to the user who owns the requirement intake process - ideally by assigning the role and the user(s) to a group. Do not assign roles directly to users.
  2. Identify the stakeholder users and assign the role x_snc_agenticbpc.stakeholder to these users - here again by adding the role and these identified users to a group.
  3. Create the Business Process record, add a name and a high-level description.
  4. For each stakeholder user, create a stakeholder record the associates the stakeholder user with the business process.
  5. Use the button "Invite Stakeholder" on the stakeholder form to either send an email directly or display the email body text to be sent to the stakeholder (depends on whether smtp is active on the instance and whether user has a configured email address).

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.

Implementing Business Processes

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.

Reference

Configuration Options

Roles

  • x_snc_agenticbpc.admin

    Users with the x_snc_agenticbpc.admin role have full access to all "Business Processes".

  • x_snc_agenticbpc.consultant

    Users with the x_snc_agenticbpc.consultant role can create new Business Processes, edit existing Business Processes and start the agent.

  • x_snc_agenticbpc.stakeholder

    A stakeholder knows something about a business process and is interviewed by the Agentic Business Process Consultant AI agent.

  • x_snc_agenticbpc.viewer

    Users with the x_snc_agenticbpc.viewer role can see all Business Processes, but cannot edit them.

Tables

UI Actions

Script Includes

  • AgenticBPCClientAPI

    Provides client-callable functions to support the Agentic Business Process Consultant process.
    |
    Methods:
    * StartInterview()

  • AppGetDependencies

    Retrieves information about the app's dependencies to other apps and required versions.

  • AppGetProperty

    Gets a system property of this application.

  • AppInstall

    This script installs AgenticBusinessProcessConsultant.

  • AppSetDefaults

    Sets all system properties to default values.

  • AppSetProperty

    Sets a system property of this application.

  • Debug

    Produces a log output in the application log using the DevTools Debug function.

  • DevTools

    Implements the extension point for DevTools.
    |
    Methods:
    * initialize()
    * GetParentRecord()
    * GetLinkDirectory()
    * GetFormatConfig()
    * GetApplicationStatus()
    * RenderDebugDump()
    * GetInstancePipelineName()
    * GetEncodedQueryToPreventUselessChecks()
    * AppVersionBaselineOnFinish()
    * Prompt()
    * IsTechnicalUser()

  • DevToolsGetLinkDirectory

    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.

  • DevToolsGetParentRecord

    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.

  • GetBusinessProcessRecord

    Returns a GlideRecord object representing the given Business Process based on Sys ID, number or name.

  • IsActive

    Returns true if the application is active, otherwise false.

  • Log

    Produces a log output in the application log.

  • LogError

    Produces an error log output in the application log.

  • LogWarning

    Produces a warning log output in the application log.

Dependencies

Technical Debt

No technical debt has been documented for this application.

License

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.

Release Notes

1.1.0 - 2026-11-26

  1. AgenticBPC is fully tested with Brazil.
  2. Zurich is no longer actively supported.
  3. DevTools 1.148.0 is now required.
  4. Added dependency to "App Engine - Prime" Store App.
  5. The process viewer now renders a state and a swimlane diagramme.
  6. When updating the business process details the AI Agent receives detailed feedback on validity and as advised to correct and retry.
  7. The Agent is now advised to list the primary role responsible for a state transition first - which leads to the state being associated with that primary role's swimlane.
  8. Added chapter "Setup Interviews" to the manual.
  9. Added chapter "Implementing Business Processes" to the manual.
  10. Update chapter "Installation" to include the Plugin installation and ServiceNow Otto panel activation.

1.0.0 - 2026-11-04

First baselined version