Empower Your Docker Containers with Watson
Lin Sun, IBM
Senior SW Eng. / Master Inventor
@linsun_unc
Phil Estes, IBM
STSM, Docker Captain
@estesp
Watson + Docker
1. What is Watson?
2. Possible Scenarios
3. Watson + containers
Agenda
Demo Application
1. Overview of the application
2. Demonstration
3. How to add Watson capability
to any application
What is Watson?
The world is getting smarter every day
Watson is really good at understanding
nuances in language and intention.
What we want to do is be able to
identify abuse patterns early and stop
this behavior before it starts.
Stopping abuse on social media
“
- Chris Moody, VP, Twitter
InterConnect, March 2017
Personal Concierge Services
By 2021, the research firm MarketsandMarkets expects
the video streaming market to reach $70 billion*
What should I watch tonight?
* http://www.marketsandmarkets.com/PressReleases/video-streaming.asp
“Guiding a presenter in a collaborative session on word choice”
Watson related Sample Inventions
“Text prediction using environment hints”
“Ratings from communication sessions”
PATENT US20140115065
PATENT US20140142923
PATENT US20140337249
• Easily deploy Watson services within IBM Bluemix
• Access Watson service APIs locally or from any cloud
• Containers are a great match for modern applications
• Interact with Watson APIs via any runtime
• Add cognitive capabilities with micro services
• IBM Bluemix Container Service provides premium
support for Watson services binding and capabilities
Watson and Containers
Uses several APIs/services:
> TripIt API
> FlightStats API
> Weather Company API
> Cloudant NoSQL DB
> Watson Conversation Service
A Node.js application; default deploys as a CloudFoundry application.
Easily decomposable into a set of service queries after retrieving trip data.
https://github.com/estesp/flightassist/
11
FlightAssist: Pre-Watson
12
FlightAssist: Application Layout
FlightAssist
Language: Node.js
Monolithic CF app
TripIt API
Bluemix Services
Weather
Company
Data
External API/Services
Cloudant
FlightStats API
http://localhost:3000/
http://localhost:3000/authenticate
http://localhost:3000/flights
view index.ejs
oAUTH w/TripIt
TripIt oAUTH callback > view trips.ejs
AJAX calls:
/i/tripdata
/i/flightinfo
/i/weather
/i/conninfo
12
FlightAssist: Application Layout
FlightAssist
Language: Node.js
Monolithic CF app
TripIt API
Bluemix Services
Weather
Company
Data
External API/Services
Cloudant
FlightStats API
http://localhost:3000/
http://localhost:3000/authenticate
http://localhost:3000/flights
view index.ejs
oAUTH w/TripIt
TripIt oAUTH callback > view trips.ejs
AJAX calls:
/i/tripdata
/i/flightinfo
/i/weather
/i/conninfo
Watson
Conversation
FlightConcierge!
13
FlightAssist: Application Demonstration
http://localhost:3000/
FlightAssist
Language: Node.js
App Container
WeatherService
Language: Python
Container
http://localhost:5000/
/i/weather
FlightAssist
Language: Node.js
Monolithic CF app
AJAX calls:
/i/tripdata
/i/flightinfo
/i/weather
/i/conninfo
http://localhost:3000/
FlightAssist
Language: Node.js
Monolithic
Containerized App
http://localhost:3000/
WeatherService
Language: Swift
OpenWhisk Action
See: https://github.com/estesp/flightassist/
13
FlightAssist: Application Demonstration
http://localhost:3000/
FlightAssist
Language: Node.js
App Container
WeatherService
Language: Python
Container
http://localhost:5000/
See: https://github.com/estesp/flightassist/
13
FlightAssist: Application Demonstration
http://localhost:3000/
FlightAssist
Language: Node.js
App Container
WeatherService
Language: Python
Container
http://localhost:5000/
See: https://github.com/estesp/flightassist/
Conversation
Language: Node.js
Container
13
http://localhost:3000/
FlightAssist
Language: Node.js
App Container
WeatherService
Language: Python
Container
http://localhost:5000/
See: https://github.com/estesp/flightassist/
Conversation
Language: Node.js
Container
FlightConcierge
Let’s ask our flight concierge
Demo Time!
“We have it in our
power to change the
world over.”   
-Thomas Paine
Thank You
Build something cognitive!
Twitter: @estesp @linsun_unc
Demo: https://github.com/estesp/flightassist
#dockercon

