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

# Create a WhatsApp AI Agent

> Learn how to create a WhatsApp AI agent in Chatling.

The steps below will guide you through the process of creating and connecting your WhatsApp to your **AI Agent** in Chatling.

1. Login to your [Chatling account](https://app.chatling.ai).
2. From the "My agents" page, click the `Create` button.

<img src="https://chatling-assets.b-cdn.net/create-ai-agent-1.jpg" width="600" />

3. Choose `AI Agent` as the type.

<Note>To learn the difference between AI Agents and Chatbots, refer to [this page](/introduction#difference-between-ai-agents-and-ai-chatbots).</Note>

<img src="https://chatling-assets.b-cdn.net/create-ai-agent-2.jpg" width="600" />

4. Enter a name for your Agent and click the `Create agent` button.

<img src="https://chatling-assets.b-cdn.net/enter-ai-agent-name.jpg" width="600" />

5. From your Agent's dashboard, click the `Deploy` button in the sidebar.

<img src="https://chatling-assets.b-cdn.net/deploy-ai-agent.jpg" width="600" alt="Deploy" />

6. Click the `Setup` button under the `WhatsApp` option.

<img src="https://chatling-assets.b-cdn.net/click-setup-whatsapp-integration-ai-agent.jpg" width="600" alt="Setup WhatsApp for AI Agent" />

7. A popup will appear to guide you through the process of connecting your WhatsApp Business account to Chatling.

<Warning>
  Before continuing, note that the phone number you connect must not be in use by a WhatsApp account. If it's in use, you must delete the account from WhatsApp before continuing.

  Here's how to delete a WhatsApp account:

  1. Open the WhatsApp app.
  2. Go to `Settings` > `Account` > `Delete my account`.
  3. Type in your phone number for confirmation and tap on `Delete my account`.

  Once deleted, the phone number can be used to create a WhatsApp Business account.
</Warning>

8. Click the `Login with Facebook` button to continue.

<img src="https://chatling-assets.b-cdn.net/login-facebook-whatsapp-connection-ai-agent.jpg" width="500" alt="Click Login with Facebook button" />

9. The Facebook authentication window will open. Sign in to your Facebook account and click the `Continue` button.

<img src="https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-2.jpg" width="400" />

10. Select `Get started`.

<img src="https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-3.jpg" width="400" />

11. Choose or create a new business profile.

<img src="https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-4.jpg" width="400" />

12. Choose or create a new WhatsApp Business account and profile.

<img src="https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-5.jpg" width="400" />

13. If you chose to create a new profile:

* Enter the required information for the profile.
* When prompted to add a phone number, select `Add a new phone number`. Do not select `Get a free WhatsApp number` as it will not work with Chatling.

<img src="https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-6.jpg" width="400" />

14. Facebook will display the permissions required by Chatling. Review and click the `Continue` or `Confirm` button.

<img src="https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-7.jpg" width="400" />

15. Facebook begins verifying the information you provided. Once it's completed successfully, you should see a message similar to below. Click the `Finish` button.

<img src="https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-8.jpg" width="400" />

16. Go back to Chatling and a message will be displayed that your authentication is being processed. If successful, you should see a message similar to below.

<img src="https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-9.jpg" width="500" />

17. Next, you must enter a 6-digit code for two-factor authentication so your phone number can be registered with WhatsApp.

    If the number already has 2FA enabled, enter the same code you had set up.

<img src="https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-10.jpg" width="400" />

18. Once the phone number is registered successfully, you're all set and your WhatsApp Business account is connected to Chatling. Click the `Close` button to finish the setup process.

<Warning>WhatsApp provides 1,000 free conversations per month. If you reach this limit, you must add a payment method in your Facebook Business Manager to continue sending and receiving messages.</Warning>
