> ## Documentation Index
> Fetch the complete documentation index at: https://help.teable.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 推送通知到 Slack、Discord 或 Teams

> 当表格中发生事件时，向聊天频道发送消息

<Tip>我们推荐直接在 AI 对话中构建自动化示例。只需描述你想要的工作流，AI 会为你完成全部设置，包括触发器、操作、脚本和配置。</Tip>

## 用 AI 创建

打开表格右侧边栏的 AI 对话，告诉 AI 你想要什么。例如：

*"新建高优先级工单时，向 #support Slack 频道发送消息，包含工单标题和描述"*

AI 会自动创建完整的工作流。你可以查看生成的脚本，用真实数据测试，确认无误后启用。

## 前提条件

你需要从聊天平台获取一个 Webhook URL：

* **Slack：** 创建一个 [Incoming Webhook](https://api.slack.com/messaging/webhooks)
* **Discord：** 服务器设置 → 集成 → Webhooks → 新建 Webhook
* **Teams：** 频道 → 连接器 → Incoming Webhook

## 手动设置

1. **创建工作流**，触发器选择 **记录创建时**。
2. 选择你的**工单**表。
3. 添加筛选条件：`优先级` **是** `高`。
4. 点击**测试**。
5. **添加操作** → **HTTP 请求**。
6. 配置：
   * 方法：**POST**
   * URL：你的 Webhook URL
   * Content-Type：`application/json`
   * Body（Slack 格式）：
     ```json theme={null}
     {
       "text": "新的高优先级工单：<工单标题>"
     }
     ```
   * 使用 **+** 按钮动态插入工单标题。
7. 点击**测试**，然后**启用**。

## 适配 Discord

Discord 使用 `"content"` 代替 `"text"`：

```json theme={null}
{
  "content": "新的高优先级工单：<工单标题>"
}
```

## 适配 Teams

Teams 使用 Adaptive Card 格式：

```json theme={null}
{
  "type": "message",
  "attachments": [{
    "contentType": "application/vnd.microsoft.card.adaptive",
    "content": {
      "type": "AdaptiveCard",
      "body": [{ "type": "TextBlock", "text": "新的高优先级工单：<工单标题>" }],
      "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
      "version": "1.2"
    }
  }]
}
```
