• Stars
    star
    135
  • Rank 268,343 (Top 6 %)
  • Language
    PHP
  • License
    Other
  • Created about 8 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Stanley is a custom SMS messaging platform to prototype early services, products, and content

Stanley-Bot

Stanley is a custom SMS messaging platform to prototype early services, products, and content. For more about this, read the article Chatbots: Your Ultimate Prototyping Tool

bots

##Step 1 Get this code. For an overview on how the repo is organized:

  • Actions: this is where you can find all the bot actions - response.php (which will be triggered by Twilio SMS API), deleteMessage.php (which you can use to manage messages), conversation.php (which is the page that lists the history of a conversation for a specific number)
  • Assets: where stylesheets, images, and scripts are saved
  • Config: all configuration files - such as config.php (where you will need to edit your project variables), installDB.php (which is the script that will install the database), messages.php (is where all the templated answers are saved), meta.php (where you can change the page headers).
  • Includes: where all scripts, functions, and dependances are stored

##Step 2 Create an account on Twilio, and get your own phone number. Note: at some point you might be asked to add credit to your number in order to keep sending / receiving messages.

##Step 3 Create an account on Heroku, and a new app (you don’t necessarily need Heroku to host your bot, this is just a simple way we used to get started) Give it a name and pick a URL for your app. If you need to password-protect your app, here is how you can do it.

##Step 4 In the Heroku dashboard under “Resources”, install the add-on ClearDB. To manage the database, you’ll need to install a client such as Sequel Pro.

##Step 5 In the Heroku Dashboard under “Deploy”, link you Github repository to your Heroku app. Set it up as “automatic deploys” - so any time you commit new code to Github you are automatically live with the changes.

##Step 6 Commit your code to git, and make sure it's available in your heroku instance. In the Heroku Dashboard under “Resources”, click on ClearDB and retrieve the information regarding your database: host, user name, password, database name. Use these credentials in your Sequel Pro. Once you are connected install your database launching this script http://YOUR_ HEROKU_INSTANCE/config/installDB.php. Once the database is installed, you can delete installDB.php from your repo.

##Step 7 Now, create a private slack channel for you and your team. Invite to the channel everyone that should be involved in the conversations. When the private slack channel is ready, set up an incoming webhook.

##Step 8 Open config.php file in your code, and edit the variables with all the details regarding your app. At this point you'll need to have the information for Twilio (account SID, token, phone number), for Slack (web hook URL, name of the private channel, name of your bot, profile image of your bot), for the database (host, name, username, password, table name).

##Step 9 In your Twilio account dashboard, go to programmable SMS, and create a new Messaging Service, and edit the REQUEST URL and FALLBACK URL values with http://YOUR_ HEROKU_INSTANCE/action/response.php.

##Step 10 Commit your code to github, and Hello World, Bot.

More Repositories

1

LaughDetection

Jupyter Notebook
118
star
2

Figproxy

Software that allows Figma to talk to hardware, enabling the creation of rapid prototypes of physical devices.
Swift
103
star
3

catcorrjs

Visualize correlations across many dimensions of categorical data (e.g., from a survey)
JavaScript
96
star
4

shape

The future of collaborative work
JavaScript
37
star
5

NorumIpnum

A “Lorum Ipsum” numeral font for use in mockups to represent placeholder data.
27
star
6

generative-kandinsky

Inspired by Kandinsky’s Circles in a Circle
JavaScript
12
star
7

ember-contentful

An Ember addon that makes it easier to work with Contentful
JavaScript
9
star
8

Cigar_Mic_DC24

Hardware and Software files for a cigar shaped microphone PCB that was designed to add functionality to AND!XOR's Bender Badge for DEF CON 24
Eagle
5
star
9

frequency-is-freedom

Jupyter Notebook
4
star
10

colab-styleguide

The coLAB living styleguide
HTML
4
star
11

HelloWorkflow

Example repo to demonstrate IDEO software collaboration best practices.
3
star
12

BasicSimbleeApp

Basic Simblee app for connected the Sparkfun Simblee breakout to a custom iOS app
Objective-C
3
star
13

eyeo-flower

Custom SAMD21E17D Arduino compatible board for Eyeo Festival 2022 workshop
3
star
14

audio_transcription

A Python wrapper for the Google Cloud Speech-to-Text API
Python
3
star
15

chIDEOiOS

chIDEO iBeacon iOS App
Swift
2
star
16

ideo-links

JavaScript
2
star
17

dCampTokyo2020

Workshop tools for d.camp Tokyo 2020
HTML
2
star
18

DS-toy-models

Jupyter Notebook
2
star
19

Abracon_RTC_Arduino_Library

Arduino library for communicating with the Abracon AB-RTCMC-32.768kHz-EOZ9-S3 real time clock
C++
2
star
20

reddit-topic-modeler

An interactive Topic Modeler powered by BERTopic and our very own Reddit scraper
Python
2
star
21

chibonysoftware

Documentation / best practices / archives for the IDEO ChiBoNy software discipline
1
star
22

creative-tensions

Repository for Creative Tensions website
JavaScript
1
star
23

avocado-allegory

A guacamole-based voting simulation
Jupyter Notebook
1
star
24

widschicago-2021

visualizations, https://widschicago.org/
CSS
1
star
25

LaughLaboratory-Dashboard

Dashboard for the Comedy Experiment - Laugh Laboratory
Jupyter Notebook
1
star
26

Imagination-Demo

JavaScript
1
star
27

omi-boilerplates

Setup code and boilerplates for OMI hackathon.
JavaScript
1
star
28

c-delta-challenge

A Rails/HTML/CSS/React challenge for creative coders.
Ruby
1
star