> ## 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.

![](https://chatling-assets.b-cdn.net/create-ai-agent-1.jpg)

3. Choose `AI Agent` as the type.

> [!NOTE]
>
> To learn the difference between AI Agents and Chatbots, refer to [this page](https://docs.chatling.ai/introduction.md#difference-between-ai-agents-and-ai-chatbots).

![](https://chatling-assets.b-cdn.net/create-ai-agent-2.jpg)

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

![](https://chatling-assets.b-cdn.net/enter-ai-agent-name.jpg)

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

![Deploy](https://chatling-assets.b-cdn.net/deploy-ai-agent.jpg)

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

![Setup WhatsApp for AI Agent](https://chatling-assets.b-cdn.net/click-setup-whatsapp-integration-ai-agent.jpg)

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

> [!NOTE]
>
> Already use this number in the WhatsApp Business app? You can keep your account and continue using the same number in both the app and Chatling. Do not delete your WhatsApp Business account. See [WhatsApp Coexistence](https://docs.chatling.ai/whatsapp/coexistence) for details.

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

![Click Login with Facebook button](https://chatling-assets.b-cdn.net/login-facebook-whatsapp-connection-ai-agent.jpg)

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

![](https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-2.jpg)

10. Select `Get started`.

![](https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-3.jpg)

11. Choose or create a new business profile.

![](https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-4.jpg)

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

![](https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-5.jpg)

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.

![](https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-6.jpg)

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

![](https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-7.jpg)

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.

![](https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-8.jpg)

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.

![](https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-9.jpg)

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.

![](https://chatling-assets.b-cdn.net/connect-whatsapp-to-chatling-10.jpg)

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 includes 1,000 free service messages (replies sent within 24 hours of a customer's message) per phone number each month. After that, Meta charges per message based on the customer's country, so you must add a payment method in your Meta Business Manager to keep replying. These charges are billed by Meta directly to your account, not by Chatling. See [WhatsApp pricing](https://developers.facebook.com/docs/whatsapp/pricing) for details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.