Using Twilio’s Messaging Service & Copilot Features
In 2010, Twilio customers started sending their first SMS message. Today, these same customers are sending many thousands of messages per day. But jumping from sending one message to 100,000 is not easy. It requires understanding how many phone numbers you need to use to deliver these messages, what types of numbers to use for best results and programming logic that will handle number allocation and other use-case specific features to ensure performance.
That’s a lot of code…. Or is it?
What is a Messaging Service? What is Copilot?
Twilio’s Messaging Service handles everything mentioned above, without you needing to write any programming logic. Copilot are the features you take advantage of in your messaging service. So to break it down -
A Messaging Service is a messaging application, usually specific to a use-case or campaign that is powered by a group of phone numbers that you select ...
Programmable SMS - API Basics and Best Practices
Messaging can be complicated. The SMS ecosystem is comprised of mobile network operators (MNOs) and other application-to-person (A2P) network providers that sometimes route your message to its intended recipient, often over many hops. Delivery is not guaranteed, these players are known to have aggressive firewalls, spam algorithms and are protective of the traffic they send through their networks. On top of that, the backbone of SMS relies on old SS7 telephony signaling protocols for message transportation, developed back in 1975.
…. Sounds daunting already.
It’s not. Twilio’s Messaging API and underlying Super Network make it simple. Considering SMS is still the most ubiquitous, widely used messaging application in the world, it pays to get this right.
Sending Messages (one-way SMS)
SMS Code Of Conduct Reporting with Twilio Studio and Slack
If you care about ensuring the safety and comfort of your community, you must have a code of conduct. Writing a code of conduct document is a necessary first step, but it’s not enough. What happens when a violation occurs? You need processes for reporting and responding to code of conduct incidents. Ideally, there are multiple reporting channels so that people can communicate over text or in person. Some folks might not feel comfortable (or be able) to report code of conduct violations face to face.
There are many possibilities for technology to enable text based code of conduct reporting. Laying out requirements will help us narrow down our choices.
- Accessible. Reporting technology should be accessible to as many event attendees as possible. Accessibility here means having access to devices that run the technology, as well as usability for folks with disabilities.
- Secure. Code of conduct reports ...
The Developer's Guide to Phone Number Regulatory Compliance
Regulatory compliance (RC) requirements for phone number users have increased worldwide. Depending on the phone number and its features, your or your company's status in the country, and your intentions for the number, different laws and regulations apply while building Voice, Fax, or SMS-based applications.
(A future post will cover what you can and cannot do with numbers per country.)
While some of these regulations are new, many of these laws and rules have been in effect for some time. Countries are increasing enforcement for many reasons – including fraud, incidents of misuse and abuse and heightened national security concerns.
All your Twilio phone numbers on Twilio’s platform need to comply with individual country requirements by July 30, 2019 or they are at risk of being suspended until you submit proper RC information.
Read on for what you need to know to bring an existing communications application into compliance or ...
Send Domain Renewal and Expiry Notifications using Namecheap API, Twilio SMS and PHP
According to Domain Name Industry Brief a report by VeriSign,a global leader in domain names and Internet security, there were approximately 342.4 million domain name registrations across all top-level domains (TLDs) by the third quarter of 2018, an increase of approximately 2.6 million compared to the second quarter of 2018. This means approximately 28000 domain names were registered per day, and recent projections show the numbers are expected to rise even further in 2019. The stakeholders in this sector, therefore, have to implement a number of systems to manage and automate the huge number of tasks and business processes involved. Domain name sellers, resellers, domain name managers and even individual users need to get domain name related notifications in a timely and reliable manner to efficiently manage their domains.
In this tutorial, we are going to discuss how to send domain name renewal and expiry notifications in ...
Detect Cellphones and Verify Phone Numbers in Laravel PHP using Authy
There may be times in building your app that you will need to send an SMS to the phone number of a user. Wouldn't it be awesome if you could confirm that the number supplied is actually a cellphone? Or maybe you want to only send SMS to verified users. With Twilio's Authy API, these use cases are easy to implement. This tutorial is aimed at helping developers to build a phone number validator to verify users phone numbers in any PHP application and check if a number is a cellphone or landline before sending an SMS.
For this tutorial, it is expected that you have basic knowledge of the following:
NOTE: Don’t forget to craft a Laravel project for this purpose. Here’s a link to a guide on the installation process for ...
Create a WhatsApp Chatbot that Books Appointments in Google Calendar Using Autopilot and PHP
It’s amazing how in recent years, Natural Language Processing (NLP) has transformed how we build conversational interfaces. Notably, more businesses are building chatbots that interact with their customers in real time. In my previous tutorial, I wrote about building a chatbot using Dialogflow. In this tutorial, we’re going to build a chatbot using Twilio Autopilot and Whatsapp. Our chatbot will allow users to book an appointment and have a Google calendar event created.
This tutorial requires basic knowledge of Autopilot. If you need to read up, please do so from this guide.
- PHP 7 development environment
- Global installation of Composer
- Global installation of ngrok
- Twilio Account
- Google Account
- WhatsApp Account
Create a Google Project
Verify Phone Numbers in Symfony 4 PHP with Authy and Twilio SMS
One of the most appropriate ways to ensure that your application’s database contains only valid phone numbers stored against each user, is by properly verifying the phone number during the registration process. This amongst other things will ensure sanity in your application, reduce the number of false or fraudulent registrations and easily convert this data for marketing purposes.
In this tutorial, I will show you how to verify phone numbers in a Symfony 4 project by leveraging Twilio’s Verfiy API. Together we will build an application that will capture users’ phone numbers and use Twilio to send a 6 digit code through SMS. After receiving this code, the user will be required to enter it for proper verification.
Once we are done with the step-by-step process of implementing this feature, you will have learned how to structure a proper registration flow that takes phone number verification into ...
Implement Role Management with SMS updates in PHP using Laravel Bouncer and Twilio SMS
For any set (or family) to function effectively, the members of it must have some defined roles and responsibilities assigned to everyone. This can also be likened to an application, where different users of the application are assigned specific roles and responsibilities. These assigned roles define the access level of a user in the application.
In this tutorial, we will learn how to create and manage roles in a Laravel application, using bouncer packages and the Twilio SDK. The Laravel bouncer package will help us in the role management, while the Twilio SDK will be used to notify users of their assigned responsibilities.
At the end of this tutorial, we will have learned how to create a Laravel application, install a Laravel package and how to integrate the Twilio PHP SDK into Laravel.
Setting up a Laravel Application
This tutorial assumes that you are somewhat familiar with PHP and the ...
How to Create A Text-To-Subscribe App in PHP Using Twilio and Laravel
The world has gone global and almost everyone has access to the internet every day. However, we shouldn’t leave out those without smartphones or regular PC’s. One way to cater to them is by creating SMS friendly applications, where even with the least data-capable phones, they can access our services. In this tutorial, we will use Laravel and the Twilio SMS API to make a text-to-subscribe app.
Set Up A Twilio Phone Number
To create a text-to-subscribe app, we need a phone number where our users can send text messages to. When the messages are received they will call our API to trigger the actions.
Login to your Twilio account if you already have one, or ...