---
title: "Slack notifications"
canonical: "https://support.appfire.com/space/CDML/649922784/Slack%20notifications"
format: markdown
---
## [Configure dark mode Slack notification feature](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649760449)

This dark mode feature is only available from Comala Document Management 6.11.3.

A global administrator must enable the Comala Slack macro dark feature in the instance.

## [Set up a Slack channel for notifications](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649793883)

<span style="color: #172b4d">An empty Slack app must be created and a channel in the Slack workspace must be exposed. For more details see </span><span style="color: #172b4d">[https://api.slack.com/messaging/webhooks](https://api.slack.com/messaging/webhooks)</span><span style="color: #172b4d">.</span>

<span style="color: #172b4d">In Slack, you need to</span>

- <span style="color: #172b4d">create an app</span>
- <span style="color: #172b4d">expose a channel in your Slack workspace by creating an incoming webhook for the app</span>

<span style="color: #172b4d">The incoming </span><span style="color: #172b4d">**webhook URL**</span><span style="color: #172b4d"> needs to be copied to add to your workflow trigger to create the notification.</span>

## <span style="color: #172b4d">Add one or more Slack notification triggers to your workflow</span>

The [slack-channel-message macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649925139) can be added to a trigger in your workflow. You must be able to access the Slack app in the Slack workspace to copy the webhook URL and edit the workflow.

- copy the Slack **webhook URL** (webhook ID) created when you created the Slack app and exposed the channel in the Slack workspace
- add the  [slack-channel-message macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649925139) including the **webhook ID**

```
{trigger:statechanged|state=Approved}
    {slack-channel-message:webhook=https://hooks.slack.com/services/<webhook_ID>}
    Here is my first slack notification. My @pagetitle@ content has just transitioned to the Approved state.
    {slack-channel-message}
{trigger}
```

  
The trigger can be set to listen for several workflow events such as` statechanged` and `pageapproved.`

## See also

### External Links

- [Slack API - sending messages using incoming webhooks](https://api.slack.com/messaging/webhooks)
- [Create a Slack app in a workspace](https://api.slack.com/apps)

### [Content Integrations](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649725106)

> Macro (children)

### [Workflow Authoring Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/648611901)

- [slack-channel-message macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649925139)
- [trigger macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649859133)