Turn on automatic WhatsApp updates for every order, approval, delivery and payment — and put Meta's new Business Agent (released 3 June 2026) on your ToolNaka number to answer vendor and factory questions 24×7.
Code is deployed and ready Dormant until you add 3 values
| When this happens… | Who gets a WhatsApp message |
|---|---|
| An order is placed | The seller (new order to fulfil) and the factory (confirmation with amount). |
| A delivery status changes | The factory — requested, picked up, out for delivery, delivered. |
| The payment reminder runs (Mon/Wed/Fri) | The factory — pending invoices and total, alongside the existing email. |
| A department head flags or blocks a seller | The seller — the reason and how to resolve it. |
| Someone texts "status" to the ToolNaka number | An instant reply with their latest order number, status and amount — and status TN-ORD-000001 for a specific order. |
| Anything else | The Meta Business Agent answers from your catalogue, website and FAQs — and hands over to a human when needed. |
Everything is best-effort: if WhatsApp is not configured, the rest of ToolNaka works exactly as before.
The Business Agent is Meta's June 2026 release for businesses: an AI that answers customer questions on WhatsApp and Messenger from your own content, 24×7, with a path to a human.
In the WhatsApp Business app on the ToolNaka business phone: Tools tab → AI agent → Continue → Accept. In Meta Business Suite (business.facebook.com), the same tool lives under the business tools/AI section.
Point it at https://toolsnaka.store and add the key FAQs: "how do I place an indent?", "what are the approval limits?", "how do I track an order?", "how do returns work?". The agent answers from these.
Message the number from your own phone and check the answers. Keep hand-over on, so an unanswered question reaches the ToolNaka team instead of a dead end.
Go to developers.facebook.com → My Apps → Create App → Business. Inside the app, add the WhatsApp product.
In WhatsApp Manager → Phone numbers, add the ToolNaka business number (it must not be active on a regular WhatsApp app on another phone). Note the Phone number ID shown on the API Setup page — that's the long number, not the phone number itself.
Business Settings → Users → System users → add a system user (e.g. "ToolNaka Server") → Generate new token → pick the app → grant whatsapp_business_messaging and whatsapp_business_management → copy the token. (The temporary 24-hour token on the API Setup page is only for quick tests.)
Vercel → project toolnaka → Settings → Environment Variables → add:
| Variable | Value |
|---|---|
| WHATSAPP_TOKEN | The permanent token from step 3 |
| WHATSAPP_PHONE_NUMBER_ID | The Phone number ID from step 2 |
| WHATSAPP_VERIFY_TOKEN | Already set for you — it's visible in Vercel under this name. You'll paste this same value into Meta in Part C. |
| WHATSAPP_APP_SECRET | From the app's Settings → Basic (App secret). Recommended — lets ToolNaka verify every incoming webhook call. |
Then Redeploy (Deployments → ⋯ → Redeploy), so the new values are picked up.
In the app → WhatsApp → Configuration → Webhook → Edit:
https://toolsnaka.store/api/whatsapp/webhookWHATSAPP_VERIFY_TOKEN from VercelPress Verify and save. (Verification needs the Part B redeploy to be finished.)
Under Webhook fields, subscribe to messages — delivery receipts and inbound texts then flow to ToolNaka, powering the "status" replies and the notification centre.
Meta allows free-form messages only within 24 hours of the user's last message to you. For fully automatic notifications outside that window, create one template:
WhatsApp Manager → Account tools → Message templates → Create template. Category Utility, language English, body with a single variable {{1}} carrying the update text. Name it, e.g. toolnaka_update, and submit for approval (usually minutes to a day).
Add Vercel env var WHATSAPP_TEMPLATE_UTILITY=toolnaka_update and redeploy. All notifications then arrive as this approved template — no 24-hour limit. Without it, ToolNaka still sends free-form messages, which is fine during testing and for anyone who has messaged you recently.
| Do this | Expect |
|---|---|
| Vercel env has the four WHATSAPP_ values → redeploy | Deploy succeeds. |
| Meta → Configuration → Verify and save | "Verified" — the token matched. |
| ToolNaka admin → Integrations tab → WhatsApp card → Send test | The phone receives the test message; the card shows the status chips green. |
Text status from a registered vendor/factory phone | Instant reply with the latest order and its status. |
| Place a test order on toolsnaka.store | Seller and factory receive the order message. |