It's all still web technologies
Alexa turns on my lights
Tells me what is for lunch at work
Orders things for me
Answers random questions
Alexa connects to Amazon Web Services and sends data to existing services that are connected. Just like the browser does.
like everywhere else on the web
it's the "ack sa" portion
if only she had the power to do that some days...
she knows which device you are speaking to
Some traffic just pings a Amazon page
1. ~8 seconds of a silent room
2. Asking Alexa βWhat time is it?β and awaiting the answer (~6 seconds)
3. ~8 seconds of a silent room
4. βAlexa β tea, earl grey, hotβ and await the answer (~5 seconds)
5. ~23 seconds of a normal conversation between two people (not including any Alexa keywords)
Or Black Sabbath
Probably not, but I can't say 100%
Check your level of paranoia before purchasing
These are what Alexa calls the tasks she can perform.
doesn't have to be the same device
What are the steps in the process??
Blah Blah Blah
GUI Set up at https://developer.amazon.com/alexa
Invocation - Alexa will "ask" your invocation phrase for an intent
Intents - Describe actions from what someone says to alexa
This is how we lay out the audio user experience after the blue ring wake up
is now set as the experience
We will use node.js to:
Make a REST API call to meetup API (I used axios)
Handle for a few alexa scenarios
Return json to alexa after triggered
{
"application": {
"applicationId": "amzn1.ask.skill.dfcdacc6-394c-49c0-b091",
"request": {
"type": "IntentRequest",
"requestId": "amzn1.echo-api.request.0f952a34-8b61-4b06-8ae5-de370832e2d8",
"timestamp": "2019-07-07T05:52:18Z",
"locale": "en-US",
"intent": {
"name": "NextMeetup",
"confirmationStatus": "NONE"
}
}
there is more data than this in the json
{
"version": "1.0",
"response": {
"outputSpeech": {
"type": "PlainText",
"text":"next eugene web devs is now"
},
"reprompt": {
"outputSpeech": {
"type": "PlainText",
"text": ""
}
},
"shouldEndSession": true,
"type": "_DEFAULT_RESPONSE"
}
}
use axios to hit meetup API and get next meetup
Return response if no intent is passed from alexa
when an intent is passed decide what response to Return
code on github
try {
if (event.session.application.applicationId !== skillId) {
context.fail("Invalid Application ID");
}
if (event.request.type === "LaunchRequest") {
return onLaunch();
}
else if (event.request.type === "IntentRequest") {
return onIntent(event.request, nextMeetUp);
}
}
catch (e) {
context.fail("Exception: " + e);
}
Check the ID, decide what the request type is, and pass to the right function
type in
or
speak