workflow-creation
Installation
SKILL.md
Programmatic Workflow Creation
Overview
This skill enables you to create complete ServiceNow workflows entirely via API/MCP without using the visual Workflow Editor. This is essential for:
- Automation pipelines - Create workflows as part of CI/CD deployments
- Templated solutions - Generate standardized workflows from templates
- Mass creation - Build multiple similar workflows programmatically
- Version control - Store workflow definitions as code in Git
- Environment migration - Recreate workflows across instances
Key Discovery: Activities store their logic in the input field as JavaScript code. This enables full programmatic workflow creation by:
- Creating the workflow structure (wf_workflow, wf_workflow_version)
- Creating activities with embedded scripts (wf_activity)
- Linking activities with transitions (wf_transition, wf_condition)
- Publishing the workflow version