- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
45m ago
Workflow Automation CoE > Converting Legacy Workflows with Build Agent
Goal
In this article, you'll learn about the Export Workflow UI Action on Workflow Version records, now available out-of-the-box as of the Brazil release, and how to use that XML export as a starting point for Build Agent to plan your conversion to a modern Flow or Playbook.
Technology
Workflow Studio is our central, low-code automation builder that consolidates Flow Designer, Process Automation Designer, Decision Builder, and Action Designer into a single design environment. Build Agent, available in ServiceNow Studio, can read your live platform context, so it's a natural fit for planning what a legacy workflow should become.
|
Component |
Purpose |
|
The Workflow Editor is an interface for creating and modifying workflows by arranging and connecting activities to drive processes. |
|
|
Export Workflow UI Action |
Exports a Workflow Version to XML; available out-of-the-box on Brazil |
|
Use ServiceNow Studio to build, manage, and deploy custom, base system, or global applications and global metadata records from a single development environment. |
|
|
Create and develop applications in source code locally in Visual Studio Code Desktop and upload changes to an instance using the ServiceNow software development kit (SDK). |
|
|
Build Agent is an autonomous AI agent for creating and updating ServiceNow applications. You can also ask Build Agent general ServiceNow development questions. |
Instructions
Use Case
There's no native, 1:1 converter from legacy Workflow Editor to Flows; the two are built on fundamentally different architectures. What does work well: export the legacy workflow to XML and hand it to Build Agent, which can analyze the logic in context and help you plan, or directly generate, the equivalent Flow or Playbook. As of Brazil, getting that export is quick: once you have the right role, it's just a few clicks.
Steps
- Grant the workflow_admin role to the developer. The Export Workflow related link is only shown to users who pass the condition gs.hasRole('maint') || gs.getUser().hasAssignedRole('workflow_admin'). Because hasAssignedRole() checks for an explicitly assigned role, this applies even to admins. Log out and log back in for the new role assignment to take effect.
- Navigate to Workflow => Administration => Workflow Versions from the Application Navigator or use wf_workflow_version.list as a shortcut.
- Open the legacy Workflow Version record that you want to migrate.
- Find the Export Workflow related link. It sits alongside Show Workflow and Validate Workflow in the Related Links section of the form.
- Click Export Workflow and download the XML. This is your source material for the next step.
- Hand the XML to Build Agent. Prompt it, from ServiceNow Studio or your ServiceNow IDE, to analyze the legacy logic and propose a conversion plan. Because Build Agent has access to your whole platform, it can go a step further and generate the new Flow or Playbook directly.
Tip: Running an earlier release? The Export Workflow UI Action has existed on wf_workflow_version for a while; it's just a visibility condition standing between you and the same export.
Example Prompt for Build Agent
Use the prompt below as a starting point and adapt the [bracketed placeholders] to your environment. Build Agent analyzes the XML export, returns a plan along with any questions, and waits for your confirmation before it builds anything.
Prompt: Analyze, plan, and convert
|
I'm migrating a legacy ServiceNow Workflow Editor workflow to a modern Flow or Playbook in Workflow Studio. Attached is the XML export of the Workflow Version (exported via the Export Workflow UI Action on wf_workflow_version). |
Conclusion
In summary, while there's still no native, 1:1 path from legacy workflows to flows, in a world of LLMs and tools like Build agent, you don't need one to get started on a migration. Three takeaways:
- Architecture differences, not missing effort, are why a direct converter doesn't exist; legacy workflows and flows are built on fundamentally different models.
- As of Brazil, the Export Workflow UI Action is available out-of-the-box on Workflow Version records, no workaround required.
- Build Agent can take that XML export and run with it, analyzing the legacy logic to plan, or directly generate, the equivalent Flow or Playbook.
Tip: Build Agent is the default choice for this conversion because it has direct access to, and knowledge of, your platform. If you prefer another LLM, you can also do the same AI-assisted conversion from the Visual Studio Code Desktop application using the ServiceNow SDK.
I hope this was helpful! If you've tried an AI-assisted workflow migration yourself, drop your experience in the comments below.
