> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-ia-custom-database-connections.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# WhatsApp

> メッセージを送信するためにWhatsAppフローアクションを構成する方法を説明します。

## Vault接続を構成する

WhatsAppアクション用にVault接続を構成するには、 **［Token（トークン）］** が必要です。

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-ia-custom-database-connections/9LsP4aA6Jw27uQQP/docs/images/ja-jp/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?fit=max&auto=format&n=9LsP4aA6Jw27uQQP&q=85&s=5da191f16be6e1eaddb8d0f16c8433bc" alt="Dashboard > Actions > Forms > Flows > actions > WhatsApp" data-og-width="1404" width="1404" data-og-height="545" height="545" data-path="docs/images/ja-jp/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-docs-ia-custom-database-connections/9LsP4aA6Jw27uQQP/docs/images/ja-jp/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=280&fit=max&auto=format&n=9LsP4aA6Jw27uQQP&q=85&s=58829ca2fe971338b436249fd49f3490 280w, https://mintcdn.com/docs-dev-docs-ia-custom-database-connections/9LsP4aA6Jw27uQQP/docs/images/ja-jp/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=560&fit=max&auto=format&n=9LsP4aA6Jw27uQQP&q=85&s=ed9046e28483e3f30d0e837f6b93c3ef 560w, https://mintcdn.com/docs-dev-docs-ia-custom-database-connections/9LsP4aA6Jw27uQQP/docs/images/ja-jp/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=840&fit=max&auto=format&n=9LsP4aA6Jw27uQQP&q=85&s=61404644db8cfe263c2c287151cfa70f 840w, https://mintcdn.com/docs-dev-docs-ia-custom-database-connections/9LsP4aA6Jw27uQQP/docs/images/ja-jp/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=1100&fit=max&auto=format&n=9LsP4aA6Jw27uQQP&q=85&s=355e43671194976962cab884600a8907 1100w, https://mintcdn.com/docs-dev-docs-ia-custom-database-connections/9LsP4aA6Jw27uQQP/docs/images/ja-jp/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=1650&fit=max&auto=format&n=9LsP4aA6Jw27uQQP&q=85&s=d9a3757779d4b06ed5a1742103b95a06 1650w, https://mintcdn.com/docs-dev-docs-ia-custom-database-connections/9LsP4aA6Jw27uQQP/docs/images/ja-jp/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=2500&fit=max&auto=format&n=9LsP4aA6Jw27uQQP&q=85&s=588d17c40ea55e5a4b525accbae26d20 2500w" />
</Frame>

トークンの生成方法については、「[WhatsAppに認可トークンを使用する](https://developers.facebook.com/blog/post/2022/12/05/auth-tokens/)」をお読みください。

## メッセージを送信する

メッセージを送信します。

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-ia-custom-database-connections/VAQRNVaGyGyS8kva/docs/images/ja-jp/cdy7uua7fh8z/5zZPQw5KKYwBqxbR9jF1wZ/edba085456e3536f5167ff4c21bea77c/whatsapp.png?fit=max&auto=format&n=VAQRNVaGyGyS8kva&q=85&s=5961d0ab65667a7a565fd300e8aaa2f7" alt="" width="1404" height="1094" data-path="docs/images/ja-jp/cdy7uua7fh8z/5zZPQw5KKYwBqxbR9jF1wZ/edba085456e3536f5167ff4c21bea77c/whatsapp.png" />
</Frame>

### 入力設定

| パラメーター                               | 説明                                                                                                                                                                                                                                                                |
| ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Sender phone ID（送信者の電話ID）（必須）        | 送信者の電話IDは、[FacebookビジネスマネージャーのWhatsAPP設定](https://developers.facebook.com/apps)で確認できます。これは電話番号ではないことに注意してください。                                                                                                                                                    |
| Recipient phone number（受信者の電話番号）（必須） | 受信者の電話番号（[E.164形式](https://en.wikipedia.org/wiki/E.164)）。                                                                                                                                                                                                         |
| Message type（メッセージタイプ）（必須）           | ドロップダウンメニューから以下のメッセージタイプを選択します： <ul> <li>Audio（音声）</li> <li>Contacts（連絡先）</li> <li>Document（ドキュメント）</li> <li>Image（画像）</li> <li>Interactive（インタラクティブ）</li> <li>Location（ロケーション）</li> <li>Sticker（スティッカー）</li> <li>Template（テンプレート）</li> <li>Text（テキスト）</li> </ul> |
| Message object（メッセージオブジェクト）（必須）      | メッセージオブジェクトのコンテンツは選択したメッセージタイプによって異なります。詳しくは、[Messages](https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages)でお読みください。                                                                                                                      |

### 出力設定

予期されるすべてのステータスコードについては、[Facebookのドキュメント](https://developers.facebook.com/docs/whatsapp/cloud-api/support/error-codes)を参照してください。
