# Workflow builder: How to set up a workflow

## Workflow Builder&#x20;

{% hint style="info" %}
Remember, the [Core](https://docs.rewst.help/~/revisions/VmxzEdeNWvX54TqYxxOB/documentation/automations/actions-in-rewst/core-actions) actions accordion menu contains your base actions that apply for all integrations. The [Rewst](https://docs.rewst.help/~/revisions/VmxzEdeNWvX54TqYxxOB/documentation/automations/actions-in-rewst/rewst-actions) actions accordion holds actions form the foundation of your interaction with the platform. The [workflows](https://docs.rewst.help/~/revisions/VmxzEdeNWvX54TqYxxOB/documentation/automations/actions-in-rewst/workflows-actions) actions accordion contains any existing workflows in the workflow list for the related child organization. The other accordions contain actions that apply to that particular brand of integration.

Once an action has been dragged onto the canvas, we refer to that dragged action as a *task*.
{% endhint %}

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2Fxegua08OdxD9oI7m9bPu%2Fworkflow%20canvas.png?alt=media&#x26;token=97803477-aecf-4722-98ce-df150b665f8d" alt=""><figcaption><p>A blank workflow builder canvas, as seen for a freshly created workflow</p></figcaption></figure>

## The workflow settings toolbar

At the top of the workflow builder, you'll find several settings buttons.

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FffAp1B1uulmF2tkXnRzH%2FScreenshot%202025-03-05%20at%202.38.03%E2%80%AFPM.png?alt=media&#x26;token=50e83c05-e100-4c9a-99e5-bf766a225a32" alt=""><figcaption></figcaption></figure>

**Edit Workflow Title** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2F3AUKoUcQjp95cLRPf0oE%2FScreenshot%202025-03-05%20at%202.39.11%E2%80%AFPM.png?alt=media&#x26;token=4c947102-3efd-4d7b-9d83-150b61ad34cd" alt="" data-size="line">**:** Click to open up a dialogue where you can change the name of your workflow.

**View results for workflow** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2F2NztvzjcpD3roWbysA9X%2FScreenshot%202025-03-05%20at%202.40.07%E2%80%AFPM.png?alt=media&#x26;token=156bac83-ae71-4203-9635-a06b8e20a867" alt="" data-size="line">: This opens up a new tab in your browser with the entire recorded execution history of that workflow.

**History** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FOrqB4ZkPDWaUe7Zgul2v%2FScreenshot%202025-03-05%20at%202.40.33%E2%80%AFPM.png?alt=media&#x26;token=d50fc371-4016-4cf7-8efd-fd7a840eb909" alt="" data-size="line">: Click to open a menu on the right side of your screen displaying the record of when the workflow was created and edited. You also have the option to revert back to a previous version of your workflow, or view previous versions to compare changes.

**Notes**  <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2F83XVqyBLCMAJ37JSN5uq%2FScreenshot%202025-03-05%20at%202.41.06%E2%80%AFPM.png?alt=media&#x26;token=160f7ccd-53ba-4065-b074-c7c0556055de" alt="" data-size="line">: Click to open the **Notes** menu, where you can view a record of all notes made on the workflow, and view instructions for how to add new notes. For more information on notes, see the [#add-edit-or-delete-workflow-notes](#add-edit-or-delete-workflow-notes "mention") section of this document.

**Execution History** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FybpcqrejnfqUCxW33Rji%2FScreenshot%202025-03-05%20at%202.41.52%E2%80%AFPM.png?alt=media&#x26;token=97617057-64cc-4c11-b9e2-2461869e535d" alt="" data-size="line">: This reveals the same information as History, but provides an easy way to view the data without leaving your workflow builder.

**Data Aliases** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FvCsFhy5ndjqUCcXpZzPl%2FScreenshot%202025-03-05%20at%202.42.21%E2%80%AFPM.png?alt=media&#x26;token=03a8e550-4639-43e7-a4bc-4b4a5d10021b" alt="" data-size="line">: Click to view a list of all set [data aliases](https://docs.rewst.help/~/revisions/VmxzEdeNWvX54TqYxxOB/documentation/automations/workflows/data-aliases). Click on the data alias to take you directly to that action.

**Add Trigger** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FO2e5Yx8AMNDynD79mf9k%2FScreenshot%202025-03-05%20at%202.42.56%E2%80%AFPM.png?alt=media&#x26;token=308b2b67-7397-434c-a729-d4b9ec8cafb1" alt="" data-size="line">: Click to open up the **Add Trigger** form, where you can set up your [trigger](https://docs.rewst.help/~/revisions/VmxzEdeNWvX54TqYxxOB/documentation/automations/intro-to-triggers)'s configuration, parameters, criteria, and activated organizations.

**Configure Workflow Settings** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FFmbUDMOjKm1YPQ8IHKSo%2FScreenshot%202025-03-05%20at%202.43.27%E2%80%AFPM.png?alt=media&#x26;token=6755cbc5-ec03-4e44-b3a0-0a737d6b5a54" alt="" data-size="line">: Click to open the menu that contains the settings for workflow type, workflow timeout, time saved, and variable, [input, and output configuration](https://docs.rewst.help/~/revisions/VmxzEdeNWvX54TqYxxOB/documentation/automations/workflows/data-input-and-output-input-variables-and-context-variables).

**Workflow Completion Handlers** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FSqL4ezsbMCVBQdIftygw%2FScreenshot%202025-03-05%20at%202.43.57%E2%80%AFPM.png?alt=media&#x26;token=052ca111-f221-4684-9516-2a16113083e4" alt="" data-size="line">: Click to open a submenu where you can set [completion handlers](https://docs.rewst.help/documentation/workflows/completion-handlers). Click the button a second time to collapse the menu.

**Workflow Options** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FuFj4sFImbYKAl10y8WBX%2FScreenshot%202025-03-05%20at%202.44.23%E2%80%AFPM.png?alt=media&#x26;token=b0a417f3-06bc-49e9-a36d-d78a2425d48f" alt="" data-size="line">: Click to open a submenu where you can export, clone, or delete your workflow, as well as edit the workflow's attributes.&#x20;

**Display Validation Errors** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FyBxApxUk4tHrLLFnW48t%2FScreenshot%202025-03-05%20at%202.44.56%E2%80%AFPM.png?alt=media&#x26;token=69478e32-cc42-4b86-aef4-5364725a5aca" alt="" data-size="line">: By default, this is set to off. When toggled on, Rewst will provide an error on required fields that aren't filled out, and add a message about the field being required beneath the field in red text. The text will be invisible until the user clicks on the field and then click out of it without entering a value.

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FkL4Hs78VRD83B1egSUqV%2Fimage.png?alt=media&#x26;token=1acc70b4-fd83-43d8-8c2f-8197c023d8ce" alt=""><figcaption><p>An example of the message, when the setting is toggled on</p></figcaption></figure>

**Test** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2F8wl6u0MKVZ7lnNOsFn0r%2FScreenshot%202025-03-05%20at%202.45.18%E2%80%AFPM.png?alt=media&#x26;token=bad40c36-7266-4250-be2d-1561e726cb0d" alt="" data-size="line">: Click to run a test of your workflow as it appears on your workflow builder canvas, and view the results of that test. Note that this also publishes and saves the workflow.

**Publish** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2F7Pr3yDZL9ddEBYPxXIiv%2FScreenshot%202025-03-05%20at%202.45.49%E2%80%AFPM.png?alt=media&#x26;token=9c6fe463-3679-4d0c-8c48-f965ef5e9334" alt="" data-size="line">: Click to publish changes on your workflow without first running a test, which will push the updated version live for use. This also offers a dual screen code viewer, to compare your old workflow to your new one.

## Build a workflow

### Set up the trigger

{% hint style="success" %}
Recall that every workflow is kicked off by a trigger. Which trigger you choose will depend on the goals of your workflow. There's no right or wrong order to build your workflow as long as it contains all the correct parts at the time of publication. You could start with adding actions to your canvas first, then set up your trigger.

If your trigger is form, you'll need to create and set up that form first before pulling it into your workflow.
{% endhint %}

1. Click <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FDJ7HAeRQhWGjhmuUp7lT%2FScreenshot%202025-03-05%20at%202.42.56%E2%80%AFPM.png?alt=media&#x26;token=ab7ebf0c-eca0-43f7-9599-c9f1017b331d" alt="" data-size="line">to add a new trigger.
2. Name your trigger with something simple but descriptive.
3. Toggle **Enabled** to on.
4. Search for your desired trigger in the **Trigger Type** drop down menu. Depending on your trigger, new **Trigger Parameters** will appear as a new section in the setup menu with additional selections to be made to set parameters for the trigger. For example, if your trigger is a [form](https://docs.rewst.help/documentation/forms), you would be asked to select the name of an existing form to use as the trigger.
5. If needed, add an [integration override](https://docs.rewst.help/~/revisions/VmxzEdeNWvX54TqYxxOB/documentation/intro-to-triggers#create-a-trigger).
6. Set your trigger criteria, if required for your workflow.
7. Think about which organizations you want the trigger to run for.
   1. **Selected Organization (Org Name)** will be toggled on by default. Toggle to off if desired.
   2. If you want the automation to work for your main org as well as all child organizations, toggle **All current and future managed organizations** to on.&#x20;
   3. If you want the automation to apply only for certain organizations, select them manually in the **Organizations** selector field.
8. Click **Submit** to save the trigger.

{% hint style="info" %}
A workflow can be called by multiple forms through the use of triggers. All that is required is to open the workflow and create a new trigger with **Core - Form Submission** selected for the Trigger Type.
{% endhint %}

### Create the workflow

1. Click **Create**.&#x20;
2. Give your workflow a **Name**, and add any tags you would like via the **Tags** drop-down selector.
3. Click **Submit**. This will launch the workflow builder.

### Drag the action

1. Search for your desired action in the left side menu.&#x20;
2. Click on it, drag it, and drop it onto the canvas.
3. Repeat this process to add all needed actions to your workflow.

### Configure tasks

{% hint style="info" %}
Remember, once an action is placed on the canvas, we then call it a task.
{% endhint %}

1. Click on the placed task, which will open a configuration dialog featuring two sections:
   1. A set of basic details fields at the top:
      1. **Name**: A user-editable field for the task's identifier.&#x20;
      2. **Reference**: The integration pack and task description.&#x20;
      3. **Output**: Specifies where the task's output gets stored in the task logs.&#x20;
      4. **Task ID**: The unique ID for referencing this task.&#x20;
      5. **Description**: A user-fillable text box for additional task information.&#x20;
      6. **Publish Result As**: A friendly name you assign for the task's results that you can use as an a context variable for calling it's content in future tasks.
   2. Four distinct tabs beneath the basic details:&#x20;
      1. **Parameters**: Unique to each task, this tab houses options for defining the task's behavior during execution, including settings for endpoints, filters, conditions, and query parameters.
         1. Note the **Redact on Hover** setting for inputs that are set to **Password**. This can be toggled on or off via the ![](https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FxORbglM4U1ULUhWcKM4y%2FScreenshot%202025-03-25%20at%204.55.28%E2%80%AFPM.png?alt=media\&token=ae912484-7bc8-4a2a-99a1-1420bfecf5b1).
      2. **Advanced**: In this tab, you'll set the rules for your task's path and behavior within the workflow. Options include Integration Overrides, Transition Mode, Task Transition Criteria Sensitivity, Run as Org, With Items, Items Concurrency, and Task Timeout. See more about this on the [Advanced Workflow Operations](https://docs.rewst.help/~/revisions/VmxzEdeNWvX54TqYxxOB/documentation/automations/workflows/advanced-workflow-operations-menu) page.
      3. **Mocking**: This tab provides the option to simulate the task's function with a user-defined result, useful for testing and debugging.
      4. **Time Savings**: In this tab, specify your estimate of the time a human would need to complete the task. This is used for creating Time Entries in PSA platforms.
      5. **Security**: This tab allows for meticulous redaction of sensitive information within workflow tasks. This is especially vital when using generic HTTP actions for services without official integrations, where API tokens or other sensitive data in headers could be exposed in results.&#x20;
         1. In the **Redacted Input Parameters** and **Redacted Output Parameters** fields, customize redaction with [JSONPath queries](https://jsonpath.com/).
         2. These queries can be entered manually in the editor, or chosen from the field's drop-down selector.
2. Remember to add [transitions](https://docs.rewst.help/documentation/workflows/configuring-your-workflow-tasks/navigating-between-tasks-with-transitions) between your tasks.
3. Click **Test** to see if your workflow executes as desired.&#x20;
4. Click **Publish** to save your changes and push them to the desired effect.

### Add time saved to a workflow

One of the key metrics you can use to understand the value added by your automations is time saved. You can configure this in Rewst by identifying how long it takes to manually work through your process before automating it and adding it into your workflow.

{% hint style="info" %}
**Considerations for time saved**

When determining how much time to set for any given process, it's a good practice to consider not only how much time it may take you or your most experienced tech to go through that process manually, but also how much time it takes to fix any human errors that may happen during this process.
{% endhint %}

1. Click on the workflow that you want to configure.
2. Click on **Configure Workflow Variables** <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FJsxizgUYZlDUaWVaDkD2%2FScreenshot%202025-03-05%20at%202.43.27%E2%80%AFPM.png?alt=media&#x26;token=5b9b2c2b-4f4f-4815-981f-da9f614a1643" alt="" data-size="line"> to edit the workflow.
3. Enter the amount of seconds it takes for the process in **Time Saved (seconds)**.
4. Click **Submit**.

### Add, edit, or delete workflow notes

{% hint style="info" %}
Rewst now also offers our [RoboRewsty](https://docs.rewst.help/~/revisions/VmxzEdeNWvX54TqYxxOB/documentation/automations/workflows/document-with-roborewsty) note taking feature, to automate your documentation. Choose to document manually, or with RoboRewsty. &#x20;
{% endhint %}

Notes are a great way to jot down your thinking behind workflow aspects, and an essential step to building workflows for any team that has multiple employees editing workflows. They save in the workflow itself, and can be viewed via the <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FWMMyLaddicPCrOVF2lYS%2FScreenshot%202025-03-05%20at%202.41.06%E2%80%AFPM.png?alt=media&#x26;token=e488d55d-8058-4bdc-94fd-a60b64c77df5" alt="" data-size="line"> notes button by anyone who has permissions to edit that workflow. These boxes provide a title and a markdown editor.

{% hint style="warning" %}
Adding notes is disabled for synced clone workflows.&#x20;
{% endhint %}

1. Right-click the canvas and select **Add Note**. Alternatively, press and hold the **control** key, then drag your mouse to create a note.\
   \
   ![](https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FTsgDe829slCXe4xU2EVb%2FScreenshot%202025-03-06%20at%203.01.41%E2%80%AFPM.png?alt=media\&token=00572ac7-3c2a-43b2-89ad-6e75b2c9a4b6)
2. Click and drag it to the desired location on the canvas.
3. Hover over the upper-right <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FWohmgapwN2bkvboKCfxj%2FScreenshot%202025-03-06%20at%203.02.37%E2%80%AFPM.png?alt=media&#x26;token=6a9b03a6-5720-4722-93e2-4e4bea587ad2" alt="" data-size="line"> icon and click **Edit Note** to edit a note's content in the right side menu.<br>

   <figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FzBoScGI1dd4jE2nevSuG%2FScreenshot%202025-03-06%20at%203.03.18%E2%80%AFPM.png?alt=media&#x26;token=9ec3a5fb-fe14-4880-a306-5b330e9ddabd" alt=""><figcaption></figcaption></figure>
4. To delete notes, right-click the note and click **Delete Note***.*

## Additional workflow builder features

### Select multiple elements on the canvas

Select multiple workflow tasks and notes simultaneously by drawing a selection box around them.

1. Hold shift and drag your mouse, or hold the middle-mouse button and drag your mouse.
2. Once you’ve selected multiple tasks or notes, move them by dragging the selection box to the desired location.
3. With multiple tasks or notes selected, you can perform the following actions:
   1. Delete Items: Press the delete key, or right-click the canvas and select **Delete Selected Tasks**.
   2. Duplicate Items: Press ctrl+d, or right-click the canvas and select **Duplicate Selected Tasks**.

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FLFGWKlCvlTFLQpakZOOi%2Fmultiselect%20gif.gif?alt=media&#x26;token=cbae51ca-be1d-4a0f-8495-b10d60edf089" alt="" width="375"><figcaption><p>The duplication of tasks and transitions</p></figcaption></figure>

### Favorite actions

Commonly used actions can be favorited to easily find and add actions to workflows. When favorited, actions can be found in the **favorites** section and added on the workflow canvas by right-clicking.

1. Find the action you want to favorite.
2. Click the star icon next to the action.\
   \
   ![](https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FGyjiK9EVeXK2Pls4CKwN%2Fimage.png?alt=media\&token=e8ebbc92-42da-4bd9-b790-822c7d7a8bbf)
3. To add a favorited action to your workflow:
   1. Right-click on the workflow canvas.
   2. Add an action from the favorites section.

## Retrieve the name of a workflow

Run the command `{{ WORKFLOW.name }}` .

Similarly, if you're searching for the name as it relates to completion handlers, run the command  \
`{{ COMPLETED_WORKFLOW.WORKFLOW.name }}` .

{% hint style="info" %}
Information for the **Advanced** tab of tasks and actions in a workflow can be found in our documentation for the [advanced workflow operations menu](https://docs.rewst.help/~/revisions/VmxzEdeNWvX54TqYxxOB/documentation/automations/workflows/advanced-workflow-operations-menu).
{% endhint %}
