BUILDING MY FIRST ALEXA SKILL AMAZON LONDON

Knowledge Lighthouse
57 followers
6 Video ViewsยทOct 23, 2022
Is this Amazon? No, this is Sainsbury's.
They're like the same colour, right?
This, like, orange logo.
Hi there guys, what's up?
So, now I'm headed to this Amazon event
that is about how to implement voice technology.
I'm a big fan of Amazon Alexa
and obviously, am I not in focus?
Am I in focus? Anyway.
And obviously I do tons of podcast-related stuff
so it's going to be really interesting
to speak to the developers there
and maybe actually figure out
first the difference between Alexa skill
and Alexa briefing
and then also just how to
how to start your Alexa skill
how to start your Alexa briefing
and then some stuff like
where to store your episodes
like what programming language to use
I have a super busy day
just had a meeting with
sorry, no, I didn't have a meeting
did I have a meeting? No.
Oh yeah, I was speaking to my technology adjust professor
I have a presentation to do for Friday
and also I have a formative essay
for taxation of wealth for today
so, is this Amazon?
No, this is Sainsbury's.
They're like the same colour, right?
This, like, orange logo.
So yeah, I am really curious to see
what Amazon has organised
here in their Holden offices
which I've never been to
I've been to their Shoreditch office twice
for an interview I was rejected twice
so, that's that.
Anyways, yeah.
So I got to the Amazon offices
as always, as they do every single time
I got a very nice reception
and all of those things
there was this guy that took me to the
workshop room
with maybe another 40 people or so
from all kinds of different backgrounds
and you see me just typing out some stuff
I think it was some essay work
essay planning and emails
or something like that
that was before the workshop started
so now you're going to see a few snippets
that I managed to film
of one of the Amazon tech
evangelists as they call themselves
giving a brief introduction
into how to build the Alexa skill
and actually it was amazing
because we ended up building a skill
right there in that room
so we brainstormed and we came up
with this idea and then
we managed to actually go
through the whole process of building
and publishing a brand new skill
that was much easier than I thought
and if this is a bit overwhelming
if you're not quite
into voice technology
and what these skills are
and what they're all about
then please don't be overwhelmed
and you can just google
Alexa skills
these are basically apps for
voice devices, home assistants etc
please enjoy a few little
snippets, a few little tricks
from Amazon developers
on how to make your skill
a successful one
and any device can become
Alexa enabled
so a couple of examples
of products that are becoming
or have become Alexa enabled
so what goes on
behind
there's two sides to building a skill
the first side is the voice user
interface, this is where
you, let's say you're Ocado
or you're building a game or you're doing something
you decide what your skill can do
so you say
my users can express the following
intentions, intent number one
add item to trolley
intent number two
remove item from trolley
intent number three
choose delivery day
intent number four
cancel delivery
in the back end you handle
each intent, you have a handler
so every time that intent is triggered
it'll
trigger a specific handler
which handles that request, so if I say
add an item to my trolley or add tuna
to my trolley, it'll trigger the
add item to trolley intent that we've
defined and in that handler
for that intent I choose exactly what
happens in my back end systems
I choose exactly what I have to say back to the user
so it's completely in your control
the only thing that Alexa should be seen as
in this case, so when you build a skill
the only thing Alexa is
is essentially
a voice interface
it will take care of
digesting what the user says
into an intention
everything else is up to you
wake word
or waking up the device
then we launch
a skill in our case
which could be something like restaurant finder
or avocado or your skill
where we say open
and this is called a launch invocation
because we're launching the skill
and if you open a skill like this
and there's other alternatives
to
starting it, like launch
start, begin
this will trigger a launch request
right, not an intent
it will trigger a launch request
so basically a, I'm just opening the app
I haven't decided
what to do yet
so the typical response in this case is a welcome message
giving that idea to the user
of what you can do
but there's also another way of opening a skill
which is
using a
one shot invocation
where you invoke a skill
and give it a command at the same time
right
and the part of the sentence
that actually expresses an intent
we call an utterance
so what the user said
and you see how there's different ways of saying the same thing
ask restaurant finder
for breakfast or for a good breakfast place
or to find places to eat in the morning
or a spot that serves
the most popular day
all mean
give me a good breakfast place
still trigger a recommendation intent
but guess what
we want to restrict it
within a range
so we need that for
as the developers
to use in our backend right
so
and we'll see how to do this but
when you define a slot in your backend
well in your voice interface sorry
it will be
passed along as part of the request
so you don't need to worry about it
so slots can be words
they can be phrases
they can be numbers, they can be dates
they can be anything you want
they're just pieces of what the user says
that you want to process as well
and that will be passed along
and what we've done now
is not just say they're a word
by building a model we've actually added all of this
to the Alexa knowledge graph
so if you know
once we connect to a backend we can actually test it out
on a real Alexa device and it'll work
as long as it's linked to our account
this is looking into you
so re-emphasise
what we're doing now is
creating a back-
sorry if it's a bit inconclusive I couldn't really film the whole time
there is quite a lot to go over
so on this channel I will be
documenting my journey of trying to
build skills
and briefings etc so
I will try to break some of those concepts down
so yeah then I basically had some super delicious
food, I might have
not stolen a few water bottles
from Amazon and then back to the library. I hope you enjoyed this video and love you
guys very much. Stay healthy!
