workflow-creation
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
Prerequisites
More from happy-technologies-llc/happy-platform-skills
happy-platform-skills
Reusable development patterns and automation recipes for enterprise platforms - 180+ skills across 23 categories
17scheduled-jobs
Comprehensive guide to creating and managing ServiceNow scheduled jobs - run frequencies, conditional execution, performance optimization, error handling, and debugging
4flow-generation
Generate ServiceNow Flow Designer flows from natural language descriptions including triggers, actions, conditions, subflows, approval flows, notification flows, and data manipulation flows
4application-scope
Manage scoped application development including setting application context and update set alignment
4scripted-rest-apis
Comprehensive guide to creating, securing, and testing Scripted REST APIs in ServiceNow for custom integrations and external system connectivity
4automated-testing
Comprehensive Automated Test Framework (ATF) guide for creating, managing, and executing automated tests in ServiceNow
4