Seamless Integration: Connecting WhatsApp via Baat.ai in Easy Steps
![image.png](https://static.wixstatic.com/media/2b66b2_1c3de4e7406d45a6a7a0252a99c2514d~mv2.png/v1/fill/w_720,h_360,al_c,lg_1,q_85,enc_avif,quality_auto/image.png)
Complete Guide: Integrating WhatsApp Cloud API with Baat.ai
In the era of seamless digital communication, the integration of WhatsApp Cloud API with Baat.ai opens up an array of exciting opportunities. No longer bound by the constraints of external providers, this integration offers a streamlined and comprehensive messaging experience for businesses. Let's dive into a step-by-step guide on how to smoothly connect WhatsApp Cloud API with Baat.ai:
Step 1: Set Up Your Facebook Account
​
Begin by ensuring you have an active Facebook account. If not, the process of registering is straightforward. Simply input your login credentials, followed by email confirmation.
Step 2: Enhance Security with 2FA
​
Prioritize the security of your Facebook account by enabling two-factor authentication (2FA) here - https://www.facebook.com/settings?tab=security . This ensures an added layer of protection against unauthorized access.
![Facebook 2 factor Authentication](https://static.wixstatic.com/media/fd628f_8b0c87ececf4435c8915994a1eedeb2f~mv2.png/v1/fill/w_804,h_391,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/Screenshot%202023-08-12%20at%2010_40_58%20PM.png)
![image_edited.jpg](https://static.wixstatic.com/media/2b66b2_34a450b1e8f0447997443160ecf79f3e~mv2.jpg/v1/crop/x_0,y_123,w_1920,h_993/fill/w_780,h_403,al_c,q_80,usm_0.66_1.00_0.01,enc_avif,quality_auto/image_edited.jpg)
Step 3: Register as a Developer
​
Forge ahead by registering as a developer. Create a Meta for Developers account here - https://developers.facebook.com/async/registration/, and undergo the verification process via SMS or email.
![image.png](https://static.wixstatic.com/media/2b66b2_8a220300706541f4be96d8c9a4ca8ce8~mv2.png/v1/fill/w_702,h_343,al_c,lg_1,q_85,enc_avif,quality_auto/image.png)
Review your email address, and continue and then Opt for the "Developer" role as you set up your account.
![image.png](https://static.wixstatic.com/media/2b66b2_5e828b02984e4784b70cdb5c7f97bd07~mv2.png/v1/fill/w_700,h_343,al_c,lg_1,q_85,enc_avif,quality_auto/image.png)
After Opting Click on "Complete registration".
![image.png](https://static.wixstatic.com/media/2b66b2_0a0ea2f82a98466f85ff7467898ea712~mv2.png/v1/fill/w_698,h_342,al_c,lg_1,q_85,enc_avif,quality_auto/image.png)
Step 4: Initiating Your Facebook App
​
Embark on the creation of your very first Facebook app. Select the app type as "Business". This choice, however, is irreversible post-creation. Proceed by furnishing fundamental details such as the app name and contact email.
![image.png](https://static.wixstatic.com/media/2b66b2_07b9564ac5644e8f982673d2d683e1c6~mv2.png/v1/fill/w_720,h_418,al_c,lg_1,q_85,enc_avif,quality_auto/image.png)
![image.png](https://static.wixstatic.com/media/2b66b2_789b11a7e58c4276952dc3e4152b7521~mv2.png/v1/fill/w_720,h_389,al_c,lg_1,q_85,enc_avif,quality_auto/image.png)
![image.png](https://static.wixstatic.com/media/2b66b2_5f1fb8a3990344cc8479e20ba83be679~mv2.png/v1/fill/w_720,h_389,al_c,lg_1,q_85,enc_avif,quality_auto/image.png)
![image.png](https://static.wixstatic.com/media/2b66b2_591789a4960248eebbfdd4184ca4e2ea~mv2.png/v1/fill/w_720,h_389,al_c,lg_1,q_85,enc_avif,quality_auto/image.png)
![image.png](https://static.wixstatic.com/media/2b66b2_ae1242f84bcf4b2db99fa97cedfc231d~mv2.png/v1/fill/w_720,h_389,al_c,lg_1,q_85,enc_avif,quality_auto/image.png)
![image.png](https://static.wixstatic.com/media/2b66b2_a71860d00e7f466799c12fe06ce035b5~mv2.png/v1/fill/w_720,h_414,al_c,lg_1,q_85,enc_avif,quality_auto/image.png)
Step 5: The Meta Business Account
​
Within your app's tile, delve into the Meta business account. At this juncture, you're poised to initiate the process of creating a Meta business account if it doesn't already exist. If it does, you have the option to select an existing one or create a new account.
In the left menu bar, navigate to "Getting Started". Here, you'll be able to add a phone number to your business account. Keep in mind that the verification of the phone number is a crucial step in this process. Facebook scrutinizes the provided URL; any discrepancies can result in not just the business but the associated number getting blocked. If you're without a business website, fear not; you can use a URL from your social media profile page.
Step 6: Obtain the Access Token
The access token is the final piece required to complete the channel connection puzzle. Access business.facebook.com/settings and choose the specific business under which your application was created. Subsequently, select "Users", followed by "System Users", and then click "Add". Set the user type as "Admin" (mandatory) and assign the name "Baat.ai". This facilitates easy identification of the system you're integrating with. With the click of the "Create system user" button, the user creation process is initiated.
Step 7: Generating the Token
The generation of a new token involves several steps. Click "Generate New Token" and opt for the previously created application. Specify permissions, particularly focusing on "whatsapp_business_messaging" and "whatsapp_business_management". Once these selections are made, hit "Generate Token". Voila! Your Access Token is now at your disposal.
Step 8: Integrating with Baat.ai
At this stage, you're primed to integrate WhatsApp Cloud API with Baat.ai. In your Baat.ai platform, navigate to "Manage" followed by "Channels". Look for WhatsApp Plus and proceed to "Connect" and "Subscribe Now". Choose your desired license period and complete the checkout process.
Step 9: Final Configuration
Upon successfully subscribing, you will need to enter specific data. This includes the Phone Number ID, WhatsApp Business Account ID, and the Access Token obtained earlier. Once these details are entered, click "Connect".
Step 10: Verification and Webhook Configuration
It's a good practice to verify the integration. Head to https://developers.facebook.com/apps/ and navigate to WhatsApp > Configuration > Configure a webhook. Here, enter the data provided by Baat.ai – URL and Verify Token – and click "Verify and save".
Congratulations, you've successfully integrated the WhatsApp Cloud API Channel with Baat.ai! Now, send your inaugural message to your business number to ensure all systems are functioning optimally.