> For the complete documentation index, see [llms.txt](https://docs.dmflow.chat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dmflow.chat/chatbot/publish.md).

# 發布

發布分為**密鑰列表**、**Webhook**以及**發布管理**

**密鑰列表**用於API

**Webhook**用於事件觸發，目前僅有bot:lead事件，可以前往 [如何使用dmflow收集潛在客戶資料](https://www.dmflow.chat/tw/blog/2024-12-how-to-use-dmflow-to-collect-leads) 查看更詳細說明

```
{
  "events": [
    {
      "resource": "bot:lead",
      "action": "add",
      "payload": {
        "email": "test@example.com",
        "username": "TestUser",
        "phone": "0912345678",
        "customs": {
          "birthday": "1995-03-15"
        },
        "timezone": "+08:00"
      }
    }
  ]
}
```

**發布管理:**&#x63A7;制生產版本

<figure><img src="/files/8cush1wQkrckVseSvQdP" alt=""><figcaption></figcaption></figure>
