Twilio Programmable Chat User Channel Limit - best practice? - twilio

We are using Twilio Programmable Chat in our product and we're running into the issue of having too many channels per user. (Every once in a while, I increase the limit in our app, but there is an absolute maximum of 1,000) so we're going to hit that limit in a few months I beliee
I'm wondering if there are any best practices to manage this? SHould we remove the user from a channel after a period of time? What happens if the user wants to participate in the channel again in the future? If we re-add the user to the channel, will the profile be linked? (assuming our unique identifier for the user is the same?)
Unfortunately, I was unable to find specifics about this in the help documentation - so apologies if it does exist!
Thanks very much!
Chris

Twilio's suggestion here is to add/remove users from/to channels on demand, for example when new message is posted to the channel. They could use Chat webhooks to handle new message events (onMessageSent) and add the user back.

Related

Twillio programable video how to notify from client 1 to client 2

I use Video WebRTC Go to build a peer to peer video chat app with Twilio.
Client 1 creates a room and gets access to that room. So how do we make client 2 aware of that this.
How do I pass the signal there is a call for him (Client 2).
Do I need to handle it my self? or Does Twillio provide a service to achieve that use case?
Hope my question is clear.
Any help!
Thanks in advance! =)
Twilio developer evangelist here.
When you create a room for the users to meet in you will need to make your users aware. There is nothing within Twilio Video specifically to do that.
There are service that Twilio provides that could be used for this, for example, you could SMS or email your user with a link to a page on your site where they can join the room. It depends on the user experience you want to create though.

Twilio: Create a SMS conversation between multiple people

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

Twilio chat : Can I get a channel's message history without joining the channel?

I'm using Twilio chat SDK for iOS, and I've run into a problem. I can get the list of channels, get an individual channel, and get the message count for that channel successfully. The next thing I want to do is grab the last message from that channel using getLastWithCount. However, that method's completion is never called.
I need to do this without actually joining the channel, because I'm just trying to get the last message to display in a summary screen with many others. I don't want to join, because the other party may be online on the other end, and it would falsely display the user as online (even if briefly)- when it is simply an automated function at work. (They haven't entered the "chat room" yet.)
I've set client synchronization strategy to .all, and even tried synchronizing the specific channel before attempting getLastWithCount.
How would you get the last message in a Twilio chat channel without joining the channel?
Twilio developer evangelist here.
You can do this, but your users need to have a new permission to do so. The documentation on Users' Roles and Permissions is worth reading to learn more.
Default user permissions are:
createChannel
editOwnUserInfo
joinChannel
But you need one more that allows viewing channels and their messages without joining the channel. One that does this is editChannelName (not obvious, sorry about that).
To do this, you'll want to create a new role and give it those 4 permissions in total. You can then either assign that role to your users or set it as the default role for your Chat service. Once your users have this role and permissions they will be able to view the messages.
Let me know if this helps.

Using Twilio to broadcast a text to speech message to over 1000 phone numbers

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

Twilio: Integrate existing number?

Twilio newbie here. Is it possible to integrate with a customer's existing VoIP (or even landline) number? I've searched, but haven't been able to find substantial information on the topic. I'm interest in grabbing call data from the API for use with an existing SaaS application I've built, but my customer base cannot change their phone number. Thanks for your time.
You do have the option of transferiing your phone number to Twilio if you client is open to that idea:
https://www.twilio.com/help/faq/phone-numbers/i-already-have-a-phone-number-i-love-can-i-port-it-to-twilio
Painless and free process.
and, almost as important, if you need to, you can take the number back with you to another carrier:
https://www.twilio.com/help/faq/porting/how-do-i-port-my-numbers-away-from-twilio

Resources