# 發布

發布分為**密鑰列表**、**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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dmflow.chat/chatbot/publish.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
