Skip to content

Manage Workflows#

6.0 One

Workflows in TheHive Flow consist of interconnected nodes that define automated processes. They begin with a trigger and can include flow, transformation, action, and integration nodes. Workflows are scoped to the organization and shared among all members with sufficient permissions. There's no personal or user-isolated workspace.

Relationship to existing automation features

TheHive Flow workflows cover most of the use cases handled by existing automation features in TheHive, including notifications, alert feeders, functions, and Cortex responders. These features remain available and usable on their own. TheHive Flow adds multi-step logic, conditional branching, scheduled execution, and a visual workflow editor, all natively within TheHive, without requiring code or an external tool.

Create a workflow#

manageOrchestrator/writeWorkflows

Create workflows in TheHive Flow to automate operations when specific events occur.

  1. Go to the Flow view from the sidebar menu.

    Flow view

  2. Select .

  3. In the Workflow information drawer, enter the following information:

    Fields marked with * are mandatory.

    - Name *

    The name of your workflow.

    - Description

    A description of your workflow.

    - Tags

    Free text tags to categorize and filter workflows.

    - Timeout

    The maximum allowed execution time for the entire workflow. Defaults to 1 hour if left blank. The minimum allowed value is 30 seconds.

    You can also configure different timeout values at the node level, if needed. In that case, the shortest timeout value is applied.

    The timeout also prevails over the duration of a Sleep flow node: if the duration exceeds the workflow timeout, the execution times out before the pause completes.

  4. Select Save.

    TheHive creates a workflow with a default trigger node. The trigger node is the entry point that initiates workflow execution.

  5. Optional: To declare the workflow's entry and exit variables, select , then Settings, and fill in the Input variables and Output variables sections.

    Once declared, input variables can be assigned values when configuring a Webhook trigger. A run from a case or alert page assigns the case or alert identifier to an entry variable named case_id or alert_id.

  6. Optional: Create global variables to store fixed values shared across workflows. See Manage Global Variables for detailed instructions.

    Local variables

    If you need variables whose values are set during execution, use local variables. They are scoped to a single workflow and created using a Set local variable transformation node.

  7. Select Add a trigger to configure one or more triggers in the trigger node.

    For configuration instructions, see Add a Trigger.

    Manual trigger from the workflow editor

    You can manually run a workflow from the workflow editor even without configuring any triggers.

  8. Add nodes to build your workflow by dragging the previous node connector to an empty area of the canvas.

    Drag a node connector to an empty area

  9. Select the node you want to add:

    • Flow nodes to control workflow branching and loops
    • Transformation nodes to process and manipulate data
    • Action nodes to perform generic operations such as sending requests or messages, running Cortex analyzers and responders, or calling an LLM
    • Integration nodes to perform operations in TheHive or third-party products through their APIs

    For configuration instructions, see Configure a Flow Node, Configure a Transformation Node, Configure an Action Node, or Configure an Integration Node.

Once created, the workflow is automatically saved.

Duplicate a workflow#

manageOrchestrator/writeWorkflows

Duplicate a workflow to reuse its structure, or to keep a copy before making significant changes, as workflows have no versioning.

  1. In the workflow list, select next to the workflow you want to duplicate.

  2. Select Duplicate.

The copy takes the name of the original workflow followed by - Copy. To rename it, select next to the copy, then Settings.

Duplicate a node#

manageOrchestrator/writeWorkflows

No versioning

There's no workflow versioning. Any modification is applied immediately to the active workflow. Duplicate a workflow before making significant changes. To keep a history, export your workflows and version them in a Git repository.

  1. In a workflow, select on the node you want to duplicate.

  2. Select Duplicate.

    Duplicate a node

Delete a node#

manageOrchestrator/writeWorkflows

Trigger node can't be deleted

The trigger node is mandatory and can't be deleted from a workflow. However, you can delete individual triggers inside the trigger node.

Deleting a node invalidates references to its outputs

Later nodes can reference the deleted node's output variables. After the deletion, these references become invalid and the affected nodes report errors. Until you update or remove these references, a disabled workflow can't be enabled, and an already enabled workflow rejects every run attempt, whether triggered or manual.

No versioning

There's no workflow versioning. Any modification is applied immediately to the active workflow. Duplicate a workflow before making significant changes. To keep a history, export your workflows and version them in a Git repository.

  1. In a workflow, select on the node you want to delete.

  2. Select Delete.

    Delete a node

Enable a workflow#

manageOrchestrator/writeWorkflows

Enable a workflow to run it automatically when triggered. An enabled workflow can also be run manually from the workflow editor or from a case or alert page.

Resolve errors before enabling

You can't enable a workflow that contains errors. Errors are marked in the workflow with . Resolve all errors before enabling the workflow.

In the workflow editor, select Enable workflow.

Enable workflow

Turn off a workflow#

manageOrchestrator/writeWorkflows

Turn off a workflow to edit it without affecting production operations. A disabled workflow never runs: its triggers are ignored and manual runs are unavailable.

In the workflow editor, select Disable workflow.

Disable workflow

Delete a workflow#

manageOrchestrator/deleteWorkflows

Permanent action

Deleting a workflow is permanent and can't be undone. To temporarily deactivate a workflow, turn it off instead.

  1. In the workflow list, select next to the workflow you want to delete.

  2. Select Delete.

  3. Select OK.

Next steps