Skip to content

Workflow Settings

It's possible to set custom settings on each workflow from the workflow > settings menu.

workflow settings

The workflow settings have three sections.

1. General

It contains the following settings:

  • On workflow error: Select what to do when an error occurs on the workflow.
  • Workflow execution: Whether to run the workflow in the popup dashboard or in the background.
  • Workflow notification: Toggle whether to show a notification when the workflow execution end.
  • Debug mode: Execute the workflow using the Chrome DevTools Protocol
  • Autocomplete: Enable autocomplete in the input of a block
  • Reuse the last workflow state: Use the state data (table, variables, and global data) from the last execution.
  • Save workflow log: Save the logs of the workflow.
  • Show executed block on the web page: Show the block that workflow currently executes on the webpage. This setting only shows blocks in the "Web interaction" category, like the Click Element and the Forms block.
  • Workflow public Id: The public id of the workflow, you can use this public id when executing workflow using Javascript CustomEvent.

Workflow Execution

Some features that will not available and advantages when selecting "popup" or "background" when running the workflow:

Name/FeaturesPopupBackground
Max running timeNo limit~5 Minutes
Required popup window
JS Background Execution
JavaScript Expression
Clipboard Block

2. Table

It contains the following settings:

  • Insert into the default column: Insert data to the default column if there's no column selected in the block or when the column doesn't exist.
  • Default column name: The name of the default column

3. Blocks

It contains the following settings:

  • Block delay: Add delay before executing each of the blocks
  • Tab load timeout: Maximum time to load tab in milliseconds

4. Workflow Events

Workflow events allow you to perform actions when an event occurs within the workflow.

Available Events

  • Finish (success): Fires when the workflow finishes executing with success status.
  • Finish (failed): Fires when the workflow finishes executing with failed.

Available Actions

  • HTTP Request: Send an HTTP request
  • Execute JS Code: Execute JavaScript code

Available Data

You can access data like the workflow logs, status, error message, etc. using the workflow keyword inside an expression or automaRefData function within the action.

Data Type

ts
interface Workflow {
  status: "success" | "error";
  logs:
    | {
        type: "error" | "success";
        description: string;
        name: string;
        blockId: string;
        timestamp: number;
        activeTabUrl: string;
        duration: number;
        id: number;
      }[]
    | null;
  errorMessage: string | null;
}

Examples

js
// Expression
{{ workflow.logs }}

// automaRefData
console.log(automaRefData('workflow', 'logs'))
console.log(automaRefData('workflow', 'status'))

Workflow data