1. Builder
  2. Insights

Builder

Insights

Explains Insights in Builder, which shows failed actions, failed tasks, action runs and stub counts for your templates. Useful for finding where a flow fails, how often it runs, and which stubs are affected.

Insights has three views:

  • The Insights overview lists the templates in your org that have failures.
  • The template page shows where one template fails, and how its actions and states are used.
  • The canvas overlay puts the same numbers on the actions, states and edges of a flow.

Every number in Insights counts the selected time window, and you can click most of them to see the stubs behind them.

Insights overview

Click Insights in the side navigation of the Builder to open the overview.

Filters

  • Show templates without failures
    • By default, only templates with failures in the window are listed. Tick this to list every template that ran.
  • Live / Draft
    • The branch to show. Live and draft are kept separate, so testing on draft doesn't skew your live numbers.
  • Time window
    • Last hour, Last 6 hours, Last 12 hours or Last 24 hours.
  • Refresh
    • Loads the latest numbers.

Totals

Tile Shows
Failed actions Actions that couldn't run at all, for example because the stub wasn't in a state that allows the action.
Runs with failed tasks Action runs where the action ran, but one or more of its tasks failed. Also shown as a share of all runs.
Action runs All action runs in the window.

Template list

Each row is a template and context that ran in the window.

Column Shows
Template The template's name
Context The context the runs happened in
Failed actions Actions that couldn't run at all
Runs with failed tasks Runs with at least one failed task, and their share of runs
Runs All action runs
Last failure How long ago the most recent failure happened

Click a row to open the template page for that template, with the same branch, context and window selected.

Template insights

The template page shows where a single template fails.

Filters

  • Live / Draft / All
    • The branch to show. All combines live and draft runs.
  • Context
    • One of the template's contexts, or all.
  • Time window
    • Last hour up to Last 24 hours.
  • View on canvas
    • Opens the template's draft flow with the canvas overlay turned on, showing the branch and time window you selected. A flow is one context, so all opens the default context.

The filters are kept in the page's URL, so you can share a link to exactly what you are looking at.

Totals

The same tiles as the overview, plus:

  • Stubs
    • Stubs that were active in the window.

Failed actions

Actions that couldn't run at all, with the number of failures, when the last one happened, and the latest error, such as action_not_in_state.

Failed tasks

Tasks that failed while their action ran, grouped by action and task. Tasks that were skipped because their conditions weren't met don't count as failures.

Column Shows
Action The action the task belongs to
Task The task's key. Tasks that ran in a task stage show the stage in brackets.
Failures How many runs had this task fail
Rate Failures as a share of the action's runs
Last How long ago it last failed
Latest error The error message from the most recent failure

Action runs

Every action that ran in the window. Click a column heading to sort by it, and click it again to flip the order.

Column Shows
Action The action's name
Runs How many times it ran
Failed tasks Runs with at least one failed task
Failed task % Failed task runs as a share of all runs
Failed to run Times the action couldn't run at all
Last run How long ago it last ran

Stubs by state

How many of the active stubs are in each state, and their share of all active stubs.

A stub counts if it was active in the window, under the state it is in now. A stub that moved from new to closed during the window counts once, under closed.

State changes

The most common moves between states in the window: the state a stub came from, the state it moved to, the action that moved it, and how many times it happened.

Seeing the stubs behind a number

Click a row in any table on the template page to open a list of the stubs or stubposts behind it.

  • Rows in Failed actions, Failed tasks, Action runs and State changes list the stubposts of those runs, with the error messages of any failed tasks.
  • Rows in Stubs by state list the stubs that are in that state now.

Click an item to open the stub, or the stubpost on the stub, in a new tab.

Canvas overlay

The canvas overlay shows Insights on the flow itself.

Turning it on

Click the button in the canvas controls, or click View on canvas on the template page. Click the button again to hide it.

The canvas overlay always shows the context the flow is open in.

The Insights panel

The panel in the top right of the canvas shows:

  • Live / Draft / All and the time window
  • Action runs, Stubs, Task failures and Failed to run totals for the flow
  • A legend for the icons on the canvas

The panel buttons refresh the numbers, open the template page in a new tab, and hide the overlay.

The numbers refresh every 30 seconds, and whenever you come back to the browser tab. Turning the overlay on loads fresh numbers, so actions you have just run on a test stub show up straight away.

Actions

Each action shows:

Icon Shows
Runs
Runs with failed tasks
Times the action failed to run
  • An action with failed runs has a red outline. An action with only task failures has an amber outline.
  • The bar on the left of the action gets darker the more it runs, compared to the busiest action on the canvas.
  • Actions that didn't run in the window are faded.

Hover over a number to see more detail, such as the tasks that failed most often and their latest errors.

States

Each state shows the number of active stubs in that state, and their share of all active stubs. The busier the state, the darker its background. States without stubs are faded.

Edges

Edges between states and actions show how many runs went along them, and are drawn thicker the more they were used.

Seeing the stubs behind a number

Click any number on an action, state or edge to open the list of stubs or stubposts behind it, the same as on the template page.