I am using Twilio Conversation SDK in ReactJS project and that is working pretty fine for one to one participants. Now we have a new requirement, where there will be at least 5 participants in a Group Conversation and most often than not all these participants will get the same message, but sometimes, a chat message from a participant has to be shared with only 4 participants including the participant and not with the 5th participant.
So my question is, is this possible with Twilio Conversation.
So like say example we have Part1, Part2, Part3, Part4, Part5.
Part5 is the one participant that will not get to see these messages and the rest Part1 to Part4 will see this message.
If anyone has any idea how to implement it, it would be great to know the implementation details.
Related
I have an application which uses Twilio to send SMSs.
There is a situation where the application sends multiple messages to a person, for example a message with info about product P1, then another message with information about product P2, and so on. So my question is, when the person replys the SMS, how could I know to exactly what SMS he is replying?
Or is it possible that each SMS that my application sends to the same person creates different conversations in Twilio, so I can track each response per each different SMS?, if so, how I can do it?
If you trigger the SMS messages by API it's hard to know what messages the customers answer.
We got to solve this problem using Twilio Sync (https://www.twilio.com/docs/sync/api/document-resource) which is basically cloud storage, so when we need to trigger an SMS or Whatsapp message, we save some information on Twilio Sync, like Twilio number, client number and the messages that were sent.
When the customer answers the message, we send him to a Twilio Studio that runs a Function that read the Sync document and check if this customer comes from a message response, if yes, we get the triggered message and added on the conversations, so we know the message that customer answered.
The Sync isn't a database and has a limit, so depending on your message volume, it can not work well.
Twilio claims they support group MMS conversations: https://www.twilio.com/blog/group-mms-texting-for-businesses
However, the documentation links they provide goes to a 404 page: https://www.twilio.com/docs/conversations/group-texting
I'm trying to figure out of Twilio can support a group MMS conversation among several people on their mobile phones having a conversation with a Twilio number in a group conversation.
If you're on your mobile phone's texting app, and you send a text to multiple people at once, it's converted to MMS and is a group conversation among multiple people. It is not sending separate SMS messages to each person, but rather an actual group conversation.
I've been looking at Twilio's API docs for their Conversations (https://www.twilio.com/docs/conversations), but it doesn't look like they actually support group MMS, or at least I cannot get it working.
The closest I could get was creating a Twilio number participant with 3 other participants, but on each person's mobile texting app, they saw the messages from everyone else come across as just the Twilio number. Effectively it was a "2-way" conversation with the person and Twilio's number, but multiple people could be the Twilio number behind the scenes.
Bandwidth texting service provides actual group MMS, where I can send a message to an array of phone numbers via the to and it works just as expected. The issue is they are expensive with minimum monthly costs I was hoping to reduce.
It's a little frustrating, because Twilio announced in 2021 they supported group MMS, but none of their docs or examples seem to actually implement this.
Am I missing the docs somewhere or need to configure some setting for group MMS?
Group MMS has been put on hold. The ecosystem migration to 10DLC routes introduced compatibility issues at the carrier level, so this issue impacts all CPaaS providers, when using Group MMS over 10DLC routes (which is a requirement for A2P traffic).
Limitation to Group MMS
https://www.twilio.com/changelog/limitation-to-group-mms
A workaround is to use Twilio Conversations which will allow a one:many distribution of messages. The only difference is the parties that art part of that conversation won't appear in the mobile devices message client address bar.
If you have activated group texting before march 2022, you can still use twilio's group APIs as they are kind of deprecated only for newer uesrs.
Try using the twilio docs after signing in, if you are older user you'll not get 404.
We have a C# MVC app that sends and receives texts utilizing the Twilio API effortlessly.
We have a button that sends a text to one or multiple people FROM a certain department (HR) / Twilio phone number.
Our problem is- When a user responds to the HR text, how do we craft a conversation between the HR department workers personal phone number, and the original recipient. (So they can communicate right in the SMS chat)
We tried:
To create a 'Group MMS Chat' but that doesn't seem to be supported by Twilio (yet)
To store the senders personal number, and the Twilio registered number - to make our server act as a 'switchboard', but that wont work if two different HR workers send a text to the same person.
I have read the questions / docs here: But cookies don't feel like the proper answer.
Twilio: How to map an SMS reply to an original SMS
Send Group Message with Twilio
https://www.twilio.com/docs/sms/tutorials/employee-directory-csharp-mvc#handle-multiple-or-no-results
https://support.twilio.com/hc/en-us/articles/223136287-How-do-Twilio-cookies-work-
Please let me know if this is too broad / a bad question, and i'll try my best to fix it. I don't want to go to SO jail :)
Any help is greatly appreciated!
You might think about using twilio proxy service , the flow for that would look like this
Pre select which HR person number or numbers will be responsible for that communication.
provision a new twilio number (not the same one already used by the HR department) this number will be used for the duration on the conversation
Initiate a proxy session https://www.twilio.com/proxy
** This is a more expansive approach , because you will need a twilio number per each individual conversation
I am creating a chat application with twilio but having an issue tracking conversations among multiple users and multiple conversations.
Example:
conversation -> userA & userB
conversation2 -> userA & userB
When userA sends a message to userB in conversation2 when I receive a SMS message from userA how do I map it to conversation2?
What I am expecting:
What I am looking for is an ID that is either provided by me or generated by twilio and given to me when I send the SMS. Then when I receive a SMS from twilio I can match it to a conversation by looking at the ID stored when the SMS was sent.
thank you!
Twilio developer evangelist here.
SMS does not have threading baked in, so this is not possible with just one phone number. You can prove this to yourself by opening the SMS app on your phone and trying to respond to the second to last message you received from someone.
You have two options:
You insist that your users include a specific ID within messages in a thread so that you can parse the message and extract the ID to tie the threads together.
You conduct separate conversations between the same users using different Twilio numbers. This way you can tie the thread together using the number that was used.
Let me know if that helps at all.
I know this response may be too late, but here goes anyway...
Conceivably, if Conversation 1 and Conversation 2 both are between different parties. You could create a mapping table of the endpoint phone numbers and just map the messages to the corresponding phone number.
Example:
Conversation 1 = UserA(1-234-567-8910) => UserA(1-234-567-8911)
Conversation 2 = UserC(1-234-567-8912) => UserD(1-234-567-8913)
If UserA sends a message, it will be forwarded to UserB, and vice-versa. Same goes for Conversation 2.
On the server side:
Upon the initial connection, the server would map that UserA wants to talk to UserB. This would remain in the lookup table until UserA stops wanting to communicate with UserB.
This would require that each user could only have one conversation going at a time, which may not fit for the purposes of the initial poster, but I hope that it will help someone.
I have an application that allows a user to send a message to multiple contacts. I've reviewed the API for Twilio and it appears the only way to call multiple numbers is to iterate over a list of numbers. Some of the users will be sending a message to over a 1000 numbers and making 1000 REST requests seems very inefficient. Is there a way to create contacts in Twilio and add them to a group and then just send a request to call the group and play the message? I'm basically looking for something that acts more like a batch request instead of 1000 individual requests?
I've seen another question that referenced sending bulk, but it the answers didn't really say yes or no and the examples were incomplete and the question is closed.
Thanks
Twilio developer evangelist here.
One possible way you could do that, is by creating a conference room, and dropping all your users there.
You can then play the message after a few seconds once you know all your users have been dropped there.
With conference rooms, you have the ability to mute, so you could potentially start the room muted, and then play the message to everyone.
Right now, one limitation I can think of, if the fact that as of the time of writing, the conference rooms have a limitation of 40 participants, but there's nothing stopping you from spinning up multiple rooms that would help you reach those 1000 users you want to reach.
Here's some reading that might interest you.
TwiML Voice:
Moderated Conferencing
Hope this helps you