Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now
Build the future of communications.
Start building for free

Twilio Functions posts

  • By Dhruv Patel
    How to Escape Pesky Situations using Twilio Functions and TwiML Bins Header Image for How to Escape Pesky Situations

    Have you ever needed an out in a sticky situation? Maybe it’s a bad date, an awkward run-in, or you simply just want to leave, we’ve all been there. Here’s a nifty solution you can build yourself! Whenever needed, you can use your Twilio number to bail you out with a faux phone call in a few steps.

    Awkward Man GIF

    In this tutorial, you will learn how to leverage Twilio Functions with TwiML Bins to set up a phone service that will call your personal phone number whenever you send an SMS message to your Twilio number. This phone service will utilize synthesized speech to act as your “friend”.


    Using TwiML Bins

    TwiML Bins are a serverless solution that allows you to provide Twilio-based instructions …

    Read More
  • By Phil Nash
    Upload audio files for your Studio IVR with the Twilio CLI Assets Plugin Upload audio files for your Twilio IVR with the Twilio CLI Assets Plugin

    When building an Interactive Voice Response, or IVR, system with Twilio you might start off using text-to-speech to read out your prompts. As you move to production you may want to replace the text-to-speech with real recordings.

    In this post you will learn how to use the Twilio CLI Assets Plugin to store your recordings in a Twilio Assets service and use them in a Twilio Studio IVR application.

    Let's build an IVR

    To see this in action, let's put together a quick IVR system in Twilio Studio. To do this you will need a Twilio account. If you don't have one yet, sign up for a free Twilio account here and receive $10 credit when you upgrade.

    Open the Studio dashboard in the Twilio console and create a new Flow. Give your new Flow a name and click Next.

    When you create a new Flow a popup appears to ask for a name for the Flow. Call it "IVR".

    Select the IVR/Phone Tree template …

    Read More
  • By Niels Swimberghe
    Proxy your phone number with Twilio Programmable Voice and Twilio Functions Header

    Using Twilio's Super Network, you can quickly buy phone numbers from around the world. You can even specify a specific area code to buy a phone number that is local to a certain state, territory, or region.

    With Twilio Voice, you can quickly integrate voice communication into your applications. For the application in this tutorial, you'll use Twilio phone numbers, Twilio Voice, and Twilio Functions to create a proxy phone number!

    What do I mean by a proxy phone number? Before explaining that, I will discuss a similar concept. In web development, there's a concept of "reverse proxies". When you send HTTP requests to a reverse proxy, the reverse proxy forwards the traffic to a web server on a private network. This way the web server still serves a website but isn't exposed directly to the internet adding benefits like security, performance enhancements, and much more.

    Similarly, …

    Read More
  • By Phil Nash
    Twilio CLIのAssetsプラグインをリリースしました Assetsプラグインを発表 - Twilio CLIを使ってアセットをアップロード・管理

    この記事はTwilio Developer AdvocateのPhil Nashこちらで公開した記事(英語)を日本語化したものです。

    Twilio CLIは、Twilioの開発者にとって便利なツールです。 コマンドラインから手軽にTwilioのすべてのAPIにアクセスできるだけでなく、電話番号管理や、ローカル環境でWebhook URLにワンステップでアクセスできるコマンド、プラグインシステムなど数多くの機能を提供します。CLIプラグインはCLIのコア機能を拡張し、Flexプラグインの構築と管理アクセストークンの生成Twilio Functionsを使った構築、そして今回のAssetsプラグインによるTwilio Assetsサービスへのアセットのアップロードなどを可能にしてくれます。



    Assetsプラグインでは、画像や音声ファイルなどのアセットの保管先として使用できるAssetsサービスを作成し、アセットのアップロードや管理が行えます。作成したAssetsサービスはTwilioのアプリケーションで使用できます。たとえば、音声ファイルをアップロードして、Twilio Voiceを利用した音声通話中に<Play>動詞で再生するファイルとして使用したり、MMSでユーザーに送信する画像WhatsAppメディアメッセージをアップロードしたりすることができます。


    Asse …

    Read More
  • By Phil Nash
    Announcing the Assets Plugin for the Twilio CLI Announcing the Assets Plugin - Upload and manage assets using the Twilio CLI

    The Twilio CLI is a powerful tool for Twilio developers. Not only does it give you access to all the Twilio APIs from the comfort of your command line, there are advanced features like phone number management, magic webhook tunnels, and the plugin system. CLI plugins extend the functionality of the CLI core and allow you to do things like build and manage Flex plugins, generate access tokens, build with Twilio Functions, and now upload assets to a Twilio Assets service with the Assets Plugin.

    In this post I'm going to show you how to use the Assets Plugin and then go into a bit of detail about why we built it.

    What is the Assets Plugin?

    The Assets Plugin allows you to create an Assets service that you can use as a bucket as a destination for assets, like images or audio files, …

    Read More
  • By Phil Nash
    Build a competition entry chat bot with Twilio Autopilot and Facebook Messenger Build a competition entry chat bot with Twilio Autopilot and Facebook Messenger

    The Apprentice is back on TV screens around Asia, and Twilio is the official technology partner. Throughout the series Twilio APIs have supported the show and candidates; delivering notification messages to the teams, powering their solutions in episode 11, and running a Watch & Win competition for the viewers.

    The Watch & Win competition was implemented as a chatbot over Facebook Messenger. In this post we will look at how you can build your own competition bot using Twilio Autopilot, Twilio Functions and Airtable.

    A screen grab of talking with a bot over Facebook Messenger. It asks a question, I respond with the answer, then it asks for my name which I also respond to.

    Defining the competition

    To build a watch and win competition bot, we need a few parameters for how the bot will work:

    • The competition will run every week that the show is broadcasting, with a new question per episode
    • The question will include a phrase that was said during the week's episode and three options for who said it
    • Viewers can enter …
    Read More
  • By Dominik Kundel
    New Major Serverless Toolkit Version decorative header image "New Serverless Toolkit - Configuration, Assets Plugin, and more"

    The Serverless Toolkit is a collection of open-source CLI tooling to improve your development flows with Twilio Functions and Assets by providing local development, deployment, templates and other functionality. Today we are releasing the first major version bump since 2019 including a variety of bug fixes, new features and a few breaking changes. In this blog post we'll cover what's new as well as the breaking changes that come along with it.

    This blog post is primarily aimed at existing Serverless Toolkit users. If you've never used the Serverless Toolkit before, make sure to check out our Getting Started guide.

    The Serverless Toolkit is an open-source Twilio Labs project and is not covered by Twilio's regular SLAs. It includes both the Serverless plugin for the Twilio CLI ( @twilio-labs/plugin-serverless) and the standalone twilio-run command. If you find bugs/issues or have feature requests, we welcome issues and contributions in …

    Read More
  • By Kelley Robinson
    Vérifier son téléphone Serverless avec Twilio Verify et Twilio Functions vérifier son téléphone serverless

    Mise à jour en Juin 2020 - ce projet utilise maintenant la boîte à outils/toolkit Twilio Serverless et l’API Functions.

    La sécurité est au cœur des préoccupations de tout un chacun. La vérification par téléphone est un moyen simple de sécuriser votre application et aide à éviter les comptes de bots/robots. L’envoi de mots de passe à usage unique sur le téléphone d’un utilisateur - afin de valider qu’ils ont bien l’appareil et qu’il leur appartient - est un outil de sécurité répandu, utilisé lorsque les personnes s’inscrivent ou vous donnent leur numéro de téléphone pour la première fois.

    La confiance en les numéros de téléphones de vos utilisateurs fait diminuer les fraudes et augmente la fiabilité des notifications.

    Regardons ensemble comment vérifier les numéros de téléphone à partir d’une application web qui utilise les fonctions serverless de Twilio et l’API Twilio Verify.

    Liens rapides :

    • Allez …
    Read More
  • By Chisimdiri Ejinkeonye
    Build a Speech Translation Bot with Twilio Programmable Voice and IBM Watson watson.png

    In this tutorial, you'll build a speech translation bot that analyzes your voice on a call and responds with a translated version in the language of your choice. Most speech translation services require an internet connection. However, the bot you’re going to build would just require your cellular network and as a result, could be used on even the simplest feature phones.

    To build this, you'll use Twilio Programmable Voice and IBM Watson’s Speech Translation API.


    In order to complete this tutorial you will need the following:

    • IBM Watson API Account
    • Node.js knowledge
    • A free Twilio account (if you sign up with this link, we'll both get $10 in Twilio credit when you upgrade)
    • A Twilio phone number

    Setting Up Twilio

    To get started, you will need a Twilio account. If you don’t have one, you can register for a free Twilio account and begin with …

    Read More
  • By Chisimdiri Ejinkeonye
    Construire un bot de traduction vocale avec Twilio et IBM Watson Construire un bot de traduction vocale avec Twilio Programmable Voice et IBM Watson

    Dans ce tutoriel, vous allez construire un bot de traduction vocale qui analyse votre voix lors d’un appel et répond avec une version traduite dans le langage de votre choix. La plupart des services de traduction vocale nécessitent une connexion internet. Cependant, le bot que vous allez construire n’a besoin que d’un réseau cellulaire et peut ainsi être aussi utilisé sur les téléphones qui n’ont que les fonctionnalités de base.

    Pour construire ça, vous utiliserez la Programmable Voice de Twilio et l’API Speech Translation d’IBM Watson.

    Conditions préalables

    Pour être à même de suivre ce tutoriel, vous aurez besoin de :

    • Un compte API IBM Watson
    • Des connaissances en Node.js
    • Un compte Twilio gratuit
    • Un numéro de téléphone Twilio

    Mise en place de Twilio

    Commencez par vous connecter à votre compte Twilio. Si vous n’en avez pas encore, vous pouvez vous inscrire ici pour avoir un compte et …

    Read More
  • Newer
    Sign up and start building
    Not ready yet? Talk to an expert.