I'm building an emergency response app for my company. I have a corporate email database, with everyone's mobile numbers, email addresses and hundreds of email groups defined. The goal is to build something that integrates with our maintained groups.
Proposed flow:
All of this is pretty easy for me, except the Twilio piece.
As you can see, the server/Twilio has a limited role. It's really just a gateway that allow us to use our vast list of groups for group SMS. Is this doable with Twilio? I see many examples of iterating through a list of numbers with a FOR loop, but those replies are going back to my SMS# I believe, and my Twilio number is still going to be involved in the replies. I want to start the group SMS, then have no further role.
Any thoughts/suggestions would be appreciated.
Ready to incorporate group texting into your business communications? Get started with the Twilio Conversations API. On top of group texting, you can scale your communications with a single API to include multiparty conversations across SMS, MMS, WhatsApp, and chat.
Go to your contacts and create a group of recipients. You can have several groups and name them accordingly. While group messages are an easy way to send a text message, the limit on the number of recipients can be a problem. Plus, since they're sent as MMS, not all phones may support group messages.
How it works: User specifies a list of phone numbers they would like messages forwarded to while setting up the app. All messages sent to their Twilio phone number will be sent to that list of phone numbers.
I'm a Twilio developer evangelist. Would love to help out here.
That all sounds fine to me. It is certainly the case that in order to send your first group SMS in your example that you'd need to iterate over the list of numbers and send an SMS to each of them from your Twilio number. That text would appear to come from your Twilio number to the end user. If they were to respond to the SMS, you could then have your Twilio number receive it and send a webhook to your server that then sends messages on to everyone else on the list.
It would have to work that way because SMS messaging is inherently one to one. So, in order to blast messages to the entire group, you would need to send a message to a central (Twilio) number.
I hope this helps. Drop me an email at philnash [at] twilio.com if you want to talk through this more.
[edit]
Twilio now supports native group messaging. It has some caveats, because group messaging requires MMS, this only works in countries where Twilio supports MMS, which is the USA and Canada. But it works now! Read the blog post to find out more.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With