Add your Service Callouts to a Corticon.js project
- Last Updated: October 26, 2026
- 2 minute read
- Corticon.js
- Version 2.4
- Documentation
Corticon.js Service Callout functions must be defined in a JavaScript file with the extension.js file. The naming convention of each .js file must end in ServiceCallout.js to be recognized in Corticon.js Studio as a service callout definition.
The one or more service callout files are added to the Corticon.js Project's Preferences using the Corticon Extensions wizard, as shown:
![]()
Dependent JavaScript files used by the service callouts must be added for the project to compile. For example, if you have a service callout that has a dependency on a third-party JavaScript library, the dependent JS library needs to be added to the Corticon extensions as well so that the service callouts and the third-party dependent libraries are compiled, and are included in the JavaScript bundle.
Add Service Callout Nodes to a project Ruleflow
After the service callout files have been added to the Corticon Extensions, you can use the service callouts in the project.
-
In a Ruleflow editor where the Rulesheet has been dragged and dropped, double-click Service Call-out in the Palette:

-
In the Object that appears on the canvas, name it. Here it is
myFirstService Callout.
-
Create a connection to the Rulesheet.
Define the service callout
Select the Service Call-out on the canvas. In the Properties panel's Service Call-out section, click the dropdown menu for Service Name:
![]()
Service callout runtime properties are where you select the service callout function you want. A service callout definition can include multiple functions. The drop-down for the service callout name populates with the functions defined in your JS service callout file. The selected service callout is validated, and added to the JS bundle.