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:

1

Create a workflow

Select Workflows from the main menu, and click New at the top of the navigation panel to open the workflow designer.

To access and edit the configuration of existing workflows:

Then, continue to follow the steps listed below.

New workflow button
2

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.

Zoom in and out, and frame the entire workflow using the workflow map controls.

The window in the bottom left corner shows the overall workflow and your current position

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.

Adhere to workflow design principles when incorporating steps
  • A thinklet can have multiple entry points from other thinklets.

  • A thinklet can only have one exit path to another thinklet.

  • Every path of the workflow must finish with an End block thinklet.

  • Every possible outcome of a workflow condition must have a pathway leading from it.

  • Thinklets for remote actions and campaigns can handle expired scenarios—such as offline devices, no user response—without breaking workflow sequence.

  • Condition flow-control thinklets support manual custom fields—user or device attributes—to drive workflow decision logic.

Refer to the manual custom fields documentation to create and configure custom fields for workflows.

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.

3

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.

4

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.

If you configure workflow Parameters, you can add input values to the selected workflow Triggers.

5

Define workflow targets

From the workflow designer, on the Workflow details tab in the right-side panel, define workflow Targets:

Devices

Enable the workflow as an available action when listing Devices, including Device View and Amplify.

Users

Enable the workflow as an action when listing Users in Investigations.

Sessions

Enable the workflow to be triggered on VDI sessions—refer to Using session view documentation for more information. When targeting a VDI session, choose from:

  • Client: Targets the physical client devices used to initiate the session. Client devices can only be targeted if they are managed by Nexthink.

  • VDI: Targets VMs in the virtual infrastructure. When selecting VDI, the user is choosing a VM in the VDI session to which the client devices connect.

  • Allow User Override Selection: allows users to manually change the target when executing a workflow on the VDI session dashboard.

6

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.

Once defined, you can assign values to workflow parameters when configuring the workflow Triggers, under the Workflow details.

7

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.

8

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.


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.

Refer to the Campaign thinklet and Remote action thinklet documentation to learn how to set up these types of workflow thinklets.

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).

  1. 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.

  1. 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.

Refer to the Configure flow controls documentation to learn how to configure Wait thinklets in detail.


RELATED TOPICS

Last updated

Was this helpful?