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

Code, Tutorials and Hacks

  • By Dhruv Patel
    Build a GPT-3 Discord Chatbot with Node.js Gpt-3 Discord Bot Header

    OpenAI’s GPT-3 is a language model that offers a multifaceted “text in, text out” interface that can be applied to virtually any task. It can produce code, stories, recipes, and more. The engine is capable of doing anything - it can even do your homework for you! OpenAI's GPT-3 engine is also a remarkable tool for chatbots since its output text is indistinguishable from human text. A fitting integration with this is Discord chatbots.

    In recent years, Discord has become the central messaging platform for communities especially with the help of Discord bots. Through Discords extensive API, developers are able to build robust bots that are capable of various actions such as automating tasks and chatting with users.

    With the gaining traction of both of these technologies, I decided to combine them to build an intelligent but fun chatbot.

    In this article you’ll learn how to use …

    Read More
  • By Dhruv Patel
    How to Send Recurring Emails in Node.js with SendGrid Header

    When building applications, there are often times when you need to create and run background tasks that run on a schedule such as checking for updates or backing up data.

    There are many ways of scheduling recurring tasks in Node.js such as using Crontab or cloud based extensions. Another approach to scheduling recurring tasks is through npm packages such as node-cron and node-schedule which provide flexible cron scheduling to Node.js through libraries without the need to rely on infrastructure.

    In this tutorial, you’ll learn how to use node-schedule and SendGrid to schedule recurring emails.

    Prerequisites

    Here is what you will need to follow along with this article:

    Configure your environment

    Start off by logging into your SendGrid account and heading to the API Keys section. Click the blue “Create API Key” button …

    Read More
  • By Miguel Grinberg
    Send Scheduled Emails from Python and Flask with Twilio SendGrid Send Scheduled Emails from Python and Flask with Twilio SendGrid

    Twilio SendGrid eliminates many of the complexities of sending email. In a previous tutorial, you learned how to use SendGrid’s SMTP server to send emails to your users from a Python and Flask application. But how do you schedule your emails so that they are sent at a specific time?

    In this short tutorial you will learn how to use SendGrid’s email scheduling options, which will save you from having to implement your own background scheduling.

    Requirements

    To work on this tutorial you will need the following items:

    • Python 3.6 or newer. If your operating system does not provide a Python 3.6+ interpreter, you can go to python.org to download an installer.
    • A free Twilio SendGrid account. If you are new to Twilio Sendgrid you can create a trial account. With a trial account you can send 100 emails per day forever.

    Create a Flask project

    Find an …

    Read More
  • By Daizen Ikehara
    SIGNALで発表されたTwilioQuest 3.2を使って自分だけのエクステンションを作成するには TwilioQuest 3 - Extension

    SIGNAL 2021 カンファレンスのブログシリーズ、第5回目、並びに「Qiita Advent Calendar - Twilioを使うためのコツ、TIPSなど、Twilioのことなら何でも共有しよう!」 1日目を同時に投稿します。

    始めに

    第1回(SIGNALカンファレンスの超速報)、第2回(基調講演の振り返り)、第3回(SIGNAL TVをMCの立場から振り返る)、第4回(Twilio SIGNAL 2021 イベント〜製品アナウンスの振り返り)に続いてSIGNALで発表されたTwilioQuest 3.2の詳細やエクステンションの開発方法について紹介します。

    TwilioQuestとは

    TwilioQuestはゲームをプレイするようにさまざまな開発スキルを向上できるチュートリアルです。2019年に当時の最新バージョンである「TwilioQuest 3」がリリースされました。Twilio製品の利用方法だけでなく、Pythonのようなプログラミング言語や、GitHub(ソフトウェア開発プラットフォーム)の使い方などを学習できます。

    より詳しい説明やミッションの進め方、日本語版のアナウンスについては以前こちらの記事で取り上げています。

    Read More
  • By Mia Adjei
    Add a Volume Slider to Your Livestream App Add a Volume Slider to Your Livestream App

    If you've had a chance to try out my previous video livestreaming tutorial, you might already know how to build your own Twilio Live video streaming application with experiences for both the streamer and the audience.

    In the starter project, however, the audience members do not yet have a way to control the volume of the livestream they are listening to from the UI of your application. This quick tutorial will build on the previous one, showing you how to add a volume slider to the audience side of your application.

    Let's get started!

    Prerequisites

    • A free Twilio account. (If you register here, you'll receive $10 in Twilio credit when you upgrade to a paid account!)
    • Node.js v14+ and npm installed on your machine.
    • ngrok
    • The code from the previous tutorial. Clone the repository here and follow the steps in README.md to get set up.

    Add an input …

    Read More
  • By Nida Khan
    How to Create REST APIs with Java and Spring Boot header - How to Create REST APIs with Java and Spring Boot

    I’ve been using Twilio’s REST APIs for quite some time now. I was always amazed to see how REST APIs are used in establishing communication between client and server over HTTP. You call an API, which calls the server. The server then performs the whole business logic and returns the result.

    I always wanted to know how these APIs are developed so that I can create APIs myself. This led me to explore various frameworks such as Spring Boot. After developing several REST APIs using Spring Boot, I decided to write this tutorial to help beginners get started with Spring Boot.

    In this tutorial, you will develop REST APIs in Spring Boot to perform CRUD operations on an employee database.

    Prerequisites

    Read More
  • By Heather Hargreaves
    Integrate Discord and Sentiment Analysis with Twilio Flex Integrate Discord and Sentiment Analysis with Twilio Flex

    In this post, you will learn how to set up a Discord bot connected to Flex so agents can chat directly with customers on that platform, while pulling in sentiment analysis of previous messages. You will learn how to use IBM’s Tone Analyzer API and Segment to calculate a user’s sentiment from their texts in a Discord channel.

    Originally this project was created as a part of the 2021 Solutions Engineering Hackathon. We pared our original project down to the following for simplicity’s sake and to distill the project’s essence, which is to help contact center teams interact with customers directly in Discord. To see the original contents of the project, see this Github repo.

    To see a demo of the original project and background on why we chose Discord, check out this quick video below.

    Prerequisites

    For this project, you will need:

    • A Twilio account. Sign up for …
    Read More
  • By Matthew Gilliard
    How to use the Twilio API from Android's Tasker App How to use the Twilio API from Android's Tasker App

    When I first got an Android phone I was very excited about writing my own apps, and played with Android Studio to write a few simple things. In the end I found myself building really basic apps, which were useful to me but took a long time to write because I didn't know the Android APIs well. Along with that, I worked on them so infrequently that my tooling was always out of date. I wanted something simpler, like IFTTT (if this then that) for my phone.

    Enter Tasker, an app for watching and automating your Android phone's sensors and capabilities. You define tasks, lists of things you want your phone to do, and profiles which define when those tasks should be run.

    You can read more on the Tasker homepage and there are countless lists online of cool things people have done with it. Tasker currently costs …

    Read More
  • By Kelley Robinson
    Get started building push authentication with React Native and Twilio Verify Get started building push authentication with React Native and Twilio Verify

    Verify Push is a powerful API and SDK that turns a mobile device into a secure key that can replace passwords or add two-factor authentication to web or mobile login. Push authentication is one of the most secure and user friendly forms of authentication and our React Native SDK makes it easy to write familiar JavaScript code for iOS, Android, or both!

    This blog post will walk through how to get up and running with our React Native SDK and sample application to see Verify Push in action on your device or emulator. This is a great way to experience the functionality and get your development environment set up properly. It's also a good starting point for adding push authentication to your own application.

    Prerequisites for building push authentication with React Native

    To code along with this post you'll need:

    • A free Twilio account; sign into an existing account or …
    Read More
  • By Mark Lewin
    Create a Cold War-Era Numbers Station with Twilio Voice and Python Flask Create a Cold War-Era Numbers Station with Twilio Voice and Python Flask

    Put on your fedora and dark glasses, because you’re about to become a Cold War-era numbers station operator!

    What is a numbers station, I hear you ask? A numbers station is a radio station in the shortwave frequency band that periodically reads out a sequence of numbers, popularly believed to be a secret code for intelligence officers listening for encrypted information. Numbers stations appeared during World War I and are likely to have become much more prevalent during the Cold War.

    In the past, the numbers were often spoken in what sounded like a creepy voice, probably due to the poor radio transmission quality available at the time. You can listen to a few recent examples of numbers station transmissions on the Crypto Museum's website. Some numbers stations survive to this very day.

    Since many people enjoy cracking secret codes, I thought it would be fun to show you …

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