Create a workflow (sequence editor)
Overview
Workflows are user-created algorithms and scripts that are created using the powerful visual editor. It allows you to create complex programs taking advantage of the platform's powerful capabilities.
The sequence editor allows you to create, build, edit, and execute them on the platform.
Before you begin
Navigate to the Workflows tab and make sure you have permission to interact with the module.
How to open the editor
You can invoke the sequence editor in one of two ways:
- By clicking on an existing workflow’s row.
- By opening an existing workflow through the Аctions menu.
Create a workflow
Choose a name of the desired flow, select the sequence layout type, and provide an optional description. When done, click Create.
After you successfully create the flow, the sequence view of the workflow editor will be loaded, and a ready “Hello, World!” script will serve as a starting point.
Basic features and actions
By default, workflows contain a Start block, an Assign block, and an End block that designate the start, middle, and end of the flow.
Sequence layout type workflow view
You can save the workflow under the same or a new name in the same or a different location.
Like flow titles, flow descriptions can also be edited. In the sequence layout view, you’ll need to go inside the Description field of the Start block. Clicking on it once allows you to add a new description or change the existing one.
Sequence layout view of the Start block
If needed you can toggle the option to Disable Keyboard Shortcuts.
Keyboard shortcuts behavior
When you disable the keyboard shortcuts, this behavior will be applied only to your current device. If you restart your browser, the shortcuts will continue to be disabled.
Integrations
You can store blocks and entire workflows in custom folders like Favorites, User, and Shared, as well as use Common platform blocks and various other manually installed integrations.
- The deep search feature allows you to find matches for all the blocks and folders containing the keywords you’ve provided.
- The group deep search features are useful when it comes to organizing the displayed results into their origin folders.
In addition to blocks, you can search for
endpoint paths (e.g. /v1/api-keys/
).
Block features
Auto-suggestion capability
Error tracking capability
Button | Function |
Copy (CTRL+C) | From left to right, the first button creates a copy of your block which you can paste later. |
Cut (CTRL+X) | The second button removes the block and creates a copy of it. |
Paste (CTRL+V) |
The third button pastes a copied or cut block to a specified location. For manual pasting without shortcuts, click the + button and select Paste from clipboard. |
Some of these actions are also available when you click the three-dot button on the block.
Action | Function |
Move |
Allows you to reposition the block to a different place without the need to drag it. |
Clone |
Creates an instant duplicate of the block. |
Copy | Creates a copy of the block that can be pasted in a different location. |
Cut | Removes the block and creates a copy of it which you can paste somewhere else. |
Locate |
Takes you to the exact location of the block within the list of integrations. |
Additional features
- Two switch buttons allow you to go back and forth between the flat and flow layout modes.
- The entire workflow can be managed inside built-in YAML and JSON editors.
Clicking this button opens a window that contains two alternative representations of the workflow.
You can find editable YAML and JSON code that’s easy to read and edit. You can copy it instantly using the button at the bottom-left corner. - You can manually undo or redo any actions you perform in your workflows using the left and right arrow buttons.
- In the flat layout, all action blocks have line numbers, and each number represents the order of a block. Start comes first and End comes last.
- Most integrations and blocks are visualized by different icons and colors depending on what they do.
-
To quickly access your favorite integration blocks or add a custom comment, hover the mouse between any two blocks and click the + icon.
The quick access menu is shown.Starting in 1.1.4, this menu is significantly enhanced. The following sections are added to allow you to quickly add the blocks that you need:- Home
- Use this section to add integration blocks.
- Most recent
- This sub-section contains the integration blocks that you added to your workflows most recently.
- All integrations
- This sub-section works like the existing integrations side panel in the editor. You can search for blocks, add them to workflows, and mark them as favorites.
- Quick access
-
Use this section to add commonly-used action blocks, such as Assign, If, and ForEach.
You can also add a custom comment, or paste a copied or cut block from the clipboard.
- Favorites
- Use this section to add the blocks that you marked as favorites.
- Custom comments can be added at any point of the
workflow.
From the quick access menu, select Add Comment and write your comment.
Click once outside the field to save the comment. It can be dragged, moved, relocated, edited, and removed just like a typical block. - You can see the name of the output variable(s) of some blocks at the bottom-left corner.
Authentications
You can quickly add authentication services for your workflow directly from the editor.
- Name
- The name of the authentication.
- Description
- An optional description for the authentication.
- Service
- The service or integration on which the authentication will be based.
When you’re done, click Save.
Saving a workflow
Running a workflow
Workflows take different times to execute depending on their complexity.
There’s a standard limit of 3600 seconds, or one hour, after which a workflow will still be able to finish running but without any authentication services within its blocks.
In the Run Workflow screen, you can visualize all Input variables in the workflow blocks. By editing these parameters you can create a custom execution run. You may optionally toggle on/off the Remember the values for the session duration option to save the input variables during the session runtime. Click on Cancel to exit from the screen, or Run to start the workflow execution.
You’ll notice the Logs section automatically expanding at the bottom of the screen. This is where logs for the workflow are generated.
Every execution is reflected in the dashboard and logs in real-time.
Deploying a workflow
To take your executions' security into your own hands, you can take advantage of the deployment capabilities of the editor. Unlike regular workflows, deployed workflows are considered active and harder to access by regular users, unless such setting is explicitly enabled.
Deployment relies on API gateway technology, which is centered around APIs, stages, and endpoints. For more information, please check out Deploy a workflow using API Gateway.
Deployed workflows have a green status in the Active column on the Workflows tab.
Workflow version control
Starting in 1.1.4, you can implement version control for your workflow configuration.
Each time you save your workflow, a new version is created. To view the list of saved versions and implement version control of your workflow configuration, click the Versions toolbar button.
The list of saved versions is shown. If more than one version was created in the same working session, the versions are grouped under a drop-down entry.
From the list, you can open an old version to view the original configuration, name a version so that you can identify it, restore a version to become the latest one, or save a version as a separate workflow. For more information, see Versions.
Tools (object editor and debugger)
There are two integrated workflow management tools available at your disposal. Their capabilities make them inseparable components of both the flow and sequence editors.
Object editor
To have more flexibility when building workflows, you can take advantage of the object editor.
Debugger
If you need to perform a check and/or edit a workflow as it is executing, you can debug it. For more information, see Debugging workflows.