Texting & Group MMS Guide
This guide details how 1-on-1 SMS/MMS and Multi-Party Group MMS work in Valstorm when using Telnyx.
📱 1. Overview: Why Telnyx for Messaging?
Legacy telecom providers (like Twilio) require complex multi-step stateful architectures (Chat Services, Participant Bindings, Projected Addresses, and manual participant healing) just to handle a basic 3-person group text.
Telnyx provides a streamlined, stateless architecture:
- 1-on-1 SMS:
POST /v2/messages - Multi-Party Group MMS:
POST /v2/messages/group_mmswithto: ["+1...", "+1..."] - Unified Webhook Format: Inbound replies hit a single
message.receivedevent containingfrom,to, andccrecipient arrays.
Valstorm unifies both models under the hood. Desktop and Mobile users see a single, seamless conversation stream.
👥 2. Multi-Party Group MMS (The Local Services "Speed-to-Lead" Flow)
The Use Case:
When an inbound lead calls or submits a form on an Astro marketing site, Valstorm automatically creates a 3-party group text:
- The Lead (e.g.
+1-203-555-0199) - The Business Owner (e.g.
+1-860-555-0144) - The Valstorm Telnyx Line (e.g.
+1-959-929-0740)
How It Works:
[Valstorm System] ──(POST /v2/messages/group_mms)──► [Telnyx Carrier Edge]
│
┌────────────────────────────────────────┴────────────────────────────────────────┐
▼ ▼
[Lead's Cell Phone] [Owner's Cell Phone]
"Hi Sarah, thanks for calling Apex! "Hi Sarah, thanks for calling Apex!
I've looped in Mike (Owner) here." I've looped in Mike (Owner) here."
│ │
└─────────────────────► [Sarah replies with photo of leak] ◄──────────────────────┘
│
▼
[Telnyx Webhook: message.received]
• from: Sarah (+1-203-555-0199)
• to: [Telnyx Line]
• cc: [Mike (+1-860-555-0144)]
│
▼
[Valstorm Correlator: tconv_<sha1>]
• Stored in twilio_message
• Real-time WebSocket push to Desktop & ValPhoneDeterministic Conversation Fingerprinting:
In Group MMS, any participant can reply at any time. To guarantee all replies land in the exact same conversation thread without duplicates, Valstorm uses deterministic participant hashing:
- Collect all participant phone numbers (
from+to+cc). - Normalize all numbers to E.164 (
+1XXXXXXXXXX). - Sort alphabetically and compute a SHA-1 hash:
tconv_<sha1_first_20_chars> - Look up or create the
twilio_conversationrecord keyed bygroup_fingerprint.
🖥️ 3. Using Texting in Valstorm Desktop & ValPhone Mobile
On Desktop (valstorm-desktop):
- Navigate to the Texts tab or click the SMS icon on any Contact card.
- The phone number dropdown displays all active numbers, with Telnyx lines clearly badged.
- For Group MMS:
- Click New Message.
- Add 2 or more contacts or phone numbers.
- Send text or drag-and-drop an image attachment.
- Delivery receipts and inbound replies appear live.
On Mobile (ValPhone):
- Open the ValPhone app on iOS or Android.
- Select any conversation to view turn-by-turn history, image attachments, and sender attributions.
- Outbound messages route through the unified backend API, ensuring identical behavior regardless of whether the active line is Twilio or Telnyx.
⚙️ 4. Carrier Requirements & Best Practices
- Number Type:
- Group MMS requires 10-digit local numbers (
10DLC). - Toll-Free numbers (
833,888,800) do not support Group MMS.
- Group MMS requires 10-digit local numbers (
- Participant Limits:
- Group MMS supports up to 8 participants in a single thread.
- Opt-Out Compliance:
- If any participant replies
STOP, Telnyx automatically handles the carrier block for that individual number while keeping the thread accessible for remaining participants.
- If any participant replies