GithubHelp home page GithubHelp logo

isabella232 / ri-group-communication-toolkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeforamerica/ri-group-communication-toolkit

1.0 0.0 1.0 395 KB

This Twilio-powered Rapid Response Kit gives you the elements to build and deploy communications apps quickly and easily.

Python 95.69% CSS 4.31%

ri-group-communication-toolkit's Introduction

#The Twilio.org Rapid Response Kit The Twilio.org Rapid Response Kit is a collection of open source communications tools any developer or technically inclined user can deploy quickly. Scroll down to INSTALLATION to get started.

Twilio.org is an initiative of the communications API platform company Twilio. Our mission is to provide nonprofit organizations with communications technologies to help them reach their goals and further the impact of social good.

If you are a qualified nonprofit, apply at Twilio.org/apply. Find other open source tools and resources at twilio.org/resources

Prerequisites

Twilio Rapid Response Kit is a built on python and the flask microframework. It uses virtualenv to sandbox the Twilio Rapid Response Kit from the rest of your development or server environment. Twilio Rapid Response Kit uses pip to resolve and install dependencies.

Please make sure that before you begin you meet the minimum requirements:

  • Python 2.7
  • virtualenv
  • pip

Tools available out-of-the-box

Twilio.org Rapid Response Kit comes with several tools already installed. When you start up the Twilio.org Rapid Response Kit it will report what tools are available and where. Below is a brief description of every tool provided.

###Auto-Respond Use this tool to set up an recorded auto-responder to inbound voice calls or text messages. Respond to voice calls with a spoken message or to an incoming SMS message with a response SMS.

Useful for setting up and updating information lines.

###Broadcast A simple messaging broadcast app. Send a one-way communications blast to a defined group of contacts.

Useful for broadcasting information to volunteers.

###Conference Line Configures a Twilio Number to behave like a conference line. Anyone who calls into the conference line will be dropped into a conference room. Supports whitelisting numbers and multiple conference rooms.

###Forwarder Forwards all voice traffic from a Twilio Number to a given Phone Number.

Useful for temporary public phone numbers.

###Ringdown A tool that allows you to dial one number, which then will sequentially dial down a list of prioritized contacts until one of those contacts answer. You are able to set up contact lists ahead of time and if no one answers an optional message will be spoken.

Useful for setting up ad-hoc response teams and rudimentary call centers.

###Simple Help Line Use this interactive voice response app to set up simple options for callers to press a number for information, or to connect to a pre-determined agent. Each key on the dialpad can be configured to either dial a Phone Number or provide information.

Useful for setting up simple phone menus a la "Press 1 to call the Site Manager, Press 2 to hear shelter hours, etc"

###Survey Survey requires integration with Parse to record results. An SMS-powered survey app to send out questions to a specified list of numbers and gather responses. You define the response parameters. Survey is similar to Broadcast but instead of broadcasting an informational message, it broadcasts a yes / no question. Responses will be recorded in Parse for analysis and action.

Useful for quick status and safety checks. Ex: "Can you help at 12th Street Response Center?"

###Town Hall With this group conference call tool, an organizer can dial one number which then dials a list of predefined contacts. Individuals who answer the call are dropped into the same conference. This can handle up to 40 people in one conference call.

Useful for quickly gathering key stakeholders together for conference calls without requiring everyone to dial into a predefined number.

Installation

To install Twilio Rapid Response Kit to your development environment for testing or development work, you can follow these simple steps.

  1. Download or git clone this project.
  2. From the project directory run make install on the command line
  3. During installation you will be prompted for your Twilio Account credentials, you can access these credentials from your [Twilio Account Dashboard] (https://www.twilio.com/user/account). If you don't have a Twilio Account yet you can [sign up for a free trial account] (https://www.twilio.com/try-twilio)

Once the Twilio Rapid Response Kit is installed, you can run it in debug mode by running the make debug command from the Twilio Rapid Response Kit folder. This will start the application running on [http://localhost:5000] (http://localhost:5000).

Stateless Design

You may have noticed that we haven't discussed what database Twilio.org Rapid Response Kit uses yet. This is because Twilio.org Rapid Response Kit is comprised of stateless tools that do not require a database to maintain the application state.

This was a conscious design decision, Twilio.org Rapid Response Kit does not require a database to function and therefore does not require the overhead generally associated with administering a database.

Just the beginning

These sample tools are just the beginning, if you want to extend Twilio.org Rapid Response Kit to do more, please read our [Contributor's Guide] (contributors.md)

This kit, and all other repos in the Twilio.org Github are open source. If you’d like to be a contributor to this project please contact [email protected]

Deploying

Once you have evaluated Twilio.org Rapid Response Kit and are happy with its functionality, it's time to deploy it. For Twilio.org Rapid Response Kit to function correctly it must be able to communicate with Twilio and vice-versa, so it must be on a publicly accessible server.

Your own hardware

To deploy Twilio.org Rapid Response Kit on your own server you can follow the same installation guide. The flask server is not meant for production deployment, we suggest running the Twilio.org Rapid Response Kit via uwsgi and forwarding to it from nginx.

Deploying on Heroku

  1. pip install gunicorn
  2. Create Procfile

`web: gunicorn rapid_response_kit.app:app` 3. Edit /rapid_response_kit/utils/config.py ```python SECRET_KEY = '' TWILIO_ACCOUNT_SID = '' TWILIO_AUTH_TOKEN = ''
try: 
   import local_config
except:
  import os
  SECRET_KEY = os.environ['SECRET_KEY']
  TWILIO_ACCOUNT_SID = os.environ['TWILIO_ACCOUNT_SID']
  TWILIO_AUTH_TOKEN = os.environ['TWILIO_AUTH_TOKEN']
  ```
  1. Create local_config.py with your environment variables and add to .gitignore
  2. Remove /rapid_response_kit/utils/config.py from .gitignore
  3. Add to requirements.txt

`gunicorn==18.0`

Meta

No warranty expressed or implied. Software is as is. MIT License Powered by Twilio .org

The Twilio.org Rapid Response Kit is just a flask app, so feel free to deploy as you would any flask application.

ri-group-communication-toolkit's People

Contributors

codesliced avatar megmurph avatar

Stargazers

 avatar

Forkers

geekspeed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.