Increase conversions with Voice Dialing Geographic Permissions REST API
Looking to improve your international conversions? Trust us, we’ve grappled with this too, so we want to give you all the tools so your new trial users have a delightful first experience with your product.
That’s why when a new user signs up for a free trial account on Twilio we detect the user’s country and automatically enable dialing permissions for them. We let the Twilio trial user enable calling to all of the 218 countries and territories but to protect Twilio from toll fraud they can only enable calling to low-risk destinations and during the trial experience they must call a verified caller ID.
We want our partners that build and re-sell Twilio powered solutions to give their customers the same low-friction experience so that’s why we’re excited today to announce the General Availability of the REST API for Voice Dialing Geographic Permissions.
How to send text messages from your static site using Netlify, Twilio and serverless functions
It’s exciting times to be a Frontend developer. With the rise of modern technologies such as serverless functions, Frontend engineers can do things that usually only backend engineers could do. This entails deploying scalable sites, sending emails, or creating HTTP endpoints. Due to the power of new service providers and countless APIs, building performant applications has become rather a game of connecting dots than building everything from the ground up.
You can see the final result on 8-bit-revolution.netlify.com. You can go there and tell me how much you love the good old 8-bit style via SMS. If you want to set-up a site similar to “8-bit revolution” you can have a look at the project ...
Using WhatsApp, Twilio and Azure to Generate Photo Alt-text in Java
AI services like Computer Vision (CV) are getting easier and easier to play with, and we can have some fun by making them available to use from our cellphones. In this post, we will use Java to connect the Twilio API for WhatsApp with Azure’s CV APIs to create a bot that can describe photos. It would be neat to use this for generating alt-text to help make your images more accessible online, for example.
We will need the following to get started with this post
- Java 8 or higher
- A Twilio Account
- An Azure account and Cognitive Services subscription key
Overview of our app
How it works
When Twilio receives a WhatsApp message it will send an HTTP request to a URL we provide.
Our mission is to create an app in Java which can handle those requests. The app will take the URL of any ...
Creating a Smart Assistant using Twilio Voice, Amazon Alexa, and Laravel
As a small business owner, I am always trying to increase my productivity and grow my business. Why have a meeting for what can be said in an email? Unfortunately, many of my clients don’t check their email regularly, so I have to call them. There’s no better way to decrease your productivity than a million simple phone calls every day. If you’re in the same boat as I am, Amazon Alexa + Twilio Voice is the perfect solution.
For this tutorial, we'll assume the following:
- You have PHP 7.2 installed
- You are familiar with Laravel
- You have Composer globally installed.
- You have an Amazon Developer account.
Let's get started!
Create a Laravel Project and Install the Twilio SDK
The first thing we need to do is create a fresh Laravel project. The simplest way to do this is by using Composer.
$ composer create-project --prefer-dist ...
Sending a SIM Command from an Azure Virtual Machine with Node.js
Building a Virtual Machine using the Azure CLI is a skill that can bring your idea beyond the desktop and into the cloud. In this tutorial, we will walk through how to set up an Ubuntu Virtual Machine using the Azure CLI and send a Twilio SIM Command using Node.js. This post assumes that you have a basic understanding of how to set up a Twilio SIM and use the Commands API. If you are new to this concept check out the Commands API documentation and this example on how to send machine-to-machine Commands with the Twilio SIM. More TwilioIoT projects can be found, along with this one, on GitHub.
- Sign up for a free tier Azure account
- Install Azure CLI
- Create a new Virtual Machine
- Installing Node.js, npm & Twilio
Azure Virtual Machine + Commands API + Node.js
Receive an SMS and email it using Twilio SendGrid, C# and .NET Core
An apt business use for both Twilio SMS and Twilio Sendgrid would be for customer enquiries on a website. Using C# and .NET Core 2.2 we will build an app that receives an SMS, takes the from number and the message body and send out an email using Twilio SendGrid.
To get started with this project you will need the following:
- A Twilio account (sign up for a free Twilio account here)
- A Twilio SMS-enabled number
- The .NET Core 2.2 SDK and runtime
- A Twilio SendGrid account (sign up for free here)
- A SendGrid API Key
- Visual Studio Code or similar code editor or IDE
Creating the project
We are going to use the WebApi template project that comes with the .NET Core SDK, as a starting point.
From the command line, navigate to the location you wish to create the new application. Use the following command to ...
How to: dotfiles
Want to learn how you can setup your workstation and start developing as quickly as possible? Want all of your configurations saved somewhere?
What are dotfiles?
Dotfiles are the colloquial name for a user's configuration files. Historically many of them started with a period, making them invisible in *nix environments.
These files preserve your favorite settings on different programs that you use on your system. If you get a brand new system (or your current system is wiped out), you can just pull your dotfiles from the cloud, a USB stick, or even a floppy disk and restore all of your applications, binaries, and configurations for important applications and tools. A perfect example for developers who use git is your
[user] email = firstname.lastname@example.org name = Kevin Krauss [alias] ll = pull origin sh = push origin pf = push --force-with-lease pretty = log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset ...
Handling your business calls and texts like a... boss!
I dread the idea of having ever to change my phone number. Be it because I'm getting spammed, or because someone thinks it's a good idea to call me during the night every night for the...rest...of...my...life. I'd much rather throw away all my business cards with a disposable phone number than to dispose of my real phone number which I had for 15 years now.
To make sure we never have to dispose of our real number, today we are going to look at how to provision new phone numbers that you can give out to people or put on your business cards without leaving the Twilio Console.
- A Twilio account - you can get one for free here
- (optional) A picture frame - because you're going to want to put your picture up looking like a boss when you finish this.
Handling text messages
Build a Facebook Messenger bot with Twilio Autopilot, Functions, and SendGrid in Node.js
For event-organizers and business-owners, providing quick 24/7 customer service can be tough. I help run a hackathon for women and non-binary people and our Facebook page has to respond to so many questions, like when the event is happening, if we're looking for new organizing team members, when hacker applications open, and more! Answering these can get repetitive and tedious--if only there was a way for us developers to automate the process!
Never fear, this step-by-step tutorial will show you how to build an intelligent Facebook Messenger bot with Twilio Autopilot, Functions, and SendGrid in Node.js. If the Autopilot assistant gets stuck and the user wants to speak to a human, the assistant will hand off the conversation to the business, connecting them with a human via Email for a seamless customer experience.
Before you get started, you will need to have a Facebook Page for your ...
How to download image files in Ruby
Have you ever needed to download and save an image in your Ruby application? Read on to find out how.
Plain old Ruby
The most popular way to download a file without any dependencies is to use the standard library
Kernel#openis a method that you can use to open files, streams, or processes to read to or write from. For example, you can open a file and read its contents with the following code:
open("./test.txt") do |file| puts file.read end
Kernel#openso that it can open URIs as if they were files. We can use this to download an image and then save it as a file.
To do so, we first require
open-urithen use the
openmethod to access an image URL. We can then open up a file and write the contents of the image to the file ...