FAQ: Speak, Listen & Reprompt - Review

This community-built FAQ covers the “Review” exercise from the lesson “Speak, Listen & Reprompt”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Introduction to Alexa

FAQs on the exercise Review

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

I tried to follow this exercice.
I put this code into my lambda function on AWS :

"use strict";

var Alexa = require("alexa-sdk");

var handlers = {
  'LaunchRequest': function() {
    this.response.speak("Hello, Welcome to Codecademy. What do you think is Codecademy's most popular language?").listen("Tell me what you think is Codecademy's most popular language.");
    this.emit(':responseReady');
  },

  'LanguageIntent': function () {
    this.response.speak("Python is our most popular language.");
    this.emit(':responseReady');
  },
}

exports.handler = function(event, context, callback){
    var alexa = Alexa.handler(event, context);
    alexa.registerHandlers(handlers);
    alexa.execute();
};

I associate it with my Alexa skill using the ARN but when I test it (just say : “open Popular Language”, which is the waking word of my skill), the only response I get is :

There was a problem with the requested skill’s response

Does someone knows why I can’t launch my skill ?

1 Like

Same problem, do you figure it out?

1 Like

If somebody could give more detailed instructions on how to copy the code over that would be amazing.

Hello !

I don’t know if that have anything to do with it but when I was doing some research on Internet I found that : This version of the Alexa Skills Kit SDK is no longer supported. Please use the v2 release found here: https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs

Source : https://www.npmjs.com/package/alexa-sdk

So I guess there are some changing to do on all the lesson… I’m trying something and I’ll let you know if it works

Hey !

You should watch here : https://developer.amazon.com/fr-FR/docs/alexa/custom-skills/handle-requests-sent-by-alexa.html#listen-and-reprompt