# Whatsapp ChatBot Installation

This documentation explains step-by-step how to configure the Meta WhatsApp Business API and integrate it into the Autom Mate platform. Each step is detailed and supported with warnings, tips, and recommendations where critical.

***

#### 🔹 1. Creating a Meta Developer Account

* Go to the [Meta for Developers](https://developers.facebook.com) website.
* Log in with your Facebook account.
* Click “Get Started” or “My Apps” in the top-right corner of the page to activate your developer account.

💡 **Tip**: You may be required to verify your email and answer a few basic questions to activate the developer account.

***

#### 🔹 2. Creating a Meta Business (Business Portfolio)

* Go to [Meta for Business ](https://business.facebook.com).
* Create a new Business Account by entering a name, business type, and address details.
* Connecting a business portfolio to your app is only necessary for certain products and permissions. When you request access to these, you will be asked to link a business portfolio.
* You may need to verify your business.

⚠️ **Warning**: A verified Business Account may be required to use the WhatsApp Business API. However, verification is not mandatory for initial setup and testing.

🟡 **Note**: After this step, you will be able to link your app to this Business account (see Step 3).

***

#### 🔹 3. Creating an App

* Go to [Meta for Developers](https://developers.facebook.com) and go to apps page then click to the “Create App” button.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/f12d35570cc9523c523a946f930fd06c325ae481.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="227" width="417">

* Enter the **App Name** and **Contact Email**.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/2418a8b51d082c4862834bd7673838c310c6036a.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="155" width="490">

* In the Use Case selection screen, set the filter to **All** and select **Other** at the bottom of the list.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/2e31ef301aebdde5f1a2743690158cd8511a3be2.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="282" width="605">

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/e1a4a2ab2bd74c75482ab674a6743d26cef83ed0.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="284" width="605">

* Choose **Business** as the App Type.
* Once you proceed, the Business Account you created in Step 2 will be listed — select it to connect the app to your Business account.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/186555b1d4b2e98eba45f73c2729c9df7046467a.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="189" width="605">

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/53d1227d065b4c53cb0c468df4955952662d3928.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="304" width="605">

💡 **Tip**: All future permission and access operations will be managed through this Business account. Make sure to select the correct one.

***

#### 🔹 4. Creating a System User and Granting Permissions

* In Business Manager, go to the left menu: **Users > System Users**.
* Click **Add** to create a new System User and assign the **Admin** role.
* Select the created user and click **Assign Assets** to link the previously created app to this user.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/a8fb0f684c201cd80988b7a2d2e32a2331192f81.jpeg" alt="A screenshot of a computer AI-generated content may be incorrect." height="330" width="605">

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/15c793fd32e2eaaee648ddfaf41658a61d5409fc.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="314" width="605">

⚠️ **Warning**: A system user cannot be created without an app. Therefore, app creation comes before this step.

***

#### 🔹 5. Creating a Permanent Access Token

* On the System User page, click **Generate Token**.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/bb4b0ad3aa5f6c97f8534acdaaeab3bfa2264501.jpeg" alt="A screenshot of a computer AI-generated content may be incorrect." height="330" width="605">

* Select your app.
* Set **Token Expiry** to **Never**.
* Be sure to select the following permissions:
  * `whatsapp_business_management`
  * `whatsapp_business_messaging`
  * `whatsapp_business_manage_events`

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/7a31dc0dae3b4ffdafbbf4e83b5871d3e3d1d22a.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="379" width="605">

💡 **Tip**: Select only the required permissions. Unnecessary ones may cause your app to be rejected or flagged by Meta.

⚠️ **Warning**: Save this token! You won’t be able to view it again. It will be used inside the Autom Mate Vault.

***

#### 🔹 6. Setting the Privacy Policy URL

* In the developer panel, go into your app.
* Go to **Settings > Basic** on the left menu.
* Paste a valid privacy policy URL into the **Privacy Policy URL** field.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/81076ca30b837f76276ab7c56f42d944c43d8e5a.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="329" width="605">

🟡 **Note**: Leaving this field empty may prevent your app from accessing certain permissions as per Meta’s policies.

***

#### 🔹 7. Starting WhatsApp API Setup

* On your developer app’s homepage, go to **Set Up > WhatsApp** tab.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/900e165176952f754901f25f67cc3b268acc9cf4.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="371" width="605">

* Click the **Start Using the API** button.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/26375fe08bdc1b84a1085ecfc838dc21dbf2e2fa.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="203" width="605">

***

#### 🔹 8. Adding and Verifying a Phone Number

* The system will direct you to the **API Setup** screen.
* Add a new phone number here.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/4bc8d0c5b74569383445ad0ef89fb15eb873c7a2.jpeg" alt="A screenshot of a computer AI-generated content may be incorrect." height="352" width="605">

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/6b4763a807c6a5c6b091a3616be1dffbea70f2d4.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="322" width="605">

⚠️ **Warning**: The number must not have been used in any other WhatsApp account. If it has, that account must be deleted first.

* Complete the number verification process.

***

#### 🔹 9. Retrieving the Phone Number ID

* The verified number will be listed in the dropdown menu under the **From** field.
* The **Phone Number ID** listed under the number will be used in the Autom Mate Vault.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/3bea3f09f5a8eacd3446fe55473f31bd341f5a8f.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="308" width="605">

💡 **Tip**:\
This ID won’t work with test numbers. It must be a verified, real number.

***

#### 🔹 10. Creating App Credentials in Autom Mate Vault

**Required fields:**

* **Token**: The permanent token created in Step 5.
* **Phone Number ID**: The number ID obtained in Step 9.

🟢 **Result**: You’re now ready to connect WhatsApp Business API with Autom Mate via the connector.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/9d873d4a910364ae3829e9f16d96e8ba91fa9f68.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="541" width="605">

***

#### 🔹 11. Setting Up the Webhook

* In the developer panel, go to your application and navigate to the **Webhooks** section.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/4b2e877c228e408f6e87be95af951d4d60f07d74.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="318" width="605">

* For **Callback URL**, select the webhook trigger type in Autom Mate and paste the webhook URL.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/b9ca87baf3a6649703a841c004902ae07b3f1986.png" alt="image" height="410" width="690">

* Create a **Verify Token** and use the same value both in Meta and Autom Mate.
* Click **Verify and Save**.
* Finally, subscribe to the **messages** topic.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/8e2291c9a06f645ab867b401d23e228158db5482.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="198" width="605">

⚠️ **Warning**: The Callback URL must work over **HTTPS** and be publicly accessible.

***

#### 🔹 12. Adding Payment Information

* In Business Manager, go to the **WhatsApp Accounts** section.
* Select your registered phone number.
* Under **Payment Methods** at the bottom, enter a valid payment method.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/4e5750cd7ac52fa2fd3bd245956c5f02576eb5c3.jpeg" alt="A screenshot of a computer AI-generated content may be incorrect." height="331" width="605">

🟡 **Note**: Meta allows test usage in some regions, but for live usage, a payment method is mandatory.

***

#### 🔹 13. Registering the Number via Autom Mate

* Create an Autom in Autom Mate.
* Add a **Restful Web Services > POST** action.

🔧 **Settings**:

**URI**:\
`https://graph.facebook.com/vXX.X/<PhoneNumberID>/register`

**Headers**:

```
Authorization: Bearer <Permanent Token>
Content-Type: application/json
```

**Body**:

```
{
  "messaging_product": "whatsapp",
  "pin": "123456"
}
```

* Run the Autom to successfully register your number to the Meta system.

<img src="https://canada1.discourse-cdn.com/flex027/uploads/autommate/original/1X/3b83c45080102aca094ccff46af8228330dd5519.png" alt="A screenshot of a computer AI-generated content may be incorrect." height="320" width="433">

***

#### 🧩 Post-Integration Checklist

✅ Token is permanent and securely stored\
✅ Phone Number ID obtained correctly\
✅ App Credentials added to Autom Mate\
✅ Webhook and message topics activated\
✅ Payment information completed\
✅ Register process completed successfully

***

**After completing all configuration steps**, test your **WhatsApp connection** as shown in the video below. This ensures that the integration has been successfully established.

🧪 **If you encounter any errors during the test** or experience issues such as messages not being delivered, please **let us know in the comments section**. Our community and support team will be happy to assist you.

📌 **Note:** Make sure your API keys are correctly configured, your app is live in the Meta Developer Console, and all required permissions have been granted.

***

**WhatsApp Business API Integration Test – Hello World Message via Autom Mate**

This video demonstrates a basic integration test using the Meta WhatsApp Business API within the Autom Mate platform. It showcases the process of sending a simple “Hello World” message and receiving a response through the integration.

📺 Click to watch on YouTube: [WhatsApp Guide](https://www.youtube.com/watch?v=rhBeK5VVwc8)

<https://youtu.be/rhBeK5VVwc8?si=L-zf_169Gsvk1uLm>


---

# 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.autommate.com/userguide/installation-setup/app-installations/whatsapp-chatbot-installation.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.
