Managing WhatsApp customer conversations on personal phones or paying per-seat third-party relay fees breaks CRM accountability and hides order context. Support teams end up copying screenshots and voice note summaries into Perfex CRM by hand.
PolyUtilities v3.7.0 connects your Perfex CRM Unified Inbox directly to Meta’s official WhatsApp Business Cloud API v21.0 with zero middleware fees, verifying webhooks via HMAC-SHA256, downloading media locally, and powering AI transcription, Vision, and Auto-Reply.
Verify PolyUtilities activation and OmniChat flags in the Guide to Install and Use PolyUtilities for Perfex CRM first.
| Credential / Setting | Where to Obtain in Meta | Role in PolyUtilities OmniChat |
|---|---|---|
| Account ID (Phone Number ID) | Meta App > WhatsApp > API Setup (numeric ID, not phone number) | Routes inbound and outbound traffic for single or multi-number setups |
| Token / API Key | Meta Business Settings > System Users (Permanent EAAG... token) | Authenticates Graph API v21.0 outbound messages and media downloads |
| App Secret | Meta App > App Settings > Basic > App Secret | Validates incoming X-Hub-Signature-256 HMAC-SHA256 headers |
| Verify Token | Custom random secret string matching Meta Webhook dialog | Echoes GET hub.challenge during webhook verification |
1. Generate Permanent Meta Credentials and Save in Perfex FIRST
Always save your WhatsApp channel inside Perfex CRM before clicking Verify and Save in Meta for Developers, because Meta immediately sends a GET challenge to your callback URL. Using a Permanent System User Token (with whatsapp_business_messaging and whatsapp_business_management) avoids the 24-hour expiration of temporary sandbox tokens.
- Create a Business App in Meta for Developers, add WhatsApp, and copy the numeric Phone Number ID and Basic App Secret.
- In Meta Business Settings > System Users, generate a Permanent Access Token assigned to your WhatsApp Business Account.
- In OmniChat Settings > Channels, select WhatsApp, enter Account ID, Token, App Secret, and a custom Verify Token, then save FIRST.
- Paste
poly_utilities/omnichat/webhook/whatsappand your Verify Token in Meta App > WhatsApp > Configuration, click Verify and Save, and subscribe tomessages.
2. Enable Local Media Capture and Multimodal AI Copilot
WhatsApp media IDs resolve to expiring Graph API URLs. Enabling local download pulls customer voice notes (.ogg/.opus), photos, stickers, videos, and PDFs through SSRF-safe allowlists directly into Perfex storage, matching the AI Copilot workflow across Telegram Bot API and Zalo OA API v3.
- Keep Auto-Download Inbound Channel Media Locally ON under Multimodal AI for permanent audio playback and previews.
- Enable Voice Note Transcription (Whisper-1, GPT-4o Mini Transcribe, or Gemini 2.5 Flash) and AI Vision to summarize customer receipts or error screenshots.
- Add multiple Phone Number IDs under one Meta App if sales and support teams operate separate regional numbers.
Common Pitfalls and Quick Fixes
- Meta webhook returns 403 Verification failed: Save the channel in Perfex CRM first and verify public HTTPS with a trusted SSL certificate.
- Outbound replies stop working after 24 hours: Replace the temporary API Setup token with a Permanent System User Token from Meta Business Settings.
- Inbound messages drop with Invalid signature: Confirm App Secret holds the Meta App Secret (not Verify Token) and no proxy strips
X-Hub-Signature-256.
Frequently Asked Questions
Do I need BSP middleware or monthly relay subscriptions for WhatsApp?
No. PolyUtilities integrates directly with Meta’s official WhatsApp Business Cloud API v21.0 through Perfex CRM’s native webhook endpoint (poly_utilities/omnichat/webhook/whatsapp). You pay zero third-party SaaS relay fees and keep every customer conversation and file attachment inside your own Perfex database.
Can I connect multiple WhatsApp Business numbers to Perfex CRM?
Yes. Add each Phone Number ID as a separate WhatsApp channel entry inside OmniChat Settings. PolyUtilities inspects metadata.phone_number_id on every incoming Graph API webhook payload and automatically routes inbound threads and outbound replies through the exact matching WhatsApp Business phone number.
How are WhatsApp webhooks secured against CSRF and spoofing?
Perfex CRM exempts only poly_utilities/omnichat/webhook/* from cookie-based CSRF protection inside config/csrf_exclude_uris.php, while Poly_omnichat_whatsapp_adapter strictly verifies every incoming POST webhook request using timing-safe hash_equals() against the HMAC-SHA256 digest in X-Hub-Signature-256 before parsing or persisting any conversation data into Perfex CRM.
Are WhatsApp voice notes and images stored permanently in Perfex?
Yes. When Auto-Download Inbound Media is active, PolyUtilities fetches the Graph API media binary over HTTPS with SSRF validation, executes 10-layer file security and GD Image CDR checks, and stores it under uploads/poly_utilities/omnichat/inbound/ for permanent playback and AI Vision or Speech-to-Text.

Leave a Reply