Name: owplan
Owner: International Business Machines
Description: Plan your next conference schedule with an OpenWhisk recommendation bot: Conference Plan Bot
Created: 2016-05-10 21:03:41.0
Updated: 2017-05-19 21:29:07.0
Pushed: 2016-05-13 15:47:35.0
Homepage: null
Size: 94
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The Conference Plan Bot is a serverless, event-driven, bot built on the OpenWhisk open source project.
An instance is running on the hosted OpenWhisk environment provided by IBM Bluemix. It has an associated Cloud Foundry app at http://owplan.mybluemix.net/ which provides the schedule UI, and two proxy services for handling Twitter integration and IoT device reading API calls.
The bot is designed to reply to user tweets that request conference schedule information with real time data on sessions and room conditions. It's currently configured for the O'Reilly Open Source Convention (OSCON) which runs from May 16th to May 20th.
For example, if you tweeted @owplan with the keywords “serverless, bot, Docker, containers” you'd get back a list of sessions at OSCON conference matching those terms for each day.
You can read more about bots, serverless programming, and the motivation for the Conference Plan Bot on the blog post at developerWorks Open.
Detailed instructions are pending. This repository is meant to provide examples of reusable code and approaches to building OpenWhisk based bots, rather than completely working code with all dependencies.
For now, explore devops/create-update-actions.sh
and the individual action code in the openwhisk/actions/js
folder. These describe the microservices built for the demo, and represent actions of moderate complexity that are broken into several files and use promises to handle asynchronous processing.
Your primary workflow after setup will be editing actions in JavaScript, compiling them if they consist of more than one file (or have third party NPMs not provided by your OpenWhisk environment), and uploading them.
To get started with an OpenWhisk bot running on Bluemix, you will need to do the following:
room
, schedule
, and tweet
.tweet-fetch
action.git clone
this repository.cd
to the owplan/devops
foldervagrant up
vagrant ssh
to the nodedevops/setup-workstation.sh
devops/setup-workstation.sh
cloudant-config.json
file within each relevant action folder.twitter-config.json
file within each relevant action folder.user@example.org_space
for your Bluemix account.devops/create-update-actions.sh
wsk action list
wsk trigger list
wsk rule list
web
directory, modify web/manifest.yml
as neededcf push
to upload the PHP application to Bluemix.iot/room/room.ino
file, edit the WiFi settings and your Bluemix app endpoint, then verify and upload it to the Arduino via USB.See CONTRIBUTING.md for details.
See LICENSE for details. This demo is built with dependencies on several NPM packages, Bootstrap, and Arduino hardware libraries. You'll need to include those separately to build a working instance of this bot.