# Slack with your AI assistant (/docs/automations/slack/mcp)

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

<Tools names={["create_automation", "list_slack_channels", "get_slack_message_template", "set_slack_message_template", "send_slack_test_message"]} />

## Use case [#use-case]

> Post every new lead from the US to #sales in Slack.

<McpToolCall name="create_automation">

```json
{
  "websiteId": "64b7f0a1c2d3e4f5a6b7c8d9",
  "name": "New US leads to #sales",
  "trigger": {
    "then": "send-to-slack",
    "actions": {
      "sentToSlack": {
        "sendMessagesTo": "#sales"
      }
    }
  },
  "actions": []
}
```

</McpToolCall>

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

> Send me a test Slack message so I can see how leads look.

<McpToolCall name="send_slack_test_message">

```json
{
  "websiteId": "64b7f0a1c2d3e4f5a6b7c8d9",
  "channelName": "#sales"
}
```

</McpToolCall>
