Drupal, Alexa, and Big Mouth Billy Bass Walk into a baR
DrupalCon Baltimore April 27, 2017
Amber Matz & Blake Hall
Drupal, Alexa, and Big Mouth Billy Bass Walk into a baR Amber Matz - - PowerPoint PPT Presentation
Drupal, Alexa, and Big Mouth Billy Bass Walk into a baR Amber Matz & Blake Hall DrupalCon Baltimore April 27, 2017 About us Amber Matz Blake Hall Production Manager and Trainer Senior Developer and Trainer Drupalize.Me Drupalize.Me
DrupalCon Baltimore April 27, 2017
Amber Matz & Blake Hall
Amber Matz Production Manager and Trainer Drupalize.Me @amberhimesmatz Blake Hall Senior Developer and Trainer Drupalize.Me @blakehall
Concepts & process
Approaches
Billy Bass as “Alexa”
custom web services Endpoint
“Alexa Ask fish jokes for a silly joke”
Alexa, ask Fish Jokes for a [silly] joke. Return a joke tagged with term “silly” from fishjokes4.life (Drupal site)
Computer
+ your skill name
will recognize
variables you need (slots)
functionality
(help, stop, cancel)
method
model
AWS Lambda Web Service
Alexa
Skill
User
Device
Skill Alexa
AWS Lambda
Find oo Aleya GitHub
AWS Lambda Blueprints
Lambda data sources
Alexa
AWS Lambda
Skill Results from a Web Services API Call Hard- coded values in an array
Skill Alexa
AWS Lambda
Hard- coded values in an array
Web services API call
Skill Alexa
AWS Lambda
Results from a Web Services API Call
Views JSON
Skill Alexa
Web Service
Create an Amazon Developer Account Sign in to developer.amazon.com Get started > Alexa Skills Kit
requests to the service for your skill
together
when initiating a conversation with your skill
Invocatioo Name
to invoke intents
intents
interaction model
GetCategorizedJokes tell me a joke about {Category} GetCategorizedJokes tell me a {Category} joke GetCategorizedJokes give me a joke about {Category} GetCategorizedJokes give me a {Category} joke GetCategorizedJokes joke about {Category} GetCategorizedJokes jokes about {Category} GetCategorizedJokes for a {Category} joke GetCategorizedJokes for {Category} jokes GetFishJokes tell me a joke GetFishJokes give me a joke GetFishJokes get me a joke GetFishJokes joke GetFishJokes jokes
Custon slot type Custon intent Custon intent
Guidelines:
“Amazon”, “Echo”, etc.
Guidelines:
phrases
in curly brackets
Represent:
your skill
declares the set of intents your skill can accept and process
TIP:
intents for common actions: “stop”, “Help”, “CANCEL”, ETC.
{ "intents": [ { "intent": "GetNewFactIntent" }, { "intent": "AMAZON.HelpIntent" }, { "intent": "AMAZON.StopIntent" }, { "intent": "AMAZON.CancelIntent" } ] }
Custon intent Amazoo built-in intents
{ "intents": [ { "intent": "GetCategorizedJokes", "slots": [ { "name": "Category", "type": "LIST_OF_CATEGORIES" } ] }, { "intent": "GetFishJokes", }, { "intent": "AMAZON.HelpIntent" }, { "intent": "AMAZON.StopIntent" }, { "intent": "AMAZON.CancelIntent" } ] }
Custon intent Custon intent
Amazoo built-in intents Custon slot type
AWS Lambda Web Service
Alexa
Skill
User
Device
Using AWS LAMBDA?
Skill Alexa
AWS Lambda
Hard- coded values in an array
Arsay of Jokes
Randon Joke
Web services API call
Skill Alexa
AWS Lambda
Results from a Web Services API Call
Views JSON
API Endpojnt Passe the respoose
Skill Alexa
Web Service
application id
callback
Event Subscsibes
Slot Randon Joke
Respoose
“Alexa Ask fish jokes for a silly joke”
simulator (in developer portal)
device
Continue development
After skill “Goes Live”:
in Developer portal
ready
replaces live version
Continue development
ECHO DOT + ARDUINO + Big Mouth Billy Bass
12v power
Headphone Audio out
2 motors connected. 1 in use.
Mouth With Any Audio Source”
http://www.instructables.com/id/Animate-a-Billy-Bass-Mouth-With-Any-Audio-Source/
drupalize.Me Flash Briefing Skill
to win
Project managers, bug reporters, Qa testers, and YOU!
creation process
Alexa!
Billy Bass as “Alexa”
Find our session page on the DrupalCon Baltimore website to find and complete an evaluation: https://events.drupal.org/baltimore2017/ sessions/drupal-alexa-and-big-mouth-billy- bass-walk-bar Thank you!