# How to Add Custom Webhooks

## Overview

Automation Studio supports custom webhook integrations for connecting to any 3rd-party service that accepts HTTP requests.

## Step 1: Get Your Webhook URL

1. Identify the endpoint URL from your 3rd-party service
2. Note any required headers (e.g., Authorization tokens)
3. Determine the HTTP method (GET, POST, PUT, etc.)

## Step 2: Add Integration in Automation Studio

1. Open Automation Studio
2. Click the **🔌 Integrations** button (top-right)
3. Click **+ Add Integration**
4. Select **Custom Webhook** as the type
5. Enter a name (e.g., "Zapier Webhook")
6. Enter the webhook URL
7. Select the HTTP method
8. Optionally add headers (JSON format):
   ```json
   {
     "Authorization": "Bearer your-token",
     "Content-Type": "application/json"
   }
   ```
9. Add a description (optional)
10. Click **Save**
11. Click **Test** to verify the connection

## Step 3: Use in Flows

1. In Flow Builder, add an **HTTP Request** node
2. In the node configuration:
   - Select your integration from the "Named Integration" dropdown
   - The URL and headers will be pre-filled
   - You can override specific fields if needed
3. Configure the request body (if needed)
4. Save and test your flow

## Testing

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

## Common Use Cases

- **Zapier**: Connect to Zapier webhooks
- **IFTTT**: Use IFTTT webhooks
- **Custom APIs**: Connect to your own APIs
- **Notification Services**: Integrate with PagerDuty, Opsgenie, etc.

## Security

- API keys and tokens are stored securely
- Headers are encrypted at rest
- Integrations are scoped to your organization
- Never share integration credentials

