Integrations•3 min read

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_mms with to: ["+1...", "+1..."]
  • Unified Webhook Format: Inbound replies hit a single message.received event containing from, to, and cc recipient 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:

  1. The Lead (e.g. +1-203-555-0199)
  2. The Business Owner (e.g. +1-860-555-0144)
  3. 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 & ValPhone

Deterministic 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:

  1. Collect all participant phone numbers (from + to + cc).
  2. Normalize all numbers to E.164 (+1XXXXXXXXXX).
  3. Sort alphabetically and compute a SHA-1 hash: tconv_<sha1_first_20_chars>
  4. Look up or create the twilio_conversation record keyed by group_fingerprint.

🖥️ 3. Using Texting in Valstorm Desktop & ValPhone Mobile

On Desktop (valstorm-desktop):

  1. Navigate to the Texts tab or click the SMS icon on any Contact card.
  2. The phone number dropdown displays all active numbers, with Telnyx lines clearly badged.
  3. 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):

  1. Open the ValPhone app on iOS or Android.
  2. Select any conversation to view turn-by-turn history, image attachments, and sender attributions.
  3. 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

  1. Number Type:
    • Group MMS requires 10-digit local numbers (10DLC).
    • Toll-Free numbers (833, 888, 800) do not support Group MMS.
  2. Participant Limits:
    • Group MMS supports up to 8 participants in a single thread.
  3. 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.