> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.casestudies.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.casestudies.dev/_mcp/server.

# n8n

> Self-hosted enrichment workflows with n8n.

## Setup

1. Add an **HTTP Request** node
2. Configure:
   * **Method**: GET
   * **URL**: `https://api.casestudies.dev/v1/enrich/={{ $json.domain }}`
   * **Authentication**: Header Auth
   * **Header Name**: `X-API-Key`
   * **Header Value**: Your API key
3. Connect to your CRM node to update the contact

## Full workflow

```
Trigger (CRM webhook / schedule)
  → HTTP Request (enrich)
  → IF (found == true)
    → Update CRM contact
  → ELSE
    → Skip
```

## Tips

* n8n can be self-hosted so your data never leaves your infrastructure
* Use the IF node to handle leads with no enrichment data
* Add error handling for rate limits (429 responses)