Empower Your Docker Containers with Watson - DockerCon 2017 Austin

  • 1.
    Empower Your DockerContainers with Watson Lin Sun, IBM Senior SW Eng. / Master Inventor @linsun_unc Phil Estes, IBM STSM, Docker Captain @estesp
  • 2.
    Watson + Docker 1.What is Watson? 2. Possible Scenarios 3. Watson + containers Agenda Demo Application 1. Overview of the application 2. Demonstration 3. How to add Watson capability to any application
  • 3.
  • 4.
    The world isgetting smarter every day
  • 5.
    Watson is reallygood at understanding nuances in language and intention. What we want to do is be able to identify abuse patterns early and stop this behavior before it starts. Stopping abuse on social media “ - Chris Moody, VP, Twitter InterConnect, March 2017
  • 6.
  • 7.
    By 2021, the researchfirm MarketsandMarkets expects the video streaming market to reach $70 billion* What should I watch tonight? * http://www.marketsandmarkets.com/PressReleases/video-streaming.asp
  • 9.
    “Guiding a presenterin a collaborative session on word choice” Watson related Sample Inventions “Text prediction using environment hints” “Ratings from communication sessions” PATENT US20140115065 PATENT US20140142923 PATENT US20140337249
  • 10.
    • Easily deployWatson services within IBM Bluemix • Access Watson service APIs locally or from any cloud • Containers are a great match for modern applications • Interact with Watson APIs via any runtime • Add cognitive capabilities with micro services • IBM Bluemix Container Service provides premium support for Watson services binding and capabilities Watson and Containers
  • 11.
    Uses several APIs/services: >TripIt API > FlightStats API > Weather Company API > Cloudant NoSQL DB > Watson Conversation Service A Node.js application; default deploys as a CloudFoundry application. Easily decomposable into a set of service queries after retrieving trip data. https://github.com/estesp/flightassist/ 11 FlightAssist: Pre-Watson
  • 12.
    12 FlightAssist: Application Layout FlightAssist Language:Node.js Monolithic CF app TripIt API Bluemix Services Weather Company Data External API/Services Cloudant FlightStats API http://localhost:3000/ http://localhost:3000/authenticate http://localhost:3000/flights view index.ejs oAUTH w/TripIt TripIt oAUTH callback > view trips.ejs AJAX calls: /i/tripdata /i/flightinfo /i/weather /i/conninfo
  • 13.
    12 FlightAssist: Application Layout FlightAssist Language:Node.js Monolithic CF app TripIt API Bluemix Services Weather Company Data External API/Services Cloudant FlightStats API http://localhost:3000/ http://localhost:3000/authenticate http://localhost:3000/flights view index.ejs oAUTH w/TripIt TripIt oAUTH callback > view trips.ejs AJAX calls: /i/tripdata /i/flightinfo /i/weather /i/conninfo Watson Conversation FlightConcierge!
  • 14.
    13 FlightAssist: Application Demonstration http://localhost:3000/ FlightAssist Language:Node.js App Container WeatherService Language: Python Container http://localhost:5000/ /i/weather FlightAssist Language: Node.js Monolithic CF app AJAX calls: /i/tripdata /i/flightinfo /i/weather /i/conninfo http://localhost:3000/ FlightAssist Language: Node.js Monolithic Containerized App http://localhost:3000/ WeatherService Language: Swift OpenWhisk Action See: https://github.com/estesp/flightassist/
  • 15.
    13 FlightAssist: Application Demonstration http://localhost:3000/ FlightAssist Language:Node.js App Container WeatherService Language: Python Container http://localhost:5000/ See: https://github.com/estesp/flightassist/
  • 16.
    13 FlightAssist: Application Demonstration http://localhost:3000/ FlightAssist Language:Node.js App Container WeatherService Language: Python Container http://localhost:5000/ See: https://github.com/estesp/flightassist/ Conversation Language: Node.js Container
  • 17.
    13 http://localhost:3000/ FlightAssist Language: Node.js App Container WeatherService Language:Python Container http://localhost:5000/ See: https://github.com/estesp/flightassist/ Conversation Language: Node.js Container FlightConcierge
  • 18.
    Let’s ask ourflight concierge Demo Time!
  • 19.
    “We have itin our power to change the world over.”    -Thomas Paine
  • 20.
    Thank You Build somethingcognitive! Twitter: @estesp @linsun_unc Demo: https://github.com/estesp/flightassist #dockercon