WhatsApp Cloud API trigger for CV actions
When a CV is uploaded, selected or shortlisted on the azizsaif.com recruitment page, the system fires an instant WhatsApp message to the business number through a secure server-side endpoint.
Architecture
How it works
The site is static HTML on GitHub Pages. The WhatsApp call happens entirely server-side inside a Netlify function so the API token is never in the browser.
Step-by-step build
How to build it
Five steps from zero to live WhatsApp alerts on every CV action.
Create the WhatsApp Cloud API app in Meta
Go to developers.facebook.com, create an app, add the WhatsApp product, and collect three values: the access token, the Phone Number ID, and the verified recipient number.
Add the Netlify serverless function
Create netlify/functions/cv-whatsapp.js in the repo. This function receives the CV action payload and makes the WhatsApp API call server-side. The token stays private in Netlify environment variables.
Set environment variables in Netlify
In Netlify go to Site Settings → Environment Variables and add the three secrets. These are never committed to the repo.
Also add netlify.toml to the repo root to wire the functions directory and CORS headers.
Wire trigger events on the recruitment page
Add the JavaScript trigger block to Hr-recuritement-ai-process/index.html. It listens for file upload, shortlist-ready and candidate-select actions then posts to the Netlify function.
Test live and push to GitHub
Upload a sample CV and confirm the WhatsApp message arrives. Then push all files to the aziz-saif-story repo — Netlify auto-deploys from main.
Business outcome
What this delivers
(upload, select, shortlist)
after CV action
to the browser
Instant recruiter awareness
Know the moment a candidate uploads, is selected, or reaches Tier A without opening the dashboard.
Secure by design
WhatsApp token lives only in Netlify env vars. The frontend never touches credentials.
Reusable pattern
The same trigger function works across all AI service pages on azizsaif.com — one endpoint, multiple trigger points.
Live links
Open the demo
The recruitment screener is live. The WhatsApp trigger requires the Netlify function with valid API credentials.