To create your first Alexa skill, you set up the voice side in the Alexa developer console (invocation name, intents and utterances), write the response as an AWS Lambda function, and connect the two with your skill ID and the function's ARN. Here are the steps, with pictures, using a skill for a radio station as the example.

Updated November 2026: The steps are renumbered (the old post jumped from step 3 to step 8), the code uses version 2 of the Alexa Skills Kit SDK for Node.js, and the testing steps are finished. The screenshots are from 2018 and 2019, so both consoles look different today.

Step 1 - Register with Amazon Developer + AWS

You will need to register with both of these services:

  • Amazon Developer - Amazon Developer will guide you towards making an Alexa Skill.
  • Amazon Web Services - AWS will help you create a Lambda function to handle the skill requests.

Step 2 - Create a New Skill + Invocation

Skills are apps for Alexa that give users new experiences, and we first create our Skill using the Amazon Alexa Developer Console.

How do I get started?

Once you log into the Amazon Alexa Developer Console, select Alexa > Alexa Skills Kit to get started. In today's console, you'll pick a name, a language, the Custom model, and Provision your own as the hosting service, since we'll host the code on AWS Lambda ourselves.

alexa-services-1

alexa-create-a-skill

What do I name my Skill?

Skills require two things to work successfully: an invocation name and an utterance. The skill name is what people see in the Alexa app. The invocation name is what they say to start your skill, and you set it under Invocations on the Build tab. Invocation names must be lowercase, and numbers must be spelled out.

In 2018, I worked for Classical KUSC, 91.5 FM in Los Angeles, so my Invocation will be titled ninety one point five, which means that users will have to say,

"Alexa, ask ninety one point five."

alexa-name-skill-ninety-one-point-five


Let's start an Alexa skill from scratch.
choose-a-template


You have completed the first step in our checklist. Now let's move on to step #2 in the checklist.

alexa-add-intent


Step 3 - Create an Intent + Utterances

Intents

Intents are what a user specifically wants to do. Using the previous Invocation, we're going to help users ask, "Alexa, ask ninety one point five what's playing?" My intent is called WhatsPlaying.

Utterances

Not everyone is going to ask a radio station "what's playing" in the same way, so we use utterances to consider other ways to ask for the same data. Utterances are derivatives of your original request but said differently. For example, here are two similar requests for information, and what's implied by the user is that they want to know what's playing right now.

  • "Alexa, ask ninety one point five composers".
  • "Alexa, ask ninety one point five the composer's name".

Utterances are useful because they will help you improve the accuracy of Alexa and help you reach new audiences from different age ranges. For example, maybe you want to reach a younger audience, and they may be more inclined to ask,

  • "Alexa, ask ninety one point five names".
  • "Alexa, ask ninety one point five titles".
  • "Alexa, ask ninety one point five 'da name".

Below is a list of my utterances. When you're done, save and build the model.

alexa-intents


Step 4 - Get Your Alexa Skill ID

You will need your Skill ID for the next steps. You can find it by first selecting the menu.

alexa-return-to-skills

Select "View Skill ID" to access your Skill ID string. In today's console, click Copy Skill ID under the skill's name in your list of skills.
alexa-get-skill-id


Step 5 - Create your skill response

Once you've configured Alexa to consider your solution to solve a user's request, you'll need to create the actual answer. We will use Node on AWS Lambda so that we do not have to meddle with any servers.

Visit AWS Lambda

Amazon recommends US East (N. Virginia) as the region for skills in North America.

alexa-aws-lambda

Create a new function.

alexa-aws-create-function

Author a function from scratch. Choose a current Node.js runtime, such as Node.js 24.

alexa-aws-author-from-scratch

If you notice, I have a role called role-lambda-basic-execution. This role was created within AWS IAM and looks like this. Today, the Lambda console can also create a role with basic Lambda permissions for you.

alexa-iam-basic-lambda

Connect Alexa to Lambda

After you've created the function, add an Alexa Skills Kit trigger to connect the Alexa skill to your Lambda function.

alexa-lambda-hooks-1

Take note that you will need to paste the Skill ID that you received in Step 4.

alexa-lambda-configure-portal

Then connect the other direction. Copy the function ARN from the top of the Lambda page. Back in the Alexa developer console, open Endpoint on the Build tab, choose AWS Lambda ARN, paste the ARN into Default Region, and save.


Step 6 - Build your Skill

Here is the JavaScript code we'll use to respond to our user's request. The intent name in the code has to match the intent you created in Step 3.

const Alexa = require('ask-sdk-core');

// A. This is the first thing that happens when Alexa opens the skill.
//    Think of it as a constructor function.
const LaunchRequestHandler = {
    canHandle(handlerInput) {
        return Alexa.getRequestType(handlerInput.requestEnvelope) === 'LaunchRequest';
    },
    // B. This will be Alexa's first response.
    handle(handlerInput) {
        return handlerInput.responseBuilder
            .speak("Welcome to ninety one point five. Ask me what's playing.")
            .reprompt("Ask me what's playing.")
            .getResponse();
    }
};

// C. This will be called through the intent and its utterances.
const WhatsPlayingIntentHandler = {
    canHandle(handlerInput) {
        return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
            && Alexa.getIntentName(handlerInput.requestEnvelope) === 'WhatsPlaying';
    },
    handle(handlerInput) {
        return handlerInput.responseBuilder
            .speak("You have successfully created your first skill with Amazon Alexa.")
            .getResponse();
    }
};

exports.handler = Alexa.SkillBuilders.custom()
    .addRequestHandlers(LaunchRequestHandler, WhatsPlayingIntentHandler)
    .lambda();

The SDK isn't built into Lambda, so package it with your code. Save the code above as index.js, then run:

npm init -y
npm install ask-sdk-core
zip -r function.zip index.js package.json node_modules

In the Lambda console, choose Upload from > .zip file and upload function.zip.


Step 7 - Simulator testing

Now that we've created a skill, created an invocation with utterances, and a JavaScript solution, it's time to test our app.

In the Alexa developer console, open the Test tab and change skill testing from Off to Development. Then type or say:

ask ninety one point five who is playing

Alexa should answer with the line from the WhatsPlaying handler.


Step 8 - Hardware testing

Your hardware device must be registered to the same Amazon account as your developer account, and its language must match one of your skill's languages. This skill is English (US), so the device has to be set to English (US) too.

Skills in development show up in the Alexa app under Your Skills, on the Dev tab. Enable yours there, then say, "Alexa, ask ninety one point five who is playing." Amazon's testing guide covers the other ways to test.

I'm Chris. I build products you can hear. More about me.