WhatsApp Cloud API
Set up
Meta frequently updates and redesigns its developer console, so the steps and menu names in this guide may become outdated. If something doesn't match what you see on screen, check Meta's official, always up-to-date documentation: WhatsApp Cloud API β Get Started.
To set up the integration of your agent in WhatsApp Cloud API, you will need the following:
A Meta account registered as a developer in the developers console.
A Business Portfolio in Meta Business β it can be created during app creation if you don't already have one.
An available phone number.
Create a Meta app
Meta redesigned the app creation flow around "use cases". You no longer create a generic 'Other' > 'Business' app and then look for the WhatsApp module in the Dashboard: WhatsApp is selected directly as a use case during app creation.
Access the Meta developers console.
Click on 'Create app'.
Enter the app name and a contact email.
On the use case selection screen, choose 'Connect with customers through WhatsApp' and click 'Next'.
Select an existing business portfolio linked to your Meta Business, or create a new one.
Review the publishing requirements (they may appear empty at this point) and click 'Create app' to finish.
Once created, the app opens directly into the WhatsApp use case view (there is no longer a need to locate the module from a general 'Dashboard').
Add your phone number
In the app's side menu, go to Customize use case > Connect on WhatsApp > Quickstart.
Click on 'Start using the API'.
Connect an existing WhatsApp Business account or create a new one from the same wizard.
Select an available phone number, or click on 'Add a phone number', fill in the details, and validate the link with the WhatsApp Business API account through the confirmation SMS or call.
Generate a Permanent Access Token
Navigate to Facebook Business.
From the side menu, select Users > System Users.
Add a new user with administrator privileges.
In the side menu, go to Accounts > WhatsApp Accounts.
Grant full control permissions to the newly created user.
Return to the System Users section and click on Assign Assets.
Choose the desired application and assign admin permissions.
Once saved, click on Generate New Token.
Select the application, set the expiry to Never, and enable WhatsApp permissions.
Copy the generated authentication token for future use.
Obtain the Phone Number ID
Navigate to Meta developers console.
Access to the created application.
Go to the Customize use case > Connect on WhatsApp > Quickstart (or API Setup) menu section.
Select the linked phone and copy the ID displayed below it (Phone Number ID).
Obtain the application secret key
Navigate to Meta developers console.
Access to the created application.
Go the Settings > Basic Information menu section.
Click show and copy the application secret key.
Connect your app with your agent
Activate integration in 1millionbot platform
Go to the Channels section on the platform.
Activate WhatsApp and click on 'Settings'.
Enter the previously obtained data: Application Secret Key, Permanent Access Token and Phone Number ID
Click on 'Save'.

Activate integration in Meta
Obtain the Callback URL
Go to the 1millionbot platform and click on the 'Info' button in the WhatsApp Cloud channel to get the callback URL.

Configure the Meta Webhook
In the Customize use case > Connect on WhatsApp > Configuration menu section of the Meta developers console, click on 'Edit' in the Webhook section.
Paste the callback URL obtained from the 1millionbot platform and enter the Permanent Authentication Token.
Click 'Save' to apply the changes.
Set permissions
In the same Configuration section, click on 'Manage' next to the Webhook to activate the necessary subscription fields: - messages
Click 'Save' to apply the changes.
Publish Meta app
Now, your application is in development mode, so you can test the agent's operation as long as the phone number you use to interact with the agent belongs to one of the users with access to the application (up to 5 test numbers).
To publish the agent for public interaction, change the mode from development to production and provide all the necessary information (found at the top of the Meta developer console).
Complete your Meta Business Business Verification. It isn't required to publish the app, but it is required to raise the initial messaging limit and unlock higher messaging tiers (see Limitations).
Done! Once published, perform tests to verify the operation of your agent on the provided phone number in WhatsApp. π
β οΈ Important: if you later change your phone number's Display Name and Meta approves the change, the number automatically becomes unregistered and can no longer send or receive messages until it's registered again. Meta explicitly states that this re-registration cannot be done with buttons from the console or WhatsApp Manager: it can only be done through a direct API call.
How to re-register the number after a Display Name change
Find or reset your 6-digit two-step verification PIN in WhatsApp Manager: Settings > WhatsApp Accounts > your account > Settings > WhatsApp Manager > select the number > Settings > Two-step verification > Change PIN.
Make a
POSTrequest to Meta's registration endpoint with your Permanent Access Token, the Phone Number ID, and that PIN:If you don't have a tool to make this request (Postman, cURL...) or a developer to help you, contact 1millionbot support to complete the registration for you.
Meta limits this call to 10 requests per number every 72 hours (error 133016 if exceeded).
Limitations
Initial limit of 250 business-initiated conversations per 24h for new phone numbers. This scales automatically to 1,000, 10,000, 100,000 or unlimited based on sustained usage volume and Business Verification (+ info).
Maximum of 3 quick-reply buttons per message.
Each quick-reply button can have a maximum of 20 characters.
Last updated