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

"programmable-chat" posts

  • By Kevin Thompson
    How to Build Chat into Ruby on Rails Applications M3gM5qVbtMu9XneBCDDDlPXgDITbX1aUvzgLAdF7D4ks04jbNslXJrzNA-jDBKfk2X181Y3G5ip95xws5ETyHSk5i-n1apG_ITJ_U9BFrEv74S-8fXlFodBDUnSdl5sMlkvUdtNk

    We build web applications for all kinds of projects. If you want to give support agents a way to communicate with customers, or provide your users with a place to share ideas, you might find yourself wanting to add messaging to your application. Let's use Twilio Programmable Chat and Ruby on Rails to build a full-featured chat application from scratch.

    Creating a New Rails App

    First we'll make sure we've got a recent version of Ruby installed, then we'll install Rails and create a new application.

    gem install rails
    rails new twilio-chat
    

    The last command will generate our Rails application in the twilio-chat directory. If we move into our newly created directory and start our server, then visit http://localhost:3000 in our browser, we should see the default Rails server page.

    cd twilio-chat
    rails s
    

    Adding a Default Action

    Now let's return to our terminal and stop our Rails server …

    Read More
  • By Kevin Ndung'u
    How to Build Chat into Django Applications with Twilio Programmable Chat django-dark

    Looking to build a realtime chat app? Building this from scratch requires thinking about lots of concerns at once. How should you model your users? What about different channels and different access levels? How about showing which users are online and when they start typing a message? There’s these questions and a lot more to answer when building a quality chat app.

    That’s where Twilio Programmable Chat comes in. This awesome service helps abstract away the groundwork involved in building realtime chat applications. Chat comes with support for basic chat features such as channels, users, roles and permissions. There are also many other advanced features that you can add incrementally to your app.

    We will create a chat room application, where users can chat on different topics in different rooms, typically known as “channels”. Our application will be simplified and through it we will explore how to build out a …

    Read More
  • By Michael Jenkins
    Building a Django Twilio Programmable Chat Application typing_on_laptop

    As a developer, I’ve always wanted to include chat capabilities in the applications I’ve created.  Coding applications is fun but I’ve been stumped by the idea of creating the complex infrastructure needed to support real-time chat.  Fortunately, I found that Twilio makes it easy to include chat capabilities in just about any application.

    In this tutorial, we’ll be creating a chat application using Python and the Django framework along with Twilio to implement the chat functionality.

    We’ll need to accomplish the following goals to get the application functioning properly:

    • Setting up Python and Django and creating the base environment for the app.
    • Adding code to the app by including HTML, CSS, and JavaScript.
    • Generating API keys from Twilio to integrate chat functionality

    Setting up the Django Environment

    Let’s get started by setting up our development environment. This tutorial requires at least Python 3.4 and assumes you’ll be using a Linux …

    Read More
  • By Onwuka Gideon
    Add Twilio Programmable Chat to a Java Struts 2 Web App bridge_struts

    The need for real-time chat can’t be overemphasized. Real-time communication with your users increases customer satisfaction, and as a result, makes your business more credible.

    In this article, I’ll walk you through setting up a Java Struts 2 application. Then we’ll add real-time chat to the application by leveraging Twilio Programmable Chat.

    By the end of this tutorial, you’ll have built an application similar to this:

    Java Struts 2 Adding Twilio Chat

    Software Requirements

    The following are used in this post:

    • Java SDK– Download and install the  Java SDK from Oracle’s site, if you don’t have it already. (I’m using version 9.0.1)
    • Eclipse IDE – Download and install Eclipse from their website. (I’m using Oxygen.1a Release (4.7.1a))
    • JavaScript (jQuery)
    • Maven (The most recent version of Eclipse includes Maven already)

    Step 1: Set up Twilio Programmable Chat

    First, we need to set up Twilio Chat Service and API keys from our Twilio account …

    Read More
  • By Kevin Thompson
    Implementing Chat in JavaScript, Node.js and React Apps rsJHVkPzN6JInuKhnWzcYNV2eCa8K8HZbz6BypiKPkV2YOXF5wQ3spsJlKUNd3afUK9hP1Btb8-3Hz2dWliQcZz_2I3HXzXVzBv8nOaRO7Ywx7LwWTSiCFdhmYnKDINoo-geh_Wx

    If you’re building a chat user interface using JavaScript React, how do you integrate the rest of the backend functionality into your application? In this article, we’ll start by cloning a Git repository with the completed chat interface, then implement Programmable Chat and test sending and receiving messages between multiple users.

    Getting Started

    We’re going to start with a simple React application that has just a few components for submitting and displaying messages. With git and npm installed, we can clone the repository, install the application’s dependencies, and start the application:

    git clone https://github.com/kevinthompson/react-chat-interface
    cd react-chat-interface
    npm install
    npm start
    

    When we start the application, we’ll see a simple chat interface where we can enter a few messages and see them displayed in our message list.

    So far we can only have a one-sided conversation. In order to allow multiple people to chat, …

    Read More
  • By Kevin Thompson
    Building Chat Interfaces Using JavaScript and React Chat interface built with React

    If you’re integrating a service like Twilio’s Programmable Chat into your website, you’re going to need an interface for users to interact with. Let’s use React and a suite of modern development tools to create an application for submitting and displaying chat messages.

    Designing Our Interface

    Before we begin building our chat interface, we should have an idea of what we want to create. Our chat application will have a container with a list of messages, and a form for writing and submitting messages. A simple design might look something like this:

    As we build our our interface, we’ll identify any isolated piece of the UI that might contain its own state and behavior. Those will be our initial React components. In this simple design, the two most distinct areas are the message list and the message form.

    Setting Up Our Development Environment

    Developers working with React commonly use a …

    Read More
  • By Kevin Lewis
    Tell stories with friends with Programmable Chat and JavaScript Hh70cyJBAafy_yH9TvNyKyTw_wdAOO7-2bvUih34RXhJLvo_Nhx8QgWbGtmnHix5g4TwI4WrDEY-gq2uqD0Hf429fRAepxy4hHIhxV1h4YVay_7mgXPkpKJgGd3tALabw3Vd2HOK

    One of my favourite icebreakers is to play a game called Once Upon a Time, which is popular enough to have its own card game. When playing, friends get to write one line of a story at a time and each player can only see the one immediately before theirs. The results are always hilarious as stories go off in all kinds of directions. I wanted the ability to play anytime with friends, where all they need is an internet-connected device. In this post I’ll show you how to create a basic online version of the game using Twilio Programmable Chat.

    Our tools

    Setting up our project

    The first thing to do is download the Node.js starter app from the Twilio …

    Read More
  • By Abhijit Mehta
    How to Add Live Support Chat to Your Web Application with JavaScript Programmable Chat setup

    Do you need live customer support chat in your web application but don’t know how to go about building it? You’ve landed in the right place. Twilio Programmable Chat can help you create the support functionality that you envision for your business.

    Let’s walk step-by-step through quickly coding a multi-party chat application.

    Demo App and Code

    You can create your own version of the project to get started by clicking on “Remix” button on the demo app.

    Screen Shot 2017-06-08 at 9.57.53 AM.png

    Starting from Scratch

    If you want to start from a blank project instead of using the Glitch Remix feature, follow along with these steps.

    Head over to Glitch and you will set up with a new environment. Open up package.json – a file which provides information about your project. Click the “Add package” button and add the twilio, http, path and request modules. Glitch will install the modules as soon …

    Read More
  • By Ari Sigal
    Coming Soon – Twilio Frame, UI Components for in-app Chat, Voice, & Video tw2_frame_blog_header
    • UI components and tools for JS, iOS, and Android.
    • Integrated with Programmable Chat, Video, and Voice SDKs.
    • Coming soon to a Twilio SDK near you.

    Today at SIGNAL, we announced Twilio Frame, a set of UI components and tools for embedding chat, voice and video in your web and mobile apps. Twilio Frame provides you with the tools to quickly build a rich, branded visual experience that works across iOS, Android, and web and is already wired to work with your Twilio apps. Frame is built on top of Twilio’s Chat, Video, and Voice SDKs allowing you to seamlessly move between different communication channels on the same screen.

    Gettin’ GUI with it

    Twilio’s first products, Programmable Voice and Messaging, opened the black box of telecom to millions of web developers. SMS and voice apps don’t have front-end requirements; the user interface is simply the phone’s native …

    Read More
  • By Ari Sigal
    Twilio Programmable Chat release with new features and pricing Programmable Chat

    Today we’re excited to announce a comprehensive update to our chat SDKs giving you even more control over the chat experience and cutting the time it takes to build full-featured chat into your mobile apps, SaaS products, and websites.

    Allow me to reintroduce myself

    We’ve found that IP Messaging wasn’t an intuitive product name for many of you. When you came looking for a Twilio chat product, you didn’t find one. Instead you found two “messaging” products. We think the name Programmable Chat does a better job of describing the current product and is a bit easier to grok for someone learning about it for the first time.

    What’s new

    With this release we’ve introduced a slew of new features to help you quickly build feature-rich chat. For a complete list you can dive into the JavaScript, iOS, and Android changelogs and the new Chat REST API. Here …

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