Creating workflows
You can either create workflows from scratch or install them from Nexthink Library to accelerate adoption. Customize Nexthink-library workflows using the workflow designer.
To set up new workflows from scratch, follow these steps:
Design workflow logic
From the workflow designer, build the workflow structure using the visual interface and canvas.
In the Toolbox tab on the right-side panel, drag and drop the building blocks onto the workflow canvas, according to the required structure and logic:
Add Thinklets to execute available Nexthink actions or integrate with 3rd party systems via APIs.
Add Flow controls to drive workflow progression and decision logic based on values collected by the workflow or Nexthink data.
Add Connectors to use pre-configured integrations to third-party APIs.
Position elements freely on the canvas to organize them as needed. Use the Auto-layout button to automatically arrange components in a clean, consistent structure.

Link and sequence the added workflow components, in the preferred order, using your cursor:
Hover an element on the workflow canvas to reveal its blue circle or anchor.
Left-click and drag from the blue circle to another component to create a connection. See the image above.
Remove existing links between components using the Delete key to establish a new preferred connection while keeping the overall workflow design by using Delete key.
As a result, you can streamline workflows from the Nexthink Library by swiftly detaching and removing unnecessary workflow conditions.
Define workflow details
From the workflow designer, fill in the Workflow details using the right-side panel:
Name: The workflow name displays on the Manage workflows page and in related NQL queries ran within Nexthink.
NQL ID: The system automatically generates a unique identifier from the workflow Name. Use the NQL ID to query this workflow within Nexthink. Once saved, you cannot edit the NQL ID.
For workflow Triggers and Targets, see the next steps below.

Choose workflow triggers
From the workflow designer, on the Workflow details tab in the right-side panel, select the Trigger mechanisms to define when and how the automation starts running.
Refer to the Triggering workflows documentation to configure the workflow trigger most suited for your use case.

Add workflow parameters
Workflow parameters are optional inputs you can define when creating a workflow. These parameters allow you to:
Set values at the start of the workflow that remain constant during execution.
Adapt a single workflow design to different scenarios or use cases.
For example, you may use workflow parameters to change target groups, thresholds, or integration settings without modifying the workflow itself.
Refer to the Parameters and dynamic values documentation to learn how to use workflow parameters.

Optionally modify the workflow in NEAL
For advanced scenarios, you can use the NEAL tab (Nexthink Experience Automation Language) in the right-side panel, as the scripting language and underlying code behind the workflow.
This code is automatically generated as you design and construct the workflow logic visually. The workflow visual designer and the NEAL script stay synced, meaning you can safely switch between views.
Refer to the NEAL documentation to learn how to read and script workflows in NEAL.

Validate and save the workflow
At the bottom of the workflow design page, the system warns you when the designed workflow is malfunctioning, assisting you in troubleshooting and configuring it for proper functionality.
Open the Errors side panel to trigger validation and review any issues identified. Invalid steps are highlighted in red on the workflow canvas for easy correction.
Remember to Save your workflow regularly, even if it's incomplete or contains errors (invalid). When saving workflows, keep in mind:
When you modify and save an active/valid workflow, ongoing executions are automatically canceled. A warning message appears, asking for confirmation before applying changes.
When you update the workflow's triggering or scheduling settings without modifying its design, it does not affect ongoing executions.
Resolving existing validation issues may uncover further problems, as some issues could be obstructing the validation of other design elements.
Validation messages are not available in the NEAL tab.

Workflow design use cases
Leverage the workflow visual designer to adapt your smart automations to specific use cases, such as handling expiration scenarios or building user-adaptive pause behaviors.
Handling expirations in workflows
Some workflow thinklets—like Remote Actions and Campaigns—depend on a user or device being available to complete their task. If unavailable, the workflow expires.
To manage these expiration scenarios, the Remote Actions and Campaigns thinklets have a Timeout property that sets how long the workflow should wait before triggering the thinklet's Expired path—see the image below.
When the Expired path is triggered, the workflow can take a fallback action, such as:
Creating a ServiceNow ticket
Sending an email
Retrying a different path
If you do not connect the thinklet's Expired output, the workflow stops when that timeout is reached. Use a longer Timeout if the device is often offline or users need more time to respond.

Building adaptive wait behavior in workflows
To further flexibilize workflows, you may configure Wait thinklets to use Dynamic time delays based on user inputs, workflow parameters, or context—such as the user's time zone.
Dynamic time delays allow workflows to pause intelligently based on employee choices or responses to timing, ensuring notifications or restarts happen at the right moment for each user.
Use case example: You need to reboot a user's device, but want to let them decide when (timing).
Add a Message thinklet asking: When can we restart your device?
Provide options such as Now, In 1 hour, In 2 hours, or By end of day. See the image below.

Add a Condition flow control to check the user's response.
If the response is By end of day, use a Function thinklet to calculate the end of the current business day based on the user's time zone, then trigger the reboot.
Otherwise, use a Wait thinklet with a Dynamic time delay based on the selected option. In this case, the number of Hours provided by the user to the preceding Message thinklet.

RELATED TOPICS
Last updated
Was this helpful?

