A custom spoke is a set of reusable actions for one third-party application. You can build one from a Postman collection, an OpenAPI specification, API documentation pasted into ServiceNow Otto, or by hand. Spoke Generator covers all four inside Workflow Studio, and each route ends with published actions that flows can call, and Postman, OpenAPI and Otto can save drafts.
Licences and plugins to confirm first
Install the Spoke Generator application, scope identifier sn_spoke_builder, from the ServiceNow Store. A custom spoke needs an Integration Hub subscription, and the IntegrationHub Starter Pack Installer plugin (com.glide.hub.integrations.starter) must be present, or the app can fail to install. Creating spokes from an OpenAPI specification, a Postman collection or with AI needs the Integration Hub Professional Pack Installer license (com.glide.hub.integrations.professional) in both production and sub-production. Some of these plugins are licensable features, so check licensing if you use them outside the spoke build.
Roles and what each one can do
| Role | Spokes tab | See actions | Add actions | Other rights |
|---|---|---|---|---|
| admin | Yes | Yes | Yes | Create spoke, import OpenAPI, create connection alias, publish, save drafts, read activity log |
| action_designer | Yes | Yes | Yes | Create custom actions in Action Designer |
| fd_read_actions | Yes | Yes | No | Read-only view of spokes |
| flow_operator or flow_designer | No | No | No | View flows and subflows |
Choosing a build route
Pick the route by the input you already hold. A Postman collection is the quickest start when your team keeps its API calls together. An OpenAPI specification is the richest input, because operations, parameters and schemas arrive as the provider wrote them. The Otto route suits a provider that publishes documentation pages but no specification file. Manual creation covers the rest, where you want to write each action yourself.
Building a spoke from a Postman collection
Open Workflow Studio, choose Create new, then Spoke. On the Spoke Info screen, choose a new scope or an existing one. For a new scope, select a logo and fill in the spoke name and description. For an existing scope, pick the application and the app scope name fills in automatically. Click Continue.
The builder then checks the Store for matching spokes. You can view and install a match, or choose the custom option to carry on. On the Build Info screen, select Postman collection and continue. Import the collection by URL or paste its JSON, then click Import.
Create the connection and credential alias next. Name it, keep or change the authentication template, and click Create alias and continue. The connection URL is filled from the collection, so confirm it points at the right base address. Enter the credential fields the template requests and click Submit. If the credentials are not to hand, choose Do it later.
Click Generate operations and the builder lists the operations in the collection. Use the search bar to narrow the list, select what you need, and publish. Save actions as draft if you want to review them first. Click Done to go to the spoke and check the publish status.
Building a spoke from an OpenAPI specification
The OpenAPI route follows the same pattern. On the Build Info screen, select OpenAPI Specification. Import from a URL, or paste the specification as JSON or YAML. The authentication template is suggested from the specification, and you can keep it or pick another that matches the API.
Actions built this way contain an OpenAPI step. Inputs and outputs are mapped automatically, and published actions appear under the Published tab of the spoke details page. Drafts stay under the Draft tab until published.
Size and operation limits
The default import limit is 10 MB. Raise it with the glide.rest.openapi.max_request_size property, up to a ceiling of 100 MB. The operation limit defaults to 500, and glide.rest.openapi.max_operation_limit sets it anywhere from 1 to 1000.
Constructs the OpenAPI step does not support
- Schema objects using oneOf, anyOf or additionalProperties
- Discriminator objects
- Info object fields for terms of service, contact and licence
- Example, Link and Callback objects
- Security scheme and security requirement objects
- Tag, external documentation and server objects
- Specification extensions and recursive references
Request bodies must use a JSON media type. When a schema declares additionalProperties or has no properties, the output becomes a string-type object rather than a structured one, so check the generated output before building flows on it.
Generating actions with ServiceNow Otto
The Otto route turns a documentation snippet into an action and needs the ServiceNow Otto for Creator application (sn_now_creator) from the Store, plus the matching subscription. Supported versions start at Zurich, with Spoke Generator v4.1.0 and Workflow Studio v28.0, and later releases carry the feature forward.
Turn the skill on from AI Admin Hub. Open Overview, select the AI Skills tab, pick Creator, and click Turn on in the Spoke Generation modal. Check the skill list first, since the skill can already be on for appropriate roles.
In Workflow Studio, choose New, then Spoke, and pick a scope as before. On the Build Info screen choose With AI. Paste the documentation for one action into AI Context. The procedure asks for one action at a time. Click Generate preview to see the action’s properties, inputs, outputs and steps. Missing fields produce an error message. Edit the text and click Regenerate preview until the preview matches the provider’s documentation.
Create a connection and credential alias next, choosing an authentication template that fits the third-party application and entering the base URL. Select the action category. The category must exist beforehand in the Action Category table (sys_hub_category). Publish once all fields are complete, or save the action as a draft and finish it from the Draft tab.
Treat the output as a draft for human review. The application can produce inaccurate or incomplete results, and extra care is needed where the output feeds healthcare, finance, legal, employment, security or infrastructure decisions. Input data moves to a central ServiceNow environment, which may sit in another region and may involve a third-party cloud provider. Customers can opt out of future data collection. Some Now Assist and AI features are not offered in FedRAMP, NSC DOD IL5, Australia IRAP-protected data centres, self-hosted instances or other restricted environments, so confirm availability for your instance before you plan an Otto build.
Naming the scope
A spoke in a new scope gets an app scope name shaped x_, company code, spoke name, spoke. The default company code is snc. To change it, set the glide.appcreator.company.code property before you create the spoke.
Building actions by hand and adding more later
For a manual build, create the spoke from the General Info screen with a logo, a name and a description, then choose Manually on the Build Info screen. On the spoke details page, click New action. You can choose From OpenAPI spec, which follows the import steps above, or Manually, which opens the Action Properties screen. Manual actions are finished in Action Designer.
To add actions to an existing spoke, open the spoke’s details page and click New action. The OpenAPI and manual options are the same.
Publishing, drafts and testing
Publishing activates an action for flows and subflows and stores its steps, variables and sequence as a snapshot, so later edits leave the published version unchanged. Keep work in progress as drafts.
Store spoke actions are typically read-only, but you can copy one and customise the copy. Custom actions use the same configuration each time a flow adds them, so set the values once and reuse the action.
Test after adding inputs and steps. Each action has an Action Status data pill with a code and a message. The code comes from the first matching error condition or the last step that ran, and a custom error condition can return your own code and message. Test on a non-production instance with demonstration data, because testing can change records.
The More actions menu copies an action into another application you name, and it toggles options such as Show inline script and Callable by Client API. It can also generate a code snippet.
Using the spoke in flows and subflows
A flow is a trigger, a sequence of actions and flow logic. A spoke is a scoped application holding actions and subflows, and its published actions can be used to create flows and subflows. A subflow has no trigger and runs when a flow, another subflow or a script calls it. Assigning two values to one subflow output without a condition is a trap, because the last value defined reaches the parent flow. Use a separate condition for each branch.
Checking the spoke activity log
Open the spoke activity log from the spoke details page and click the run you want. Each operation shows one of four statuses: new, processing, success or error. A sensible first pass on an error is to check the licences and the connection alias, then compare the specification against the unsupported list above.
Frequently asked questions
Which licence do I need to import a Postman collection or an OpenAPI specification?
The Integration Hub Professional Pack Installer license (com.glide.hub.integrations.professional) must be entitled in production and sub-production. The IntegrationHub Starter Pack Installer plugin must also be installed.
How large an OpenAPI file can I import?
The default limit is 10 MB. The glide.rest.openapi.max_request_size property raises it to a ceiling of 100 MB.
Can I paste documentation for several actions into Otto at once?
The procedure asks for one action at a time. Generate the preview, review it, then repeat for the next action.
What happens if I publish an action with missing fields?
Publishing is blocked while fields are missing. Save the action as a draft, complete the fields, and publish from the Draft tab.