# Adding Workflows

Workflows are added using a visual builder. The visual builder allows the flow of Tasks within the Workflow, as well as any conditional branches, to be more easily understood. For Provisioning Workflows, the flow of Tasks within each phase of the Instance lifecycle is also represented visually. Workflows can be built from pre-existing Tasks created within the Tasks section of the UI or new Tasks can be drafted from directly within the Workflow builder.

Adding Operational Workflows

1. Navigate to Library > Automation > Workflows
2. Click + ADD
3. Select Operational Workflows. The NEW OPERATIONAL WORKFLOW modal appear. The majority of the window is reserved for the canvas on which the Workflow will be laid out visually
4. In the right-hand column of the window, consider configuring the following:

   1. **NAME:** A name for the Workflow in Morpheus UI
   2. **LABELS:** A comma-separated list of Labels (either new or pre-existing) that can be used to group or organize items
   3. **PLATFORM:** If configured, this Workflow will be filtered in or filtered out of certain contexts depending on the platform of the workload
   4. **TASKS:** Pre-existing Tasks can be added to the Workflow using this typeahead field
   5. **INPUTS:** Pre-existing Inputs can be supplied to the Workflow and, depending on the type and configuration, would be presented to the user for selection at execution time
5. When finished, click Save & Close

TIP

Users can also add to the Workflow from within the canvas (as opposed to within the config fields as described above. Click on the plus (+) buttons within the canvas and select to add a new Task, add a conditional Workflow, or add a Nested Workflow. Information about various Task types, conditional Workflows, or Nested Workflows are contained elsewhere in the Automation (Task and Workflow) documentation.

![Adding an operational workflow](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-6DCA7D4B-1EDE-40F5-B699-12BCAB9803E5-high.png)

Adding Provisioning Workflows

1. Navigate to Library > Automation > Workflows
2. Click + ADD
3. Select Provisioning Workflows. The NEW PROVISIONAL WORKFLOW modal appear. The majority of the window is reserved for the canvas on which the Workflow will be laid out visually
4. In the right-hand column of the window, consider configuring the following:

   1. **NAME:** A name for the Workflow in Morpheus UI
   2. **TASKS:** Pre-existing Tasks can be added to the Workflow using typeahead fields underneath each provisioning phase section. More information on each provisioning phase can be found [here](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/render?page=GUID-47CD21B9-0818-4B47-9CFA-27C19F3E8B50.html)
5. When finished, click Save & Close

TIP

Users can also add to the Workflow from within the canvas (as opposed to within the config fields as described above. Click on the plus (+) buttons within the canvas and select to add a new Task, add a conditional Workflow, or add a Nested Workflow. Information about various Task types, conditional Workflows, or Nested Workflows are contained elsewhere in the Automation (Task and Workflow) documentation.

![Adding a provisioning workflow](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-E95BAD4B-99A0-44A7-BDF1-42C5C7A5DED6-high.png)
