# Clay

> Send new leads to a Clay table to enrich and route them.

Every section below does the same job: in the dashboard (Guide), from your code (API) or through an AI assistant (MCP).

## Guide — In the dashboard

Source: /docs/automations/clay

Each lead that matches the automation is added as a row of a Clay table, through the table's webhook. Clay can then enrich it further and send it on.

1. **In Clay**, add a webhook source to your table and copy its URL.
2. **Automations → New automation**, then **Send to Clay**, and paste the URL.
3. **Choose** every lead or only leads with a suggested contact, then **Save**.


---

## API — From your code

Source: /docs/automations/clay/api

Authenticated with `?privateKey=YOUR_KEY` (see [Authentication](/docs/authentication)).

<Endpoints ops={["POST /admin/automations", "GET /admin/automations", "PATCH /admin/automations/{id}"]} />

<ApiPlayground
  method="post"
  path="/admin/automations"
  tool="create_automation"
  args={`{
  "name": "Docs example: send-to-clay",
  "isActive": true,
  "website": "64b7f0a1c2d3e4f5a6b7c8d9",
  "when": "new-lead-is-identified",
  "then": "send-to-clay",
  "interval": "immediately",
  "actions": {
    "sendToClay": {
      "url": "https://api.clay.com/v3/sources/webhook/your-table-id",
      "whenToPush": "every-time"
    }
  }
}`}
/>

### Use case: Only leads Clay can work with [#use-case-only-leads-clay-can-work-with]

Set `whenToPush` to `only-with-suggested-contacts` so only leads with a person to enrich are sent.


---

## MCP — AI agents

Source: /docs/automations/clay/mcp

Connect the [MCP server](/docs/mcp#quickstart), then just ask.

<Tools names={["create_automation"]} />

### Use case [#use-case]

> Send every new lead with a contact to my Clay table.

<McpToolCall name="create_automation">

```json
{
  "websiteId": "64b7f0a1c2d3e4f5a6b7c8d9",
  "name": "Leads to Clay",
  "trigger": {
    "then": "send-to-clay",
    "actions": {
      "sendToClay": {
        "url": "https://api.clay.com/v3/sources/webhook/your-table-id",
        "whenToPush": "only-with-suggested-contacts"
      }
    }
  },
  "actions": []
}
```

</McpToolCall>

