---
title: "send-slack-user macro"
canonical: "https://support.appfire.com/space/CDML/905609369/send-slack-user%20macro"
format: markdown
---
> Macro (toc)

## Overview [v7.3.0+ Data Center]

> Macro (excerpt)
> 
> Sends a Slack message to a specified user.
> 
> > ℹ️ This feature is an integration with the [Appfire Docs+](https://appfire.atlassian.net/wiki/spaces/CDML/pages/870842429).

The `send-slack-user` macro sends a Slack message to one or more specified users.

## Where to use it?

Optional.

One or more `send-slack-user` macros can be put in a [trigger macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649859133).

> 📝 [Appfire Docs+](https://appfire.atlassian.net/wiki/spaces/CDML/pages/870842429) must installed and configured in the instance and connected to a Slack workspace.

## Parameters

| Parameter | Required | Default | Notes |
| --- | --- | --- | --- |
| macro body |  |  | The message to display.<br>- plain text<br>> ℹ️ Accepts [value references](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649694302) including metadata value references<br>The value reference values are rendered in the message body e.g. @pagetitle@ is rendered as the current page name. |
| `user` | :check_mark: |  | Comma-separated list of Confluence user names or user group names<br>- user=user1, user2,user3
- user=groupname1, groupname2<br>> ℹ️ Accepts [value references](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649694302) for example user=@creator@, @user@ |
| `subject` |  |  | Slack message subject to display.<br>- plain text<br>> ℹ️ Accepts [value references](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649694302) including metadata value references<br>The value reference values are rendered in the message subject e.g. @pagetitle@ is rendered as the current page name. |

## Example

The example sends a Slack message on a page approval event in the approval named **Review.**

The slack message is sent to the following users in Slack

- the current user (using the @user@ value reference) - who is the user who approved the **Review**
- the page author (using the @creator@ value reference)

![image](media://7d1de934-1a99-480b-929c-3eb40bdd1731)

##### Markup

```plaintext
{workflow:name=my workflow}
    {state:In Progress|approved=Approved}
        {approval:Review|assignable=true}
    {state}
    {state:Approved|final=true|updated=In Progress|hideselection=true}
    {state}
    {trigger:statechanged|state=Approved}
        {send-slack-user:user=@creator@|subject=:white_check_mark: Page approved: @pagetitle@}
        :unicorn_face: Congratulations, this [page|@page@] has been approved!!
        @page@
        Approved by @user@ on @Review>approvaldate@.
        Comment: @Review>approvalcomment@
        {send-slack-user}
    {trigger}
{workflow}
```

##### Markup editor

![cdmdc_markupeditor_send-slack-user_trigger.png](media://b3e5e3a8-198f-4c21-a46c-73972ee76b5b)

## See Also

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

- [Notifications](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649957056)
- [trigger macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649859133)
- [Edit the workflow using workflow builder](https://appfire.atlassian.net/wiki/pages/createpage.action?spaceKey=cdml&title=Edit%20the%20workflow%20using%20workflow%20builder&linkCreation=true&fromPageId=905609369)

**[Integration Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649396230)**

- [Appfire Docs+ Slack Integration](https://appfire.atlassian.net/wiki/spaces/CDML/pages/870842429)