# How to Connect Slack

## Overview

Automation Studio supports Slack integration through webhook URLs. This allows your flows to send notifications directly to Slack channels.

## Step 1: Create a Slack Webhook

1. Go to [Slack Apps](https://api.slack.com/apps)
2. Click "Create New App" → "From scratch"
3. Name your app (e.g., "Automation Studio")
4. Select your workspace
5. Go to "Incoming Webhooks" in the left sidebar
6. Toggle "Activate Incoming Webhooks" to ON
7. Click "Add New Webhook to Workspace"
8. Select the channel where you want notifications
9. Copy the webhook URL (starts with `https://hooks.slack.com/services/...`)

## Step 2: Add Integration in Automation Studio

1. Open Automation Studio
2. Click the **🔌 Integrations** button (top-right)
3. Click **+ Add Integration**
4. Select **Slack** as the type
5. Enter a name (e.g., "Team Alerts")
6. Paste your webhook URL
7. Optionally add a channel label (e.g., "#alerts")
8. Click **Save**
9. Click **Test** to verify the connection

## Step 3: Use in Flows

1. In Flow Builder, add a **Slack** node (or HTTP node)
2. In the node configuration:
   - Select your integration from the dropdown
   - Or manually enter the webhook URL
3. Configure your message
4. Save and test your flow

## Testing

Use the **Test** button in the Integrations page to send a test message. You should see:
- ✅ **Connected** status if successful
- ⚠️ **Error** status if there's an issue

## Troubleshooting

- **Webhook URL invalid**: Make sure you copied the complete URL from Slack
- **Test fails**: Check that the webhook is still active in Slack
- **No notifications**: Verify the channel name is correct

## Security

- Webhook URLs are stored securely and scoped to your organization
- Never share webhook URLs publicly
- Rotate webhooks if they're exposed

