High-urgency payment reminders, appointment confirmations, and field support updates get buried when staff text clients from personal phones outside the CRM. Integrating Twilio SMS with PolyUtilities v3.7.0 turns your Perfex CRM Unified Inbox into a centralized two-way SMS desk backed by AI drafting and full conversation history.
Use this field-tested playbook to link your Twilio number, configure signed inbound webhooks, and safeguard outbound SMS spending with Internal Notes and AI cooldown controls.
| Twilio SMS Setting | Expected Format / Endpoint | Operational Purpose |
|---|---|---|
| Webhook Endpoint | poly_utilities/omnichat/webhook/sms | Receives inbound SMS via HTTP POST from Twilio |
| Signature Validation | X-Twilio-Signature (HMAC-SHA1) | Verifies authentic Twilio payloads using Auth Token |
| Sender Phone Format | E.164 format (e.g. +14155550199) | Ensures reliable domestic and international SMS routing |
| Credentials Vault | Account SID (AC...) + Auth Token | Encrypted at rest via AES-256-CBC (enc:v1:) |
Step 1: Prepare Your Twilio Number and Credentials
Verify PolyUtilities is active via the PolyUtilities installation guide and enable OmniChat under Poly Utilities > Settings > OmniChat & AI Hub. Inside Twilio Console, ensure your active number supports SMS and is free from trial recipient limits.
- Copy your Account SID (
AC...) and Auth Token from the main Twilio Console dashboard. - Copy your SMS-enabled Twilio phone number in strict E.164 format (for example
+14155550199). - Confirm your Perfex CRM URL runs over valid public HTTPS so Twilio POST requests verify cleanly.
Step 2: Save Gateway in Perfex and Bind Twilio Webhook
Save your Twilio Auth Token inside Perfex CRM before triggering inbound tests so signature checks pass immediately. Pair SMS operations with PolyUtilities custom widgets and Perfex CRM announcement banners to communicate SLA hours clearly.
- Open OmniChat & AI Hub > Settings > Omnichannel Gateways, add an SMS (Twilio) channel with your E.164 number,
AccountSID:AuthToken, and Auth Token, and click Save first. - In Twilio Console, open Active Numbers > Messaging > A Message Comes In, paste
https://your-crm-domain.com/poly_utilities/omnichat/webhook/smsas HTTP POST, and save. - Configure AI provider keys under Settings > AI Hub & Budget with daily USD caps and an anti-loop cooldown window on AI Auto-Reply.
Common Pitfalls and Quick Fixes
- Inbound SMS fails signature validation: Twilio signs the exact request protocol and URL. Ensure Perfex
base_url()useshttps://matching Twilio Console. - International SMS fails delivery: Missing country code or disabled Geo Permissions. Format numbers in E.164 and enable destination countries in Twilio Geo Permissions.
- Twilio triggers HTTP GET instead of POST: Switch the webhook dropdown next to “A Message Comes In” from
HTTP GETtoHTTP POST.
Frequently Asked Questions
How does PolyUtilities verify that inbound SMS webhooks come from Twilio?
Every incoming POST request hitting poly_utilities/omnichat/webhook/sms is verified against the X-Twilio-Signature header using HMAC-SHA1 and your stored Twilio Auth Token. Requests missing a valid cryptographic signature are rejected immediately before touching database tables or triggering AI Auto-Reply and CrossTag pipelines.
Can staff write private notes inside an SMS conversation without texting the client?
Yes. Switching the Unified Inbox composer to Internal Note stores the message privately in Perfex CRM for staff collaboration and CrossTag record linking. Internal notes are strictly excluded from outbound Twilio API calls, preventing accidental SMS charges or internal leaks.
What happens if AI Auto-Reply runs on an SMS thread with an auto-responder?
OmniChat includes a configurable anti-loop cooldown window on outbound AI Auto-Reply. Once AI responds to a contact on a channel, subsequent automated replies pause for the cooldown duration so automated carrier messages or out-of-office SMS loops cannot drain Twilio credits.
Can I preview the Twilio SMS setup interface before purchasing?
Yes. Visit the PolyUtilities interactive Perfex CRM demo to inspect the Omnichannel Gateways configuration panel, contextual ? Twilio setup modal, encrypted AI Hub budget controls, CrossTag quick actions, and Unified Inbox two-way SMS workflow firsthand before deploying on your production server.

Leave a Reply