> ## Documentation Index
> Fetch the complete documentation index at: https://watermelon.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# WhatsApp

> When you connect WhatsApp to Watermelon, your AI Agent can automatically handle incoming WhatsApp messages. All conversations will appear in your Watermelon Inbox.

## **Before you start**

Before connecting WhatsApp to Watermelon, there are a few things you should have prepared.

### Facebook Business ID

Make sure you have a **Facebook Business ID**, as WhatsApp Business API runs through Meta.

Below you can find how to check if you have a Facebook Business ID, and if not, how to create a Facebook Business Manager account.

<Tabs>
  <Tab title="Check if you have a Facebook Business ID">
    1. Go to [**business.facebook.com**](http://business.facebook.com) and log in with your personal Facebook account.
    2. If you already have a Business Manager, it will appear in your dashboard.
    3. Click **Business Settings** in the left menu.
    4. Open **Business Info** at the top-left corner.
    5. Your **Business Manager ID** will be listed here if a Business Manager exists.

    If you do not see a Business Manager or Business ID, you likely do not have one yet. Then, create one (see next tab).
  </Tab>

  <Tab title="Create a Business Manager account">
    1. Go to [**business.facebook.com/create**](https://business.facebook.com/create).
    2. Log in with your personal Facebook account.
    3. Enter your **business name**, your **own name**, and a **business email address**.
    4. Follow the prompts to complete the setup.
    5. Once finished, Facebook will generate a new **Business Manager ID**.

           <Note>
             Verification may take up to **48 hours**. During that time, you can connect up to **two** WhatsApp numbers to Watermelon.
           </Note>
  </Tab>
</Tabs>

### Disconnect from other tools

If your WhatsApp number is currently used privately or through another tool, you must remove that connection first. Make sure the number is not connected to:

* WhatsApp Business API
* WhatsApp Business App
* A personal WhatsApp account

<Note>
  After linking, you can only use this number for WhatsApp via Watermelon, not via your mobile app or any other tool.
</Note>

## Connecting WhatsApp

Follow the steps below to connect WhatsApp to Watermelon:

<Steps>
  <Step title="Open WhatsApp in Apps">
    <Frame>
      <img src="https://mintcdn.com/watermelon/7gVL1zN2NgHDg4dn/images/integrations/whatsapp/apps-channels-whatsapp.png?fit=max&auto=format&n=7gVL1zN2NgHDg4dn&q=85&s=39cc01c08680df623d2a4788b75dcace" alt="Apps Channels Whatsapp Pn" width="2876" height="1558" data-path="images/integrations/whatsapp/apps-channels-whatsapp.png" />
    </Frame>
  </Step>

  <Step title="Connect WhatsApp">
    Click **Connect**.

    <Frame>
      <img src="https://mintcdn.com/watermelon/7gVL1zN2NgHDg4dn/images/integrations/whatsapp/whatsapp-connect.png?fit=max&auto=format&n=7gVL1zN2NgHDg4dn&q=85&s=44c023794a8558ff6c4fae3f1ab1309c" alt="Whatsapp Connect Pn" width="2874" height="1556" data-path="images/integrations/whatsapp/whatsapp-connect.png" />
    </Frame>
  </Step>

  <Step title="Setup WhatsApp">
    Watermelon uses **360Dialog** to verify and activate your WhatsApp Business API account.

    A pop-up will appear to guide you through the setup.

    <Frame>
      <img src="https://mintcdn.com/watermelon/7gVL1zN2NgHDg4dn/images/integrations/whatsapp/whatsapp-pop-up.png?fit=max&auto=format&n=7gVL1zN2NgHDg4dn&q=85&s=6dd5737289a8f79dd9a8eca0cff6879d" alt="Whatsapp Pop Up Pn" width="2874" height="1556" data-path="images/integrations/whatsapp/whatsapp-pop-up.png" />
    </Frame>
  </Step>

  <Step title="Log in to your 360Dialog account or create a new account">
    <Tabs>
      <Tab title="If you already have a 360dialog account">
        After logging in to your account, follow these steps:

        <Steps>
          <Step title="Select the number you want to connect and click Authorize">
            <Frame>
              <img src="https://mintcdn.com/watermelon/7gVL1zN2NgHDg4dn/images/integrations/whatsapp/whatsapp-select-number.png?fit=max&auto=format&n=7gVL1zN2NgHDg4dn&q=85&s=0dfbeb078ae2c1f6422899f163fb1011" alt="Whatsapp Select Number Pn" width="1442" height="782" data-path="images/integrations/whatsapp/whatsapp-select-number.png" />
            </Frame>

            Then click **Authorize**.
          </Step>

          <Step title="Partner application authorized">
            You'll get a confirmation that the partner application is authorized. You will return to Watermelon automatically. Until then, do not close the window.

            <Frame>
              <img src="https://mintcdn.com/watermelon/7gVL1zN2NgHDg4dn/images/integrations/whatsapp/whatsapp-partner-application-authorized.png?fit=max&auto=format&n=7gVL1zN2NgHDg4dn&q=85&s=9df8620acb5d5c1634dcbc35bf4c15cb" alt="Whatsapp Partner Application Authorized Pn" width="2870" height="1556" data-path="images/integrations/whatsapp/whatsapp-partner-application-authorized.png" />
            </Frame>
          </Step>

          <Step title="Successfully linked">
            You'll get a notification that the number is successfully linked to your Watermelon account.

            <Frame>
              <img src="https://mintcdn.com/watermelon/7gVL1zN2NgHDg4dn/images/integrations/whatsapp/whatsapp-successfully-linked.png?fit=max&auto=format&n=7gVL1zN2NgHDg4dn&q=85&s=9a7898717019117745ead96e42ae94f9" alt="Whatsapp Successfully Linked Pn" width="2874" height="1564" data-path="images/integrations/whatsapp/whatsapp-successfully-linked.png" />
            </Frame>
          </Step>
        </Steps>
      </Tab>

      <Tab title="If you need to create a new account">
        If you need to create a new 360Dialog account, first ensure that:

        * Your number can receive SMS or voice calls.
        * There is no phone menu blocking calls.

        Then, follow these steps:

        <Steps>
          <Step title="Create a new account">
            Add your email address and password and click **Continue**.

            <Note>
              **Save your login details**. You will need them later to edit your WhatsApp Business profile.
            </Note>

            <Frame>
              <img src="https://mintcdn.com/watermelon/7gVL1zN2NgHDg4dn/images/integrations/whatsapp/whatsapp-create-new-360-account.png?fit=max&auto=format&n=7gVL1zN2NgHDg4dn&q=85&s=54012637c51c33a95a8f242e80e8cb0a" alt="Whatsapp Create New 360 Account Pn" width="2870" height="1562" data-path="images/integrations/whatsapp/whatsapp-create-new-360-account.png" />
            </Frame>
          </Step>

          <Step title="Verify your email">
            You'll receive an email from 360Dialog. In there, click the **Verify Your Account** button.
          </Step>

          <Step title="Add Company details">
            * Select whether the organization you represent is a **Company** **or** **Government agency**.
            * Add your own **Full Name** (first and last name).
            * Fill in your official **Company Name**.
            * Choose a **Country** from the list.
            * Select you're not a robot.
            * Click **Create account**.

            <Frame>
              <img src="https://mintcdn.com/watermelon/7gVL1zN2NgHDg4dn/images/integrations/whatsapp/whatsapp-360-account-add-company-details.png?fit=max&auto=format&n=7gVL1zN2NgHDg4dn&q=85&s=fa948f252b38d533d4a3fe075eb0dd56" alt="Whatsapp 360 Account Add Company Details Pn" width="2878" height="1562" data-path="images/integrations/whatsapp/whatsapp-360-account-add-company-details.png" />
            </Frame>
          </Step>

          <Step title="Confirm the status of the WhatsApp number">
            Select the number is not connected to WhatsApp Business API, WhatsApp Business App nor a personal WhatsApp account. Then, **Confirm number details**.

            <Frame>
              <img src="https://mintcdn.com/watermelon/7gVL1zN2NgHDg4dn/images/integrations/whatsapp/whatsapp-360-account-about-your-number.png?fit=max&auto=format&n=7gVL1zN2NgHDg4dn&q=85&s=ab4d118242da71fbf050b54e4ae54721" alt="Whatsapp 360 Account About Your Number Pn" width="2874" height="1560" data-path="images/integrations/whatsapp/whatsapp-360-account-about-your-number.png" />
            </Frame>
          </Step>

          <Step title="Start Meta's Embedded Signup">
            Read through the steps and click **Start Embedded Signup**.

            <Frame>
              <img src="https://mintcdn.com/watermelon/7gVL1zN2NgHDg4dn/images/integrations/whatsapp/whatsapp-360-account-start-embedded-signup.png?fit=max&auto=format&n=7gVL1zN2NgHDg4dn&q=85&s=3e7d7db35f4e7afedbfcbdd1b83cd11c" alt="Whatsapp 360 Account Start Embedded Signup Pn" width="2874" height="1560" data-path="images/integrations/whatsapp/whatsapp-360-account-start-embedded-signup.png" />
            </Frame>
          </Step>

          <Step title="Go through all steps">
            A new pop-up will appear. Go through all steps that appear on your screen.

            1. If you already have a Meta Business Manager account, log in with the same personal Facebook account linked to your Business Page.
            2. Choose the Business account you want to link to WhatsApp.
            3. Add your phone number. Enter the phone number you want to connect to WhatsApp Business API.
            4. Verify your number. You’ll receive a **6-digit verification code** via SMS or voice call. Enter the code.
            5. **WhatsApp is connected!** You’ll receive a confirmation when the number is successfully verified. This may take a few minutes.
          </Step>
        </Steps>
      </Tab>
    </Tabs>
  </Step>
</Steps>

<Check>
  You've now connected WhatsApp to Watermelon. Your WhatsApp messages will now show in your Watermelon Inbox and can be answered from here.
</Check>

## Setting up your WhatsApp Business profile

Once your number is connected:

<Steps>
  <Step title="Set up your WhatsApp Business account in the 360Dialog Client Hub">
    * Open the 360Dialog Client Hub and click WhatsApp Business Account in the left menu.
    * Click **Show Details**.
    * Go to **Profile**.
  </Step>

  <Step title="Add your business details">
    * Profile picture (192×192 px)
    * Business name
    * Contact information
    * Short business description
  </Step>

  <Step title="Validate">
    You may receive an email to validate the profile changes.
  </Step>
</Steps>

## **Error messages linking WhatsApp/360Dialog**

While connecting WhatsApp, there's a couple of error messages you can get. Below, you can find these error messages, their reasons and solutions.

* **Error message: Sharing API Key permissions not allowed.**
  * **Reason:** The WhatsApp number is already in use with 360.
  * **Solution:**
    1. Request a partner migration through 360 by following the steps in [this article](https://docs.360dialog.com/docs/insights/partner-change). 
    2. The partner ID for Watermelon is **NqTEl9PA**.
    3. Email [support@watermelon.ai](mailto:support@watermelon.ai) so that we can approve the migration.

       <Note>
         We do not receive an automatic notification about this. For a quick resolution, it is essential to contact us directly.
       </Note>
* **Error message: Number was not set up correctly.**
  * **(Possible) reason**: The WhatsApp number is still linked to the WhatsApp Business App. This prevents the number from being registered on the WhatsApp Business API.
  * **Solution**:
    1. Remove the number from the WhatsApp Business App.
    2. Once the number has been successfully removed, you can proceed with registering it as a new number on the WhatsApp Business API (via Watermelon).
    3. After that, you can link WhatsApp.
* **Error: Failed to get WhatsApp commerce settings**
  * **(Possible) reason:** The integration has not been created for this number, which is why this error appears. Most likely, an incorrect flow was followed (for example, a migration instead of adding the number as new).
  * **Solution:**
    1. Contact 360Dialog via their chat.
    2. Submit a request to remove the number from the system.
    3. You will receive a notification once this has been completed.
    4. You can onboard the number again.

<Note>
  We notice that Meta regularly introduces changes and bugs on their end. This means that certain steps in this Help Center article may not always fully match what you see in practice.

  If something does not work as expected or you cannot complete the steps, **please contact our Support team**. We are happy to help you get everything set up correctly.
</Note>
