> 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/action-center/slack/send-notification.md).

# Send Notification

Sends one message to a Slack incoming webhook. The message lists, for each inventory you selected on the node, how many assets were collected and their values in the columns you chose with **Edit Columns**. Use it to tell a channel what a workflow found. To message individual users, see [Send Direct Message to a User](broken://pages/9763ab44ad0a0722481f3e05875820a54fc397ed).

### Before you begin

* A Slack incoming webhook URL, entered in **Hook url**. No API token is needed.
* Asset types: device, user, application, vulnerability, certificate, service, source\_code, ai, domain, license and policy. You pick them in the inventory selector at the top of the node form. A new job defaults to `device`.
* Columns: the columns you set per inventory with **Edit Columns** on the canvas toolbar.
* Job defaults: **Hook url** can be saved in [Action Center Settings](broken://pages/fa25776ab251a33bb2a7e69faf62f677f3b76280).

### Settings

| Setting  | Type | Required | Default | Description                                             |
| -------- | ---- | -------- | ------- | ------------------------------------------------------- |
| Hook url | URL  | Yes      | None    | The Slack incoming webhook URL. It must be a valid URL. |

### How it works

* Builds one message for the whole run, not one per asset. The webhook payload uses the sender name `Octoxlabs Workflow`, the icon `:octopus:`, the workflow title as the pretext and the workflow description followed by the asset blocks as the text.
* For each selected inventory the message has a code block that starts with `<inventory> count: <number>`. With 4 or fewer columns it is a table with aligned columns; with more than 4 columns each asset is a list of `column: value` lines separated by dashes. Empty values show as `null`; list values are joined with commas.
* The job posts the payload once and does not check the HTTP status of Slack's answer. A connection error fails the job, but a rejection by Slack (for example an invalid webhook) does not.
* Passes the same assets it received to the next node.

### Example

| Setting                | Value                                               |
| ---------------------- | --------------------------------------------------- |
| Hook url               | `https://hooks.slack.com/services/YOUR/WEBHOOK/URL` |
| Inventories            | device                                              |
| Columns (Edit Columns) | Hostname, IpAddresses                               |

### 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>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/c53d026b9438b74e5c96c7a59bb6d75211026536">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save default values for this job.</td><td><a href="broken://pages/fa25776ab251a33bb2a7e69faf62f677f3b76280">Broken link</a></td></tr><tr><td><strong>Send Teams Notification</strong></td><td>The same summary for Microsoft Teams.</td><td><a href="broken://pages/322b4df4198ab7ae246a0e6e9db8c4380efb6b7f">Broken link</a></td></tr><tr><td><strong>Send Mail</strong></td><td>Send the assets by mail.</td><td><a href="broken://pages/ef9626d1371631217bb41bb86d5bdafda3432b09">Broken link</a></td></tr></tbody></table>

{% hint style="info" %}
Available starting from version 2.4.0.
{% endhint %}
