# Webhooks with your AI assistant (/docs/automations/webhook/mcp)

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

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

## Use case [#use-case]

> Send every new lead to my n8n webhook.

<McpToolCall name="create_automation">

```json
{
  "websiteId": "64b7f0a1c2d3e4f5a6b7c8d9",
  "name": "New leads to n8n",
  "trigger": {
    "then": "trigger-webhook",
    "actions": {
      "sentToWebhook": {
        "url": "https://n8n.example/webhook/leads",
        "whenToPush": "every-time"
      }
    }
  },
  "actions": []
}
```

</McpToolCall>

## Use case [#use-case-1]

> Test my webhook with a sample lead.

<McpToolCall name="test_webhook">

```json
{
  "websiteId": "64b7f0a1c2d3e4f5a6b7c8d9",
  "webhook": "https://n8n.example/webhook/leads"
}
```

</McpToolCall>
