# Slack

Use **Slack** when you want a workflow step to post a message to a Slack channel from a connected workspace integration.

## Configuration

| Option                                                                                                                                                                                                                      | Required | Description                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------- |
| Name                                                                                                                                                                                                                        | No       | Label for the step in the workflow canvas.                                                      |
| Integration Authorization                                                                                                                                                                                                   | Yes      | The connected Slack account selected in **Authentication**.                                     |
| Action                                                                                                                                                                                                                      | Yes      | The Slack action. The current editor shows **Send Channel Message**.                            |
| Channel                                                                                                                                                                                                                     | Yes      | Channel name entered in **Channel**.                                                            |
| Message                                                                                                                                                                                                                     | Yes      | Message body entered in **Message**.                                                            |
| When the step fails                                                                                                                                                                                                         | No       | Controls whether the workflow should **Terminate Workflow** or **Continue** if this step fails. |
| Before you configure this step, connect Slack in **Integrations** for your workspace. If no active Slack connection is available, the step shows a warning with a link to **Integrations** instead of the account selector. |          |                                                                                                 |

Use the **Insert Variable** button next to **Channel** and **Message** if either value should come from start inputs or earlier workflow steps.

## Output

This step stores the Slack API response from the posted message as the step output.

Use the full output reference in later steps:

```
{{STEP_IDENTIFIER.output}}
```

If you need a specific field from the returned Slack payload, insert it from the variable picker after a test run:

```
{{step_2.output.some_field}}
```

The available keys depend on the Slack response returned for that message run.

## Example

Open **Integrations** and connect Slack if you have not already done that.

Add **Slack** to your workflow and choose a connected account in **Authentication**.

Keep **Action** set to **Send Channel Message**.

Enter the destination in **Channel**, such as `general`, then write the Slack post in **Message**. You can insert values like `{{step_1.output}}` into the message body.

Click **Run** in the step header to test the message, then review the returned payload in **Output** if you want to pass any of that data to a later step.

## Notes

* This step depends on a connected Slack integration in your workspace.
* The channel field uses the channel name, not a full Slack URL.
* The current editor exposes one Slack action: **Send Channel Message**.

See also: [Integrations](https://docs.fetchhive.com/your-workspace/integrations), [Creating and Editing](https://docs.fetchhive.com/workflows/creating-and-editing), and [Testing and Iteration](https://docs.fetchhive.com/workflows/testing-and-iteration)
