FREE COURSE · MODULE 3 · LESSON 3.2 πŸ› οΈHANDS-ON SETUP
WhatsApp AI Agent Mastery

WhatsApp Cloud API + Your First Webhook

Build Layers 1 + 2 of the 5-layer stack. After this lesson, a customer can text your real WhatsApp number β€” and your server replies. Real text in, real reply out. 5 steps, 90 minutes, under $20/month.

Steps to execute
90 minTotal time
< $20Per month total

The 5 Steps You'll Execute

Each step is concrete, with verifiable outputs. By the end, customer text in β†’ your server replies β†’ loop is live.

1

Meta Business Account

Create + verify your business identity with Meta. business.facebook.com β†’ fill business info β†’ submit for verification (2-5 days). Foundation for everything else.

2

WhatsApp Cloud API Setup

Inside Meta Business β†’ All Tools β†’ WhatsApp β†’ Getting Started. Add a phone number (free test number provided). Generate access token. Save 3 values: token + phone number ID + WhatsApp Business Account ID.

3

Write the Webhook

An endpoint Meta POSTs to whenever a customer messages you. Node: 6 lines of Express. Python: 8 lines of FastAPI. Verify Meta's signature + parse the message JSON. For now, just print it.

4

Connect Webhook to Meta

Deploy your code to a public URL (Vercel: 30 sec). In Meta Business, paste your webhook URL + a verify token. Click 'Verify'. Green check = Meta and your server are talking. Subscribe to the 'messages' field.

5

Send a Real Test

From any phone, text your business WhatsApp number. Server logs show the message in <1 sec. Your code POSTs back to Meta's /messages endpoint with your access token. The customer's phone buzzes. The full loop is live.

Total cost β€” small business agent
< $20 /month
WhatsApp API free for 1,000 convos/mo Β· Vercel free tier Β· 90 min setup if Meta is already verified.

Want this stack built for your business in 30 days?

Top AI Africa deploys the full 5-layer stack for African businesses. WhatsApp Cloud API + webhook setup, Claude integration, Knowledge Base on your real product data, monitoring dashboard. Free 15-min strategy call to see if your business is a fit.