For the complete documentation index, see llms.txt. This page is also available as Markdown.

Running a Workflow

After you've created a Workflow, configured its basic settings, and added blocks, you're ready to run it.

You can run a Workflow in the following ways:

To run a Workflow with Cortex-based blocks, you need the appropriate permissions for each block. For example, a block that adds Eng Intelligence custom metrics to an entity requires the Configure Eng Intelligence Custom Metrics permission to run successfully.

Prerequisites

  1. You must have the Execute Workflows Runs permission.

  2. An existing Workflow. If you haven't yet created a Workflow, refer to Creating a Workflow, Configuring Workflow settings, and Adding blocks to a Workflow.

Running a Workflow directly after configuration

  1. In the upper-right corner of the page, click Run.

    The 'Run' icon in the upper-right corner of the Workflow page.
  2. Click Run workflow.

Running a Workflow from the Workflows page (via the main sidebar)

  1. From the main sidebar, select Workflows.

  2. Do one of the following:

    • Select the All tab to search and filter across all of your organization's Workflows.

    • Select the Mine tab to search and filter only the Workflows you own.

    • Note that Cortex saves your selection and restores it the next time you open this page.

  3. Locate the Workflow you want to run, then click Run. Note that if the Workflow is scoped to an entity, the Select an entity window opens. Select an entity from the drop-down menu, then click Run workflow.

Workflows that require user input or manual approval pause until the configured input or approval is completed.

Nested form inputs configured with Data type: String render as a simple list of text fields, one per row, with an Add button and a Remove button (trash icon). Data type: Object nested forms render the configured sub‑form per row.

Nested form String input at runtime: one text field per row with Add and remove buttons.

Running a Workflow from an entity

Follow the steps below to run a Workflow from an entity.

Workflows are linked to entities only if specified during configuration. To link an existing Workflow to an entity, edit the Workflow first.

  1. From the main sidebar, expand Catalogs, then select All entities.

  2. Do one of the following:

    • Select the All tab to search and filter across all of your organization's entities.

    • Select the Mine tab to search and filter only the entities you own.

    • Note that Cortex saves your selection and restores it the next time you open this page.

  3. Search for and select the entity from which you want to run the Workflow.

  4. From the entity details sidebar, select Workflows.

  5. Locate the Workflow you want to run, then click Run. The Confirm window opens.

  6. Click Run workflow.

  7. Click the tile to view the recent run.

    The run tile.

Running a Workflow via the API

You can trigger Workflows programmatically using the Workflow Runs API. This is useful for integrating Cortex Workflows into CI/CD pipelines, scripts, and other automation.

Prerequisites

  1. The Workflow must have Runnable via API enabled. See Enabling API access.

  2. The caller must authenticate with a personal access token or a global API key that has the Execute Workflow Runs permission.

What you can do via the API

  • Trigger a Workflow run for a global or entity‑scoped Workflow.

  • Pass runtime values into Workflow variables using initialContext. See step 1-i in Configuring Workflow settings.

  • Specify the initiating user with runAs —required when the Workflow restricts inputs to the initiator, when authenticating with a workspace or global API key, or when the Workflow contains a Scaffolder block. If runAs is omitted and an initiator is required, the run pauses and prompts for user selection.

  • Notify additional users of run events with notificationRecipients.

  • Prevent duplicate runs from accidental retries by sending an Idempotency-Key header.

  • Retrieve a specific run or list runs with filters.

For full request and response details, see the Workflow Runs API reference.

API‑initiated runs appear on the Runs tab alongside UI runs. See Tracking API‑initiated runs.

Running a Workflow with secret user input

When a Workflow includes a secret user input block, Cortex prompts the user to enter a value and redacts it in the Outputs tab. If the block has regex validation configured, the user's input must match the Validation regex set for that block.

The Outputs tab shows the secret fields after the Workflow runs, but Cortex redacts the values themselves.

Running a Workflow with list inputs

When a user input collects a list (nested form with the single value data type), the runner can add or remove entries within the configured element count. Number items are validated against the Integer/Decimal format and any minimum or maximum you set, and toggle items are entered as true/false switches.

Viewing a Workflow run

See the documentation for viewing a Workflow run.

Canceling a run

Follow the steps below to cancel a run.

Canceling a partially complete run does not impact any blocks that have been successfully completed.

  1. On the Workflows page, select the Runs tab.

  2. Select the run you want to cancel.

  3. In the upper-right corner of the page, click Cancel run. The run is terminated.

Next step: Publishing a Workflow

Troubleshooting and FAQ

When trying to run a Workflow, why might I get the 404 error could not find workflow with id: xyz?

This happens when you have multiple tenants and use an API key from the wrong tenant. Ensure that you are using the correct API key, or create a new API key and try again.

Why do I see a 403 Forbidden IP address error when running a Workflow?

Workflow steps that call the Cortex API fail if the request originates from an IP that isn't on your allowlist. Send a message to help@cortex.io if you need further assistance.

Why does a Workflow run fail with a message about ownership or team role?

This happens when the Workflow requires Require entity ownership. Only the entity's owner can run it. If Require team member role is also on, the owner must additionally hold one of the configured roles on the owning team—holding the role alone, without being the owner, isn't enough. Runs triggered via the API always fail this check if Cortex can't identify the calling user.

Last updated

Was this helpful?