This guide walks you through setting up the official WhatsApp Business API for
your bot. At the end you'll paste a single token into your
prompt2bot dashboard and the rest is automatic.
The API can reply freely within WhatsApp's 24-hour customer service window. To
send scheduled or proactive messages outside that window, you also need a
Meta-approved message template.
Note: Meta changes some menus and texts over time, so there might be
slight variations. Talk to us if you have
trouble.
Create a new app. The app name should be the name of your service (we suspect
it needs to be unique to avoid closure)
Use case: select "Other"
App type: select "Business"
You can ignore the business portfolio prompt for now
Set a Privacy Policy
In the left panel go to App > App Settings > Basic
Set the Privacy Policy URL to your own business's publicly accessible
privacy policy URL (do not use prompt2bot's privacy policy URL, as your
business is the data controller for your customers' WhatsApp conversations)
Save changes
Connect a WhatsApp Account
In the app screen, set up WhatsApp
You'll be prompted to create a business portfolio (or use an existing one)
Fill in your email and business name, then submit
You might need to wait about an hour if your account is "too new"
In the app screen click on WhatsApp
Select the business portfolio you created and click OK
Add Your Phone Number to the WhatsApp API
Click on API Setup
Under "Send and receive messages", click Add phone number
The business name should match the portfolio
The URL should be a website you created (we suspect it needs to be unique to
avoid closure)
Category: Entertainment
Verify your number using a call or SMS
Add a payment method in WhatsApp Manager for your number
Look at the URL — it will contain something like
business_id=XXXXX&asset_id=YYYYY
The asset_id value is your WABA ID. Copy it — you'll need it during
setup.
Connect to prompt2bot
Paste the system user token, app secret, and WABA ID into your bot's
dashboard under Channels > WhatsApp for Business and click Connect. The webhook
URL, verification, and app subscription are all set up automatically. A
verification code will also be sent to your phone via SMS.
Register Your Phone Number
After connecting, you'll receive an SMS with a verification code. Enter the code
in the dashboard and click "Verify & Register" to complete the setup. This
registers your phone number with the WhatsApp Business API so it can send and
receive messages.
If the code expires, click "Resend Code" to get a new one.
Optional: Scheduled and Proactive Messages
WhatsApp Business can only send free-form replies inside the 24-hour window
after a user messages you. For scheduled reminders or proactive messages outside
that window, create a message template in WhatsApp Manager and wait for Meta
approval.
prompt2bot can create the default scheduled-task template for you from the
WhatsApp integration skill. Ask the builder bot to create the WhatsApp task
template after your number is connected. The default template is named
prompt2bot_remote_task and contains one text variable for the message body.
Once Meta approves the template, scheduled WhatsApp Business tasks can use it
automatically when there is no active 24-hour window.
Try it live
Run this agent engine in your own WhatsApp
Meet Mentat — your personal AI assistant with its own cloud computer, persistent memory, and skills. Add it to 1-on-1 chats, WhatsApp groups, or scheduled workflows. Free 7-day trial (up to 500 runs, no credit card).