> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/action-center/about-action-center.md).

# About Action Center

Understand how Action Center turns asset data into automated responses: workflows, triggers, conditions and job nodes.

Action Center automates responses to what OctoXLabs finds in your asset data. You build a **workflow** that starts from a **trigger**, checks your data with a saved query, and then runs **job nodes** that notify people or act in other systems, for example by sending a mail, opening a Jira ticket or containing a host in CrowdStrike.

### Building blocks

| Block                  | What it is                                                                                                                        | Where you set it                                              |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| Workflow               | One automation with a title, a description, an on/off switch (**Active Status**) and a canvas of nodes.                           | **Action Center** > **Create Workflow**                       |
| Trigger                | What starts the workflow. Every workflow has exactly one **Triggers** node.                                                       | The **Triggers** node on the canvas                           |
| Condition node         | Runs a saved query against one inventory and compares the result with a value. It also decides which assets the next jobs act on. | **Add Condition Node** on the canvas toolbar                  |
| Job node               | One action, for example **Send Mail** or **Create Issue/Ticket on Jira Cloud**.                                                   | **Add Job Node** on the canvas toolbar                        |
| Columns                | The fields sent along with each asset (for example in a mail attachment or a ticket body), set per inventory.                     | **Edit Columns** on the canvas toolbar                        |
| Action Center Settings | Default values for each job, and SSH connections used by some jobs.                                                               | **Action Center** > **Settings**. See Action Center Settings. |

#### Trigger types

| Trigger                                    | When the workflow runs                                                      |
| ------------------------------------------ | --------------------------------------------------------------------------- |
| **Manual**                                 | When you run it yourself with the run button in the workflow list.          |
| **Scheduled**                              | At the **Start Time** you set, on the days you select (**Every x day(s)**). |
| **Event Based** > **Pre Discovery**        | When a discovery is about to start.                                         |
| **Event Based** > **Post Discovery**       | When a discovery finishes successfully.                                     |
| **Event Based** > **Post Discovery Error** | When a discovery ends with an error.                                        |

Event based workflows run only while the workflow is active. Turning a scheduled workflow off also pauses its schedule.

#### Job nodes

**Add Job Node** opens a drawer that lists jobs by integration, with a category filter and a **Search jobs...** box. The drawer groups jobs like this (the exact list depends on your version):

* **General:** Send Mail, Run Webhook.
* **Compare:** Compare With Day, Compare With Date, Compare With Last Discovery.
* **OctoXLabs:** Create Notification.
* **Collaboration and messaging:** Slack, Microsoft Teams.
* **Ticketing and ITSM:** Jira (Cloud and Self-Hosted), ManageEngine ServiceDesk, Service Now, BMC FootPrints, OpenText SMAX, Xurrent, Microsoft Dynamics 365, Linear, Github.
* **Identity and directory:** Okta, Google Workspace, SharePoint.
* **Endpoint and security tools:** CrowdStrike, SentinelOne, Tenable.
* **Cloud and infrastructure:** AWS, Google Cloud, Microsoft Azure, Hetzner, Wasabi, Docker, Linux.
* **Files and remote commands:** File Transfer (SFTP, SCP, FTP, SMB and WinRM copy), Windows (Run Command).

For the settings of each job, see Action Center Settings.

{% hint style="info" %}
Some jobs come in two forms: one request for all matching assets, and a **Per Asset** form that sends one request per asset (for example **Create Issue/Ticket Per Asset on Jira Cloud**).
{% endhint %}

### How a workflow decides which assets a job acts on

A job does not pick assets itself. It acts on the assets that the nodes before it collected.

1. A **condition node** is tied to a saved query on one inventory (for example Asset or User). When the workflow runs, OctoXLabs runs that query on the latest finished discovery and collects the matching assets.
2. The condition compares a result with your **Value**. You choose a **Function** (count, average, maximum, minimum, sum, percentage, change percentage or absolute change percentage), an **Operand** (equal, greater than, greater than equal, less than, less than equal) and, for functions that need one, a **Column**.
3. If the comparison is true, the workflow follows the edges marked **SUCCESS** and passes the collected assets on. If it is false, it follows the **FAILED** edges.
4. Each job node receives those assets, acts on the inventories you selected for it, and passes them on through its **NEXT** edge.

A job that follows the trigger directly has no condition and therefore no collected assets. Put a condition node before any job that needs assets. For how to write the query, see Create and Save Queries.

### How a workflow runs

1. The trigger fires: you click run, the schedule reaches its start time, or a discovery event happens.
2. OctoXLabs records a new entry in the workflow history and starts at the node connected to the trigger.
3. It needs a finished discovery. If none exists, the run stops with the log entry **No discovery found.**
4. Nodes run one after another along the edges. Each condition and each job writes entries to the audit log: started, finished or failed.
5. If a job fails, the run stops and is marked as an error. Otherwise it ends with **Workflow finished.** and a success status.

Each run also creates a system activity for started, completed or failed workflows.

### Find your way around the console

The **Action Center** menu has four entries:

| Menu entry          | What it shows                                                                                                                                                                                                                                |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Action Center**   | The workflow list with the columns Title, Description, Trigger, Scheduled and Active Status. Use the run button to start a workflow, or the edit and delete actions. **Actions** > **Export Selected Items** exports the selected workflows. |
| **Create Workflow** | An empty canvas with a **Triggers** node.                                                                                                                                                                                                    |
| **History**         | One row per run: Title, Triggered By, Status, Start Time and End Time. Open a row to see **Workflow Execution Detail** with the audit logs and, for failures, **Error Details** (message and traceback).                                     |
| **Settings**        | See Action Center Settings.                                                                                                                                                                                                                  |

### Required permissions

Access is controlled by role permissions in the **Workflows** group. The permission names come from the product:

| To do this                                     | Permission                                            |
| ---------------------------------------------- | ----------------------------------------------------- |
| See the Action Center menu and workflow list   | `workflows.view_workflow` or `workflows.add_workflow` |
| Create a workflow                              | `workflows.add_workflow`                              |
| Edit a workflow or change its Active Status    | `workflows.change_workflow`                           |
| Delete a workflow                              | `workflows.delete_workflow`                           |
| Run a workflow manually                        | `workflows.run_workflow`                              |
| See History                                    | `auditlogs.view_workflowauditloghistory`              |
| See or change job defaults and SSH connections | See Action Center Settings                            |

{% hint style="warning" %}
Jobs act on real systems: they can stop servers, disable users or contain hosts. Test a new workflow with a narrow saved query and a notification job before you add jobs that change anything.
{% endhint %}

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Action Center Settings</strong></td><td>Set job defaults and SSH connections.</td><td></td></tr><tr><td><strong>Rules and Triggers</strong></td><td>Choose when a workflow runs and what it checks.</td><td></td></tr><tr><td><strong>Sample Workflow</strong></td><td>Build a complete workflow from trigger to job.</td><td></td></tr><tr><td><strong>Create and Save Queries</strong></td><td>Write the query a condition node uses.</td><td></td></tr></tbody></table>
