> 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/channel/whatsapp.md).

# Whatsapp

目前版本需要自行註冊產品

首先，前往新增產品設定Whatsapp，然後跟隨下面步驟即可

<figure><img src="/files/p3pZXe8D0qVY7hnQVve5" alt=""><figcaption><p>前往development 建立whatsapp</p></figcaption></figure>

<figure><img src="/files/d5oSUUnyiurWcGqeW4aE" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/HJYKi1ylmTjl6onCeb9c" alt=""><figcaption></figcaption></figure>

若要測試使用測試電話號碼即可，測試電話號碼要填寫收件人電話號碼該用戶才可以接收到訊息，紀錄一下電話號碼編碼以及Whatsapp Business帳號編號

<figure><img src="/files/ffu4F15xt9lRg9unsPqb" alt=""><figcaption></figcaption></figure>

上面的存取權杖是暫時，大約24小時候會過期，接下來教學如何取得永久存取令牌

前往<https://business.facebook.com/settings>，然後找System users點入

<figure><img src="/files/bzXh8P0BS6BCi9kTSEUu" alt=""><figcaption></figcaption></figure>

使用者那邊點選"系統使用者\[system users]"，並按下新增\[Add]

<figure><img src="/files/XrYCBOMTEWtv8PZy3RA8" alt=""><figcaption></figcaption></figure>

並輸入username 和 role 選取admin或employee都可

點擊Assign assets

<figure><img src="/files/5QfG5ZPJ07DKf0t3z4EY" alt=""><figcaption></figcaption></figure>

選擇你要的APP，並將Full control設定為Manage app

<figure><img src="/files/jVjrxQsPPChNzK54z0aE" alt=""><figcaption></figcaption></figure>

新增完畢後，點選Generate New Token即可完成

<figure><img src="/files/golXDRF5QKA8N86QKF7Z" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/dVYdaYTZPme1Fk0cefFg" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/HVi1cgOpqOKMRnJctt8Y" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/kG4kRVXOZhBQMHVJarPw" alt=""><figcaption></figcaption></figure>

取得後的Token，放入下圖\[6]，前面取得的Whatsapp Business帳號編號填寫在\[1]，電話號碼編號在\[2]，\[3]以及\[4]可參考Facebook非代管部分，用於驗證是否來自Whatsapp payload，\[5]則是你可以自己設定驗證碼，越複雜越好。就完成了。

<figure><img src="/files/bIAGykBV3Ol3L4Omdsgg" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.dmflow.chat/channel/whatsapp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
