alexa-samples / skill-sample-nodejs-quiz-game

An Alexa Skill Sample showing how to build a quiz game skill.
Other
265 stars 289 forks source link

Mismatch in instructions between VUI step and Lambda step #46

Closed msintov closed 1 year ago

msintov commented 6 years ago

The instructions in this repo tell the user to create a quiz game (for example, for US states by using https://github.com/alexa/skill-sample-nodejs-quiz-game/blob/master/models/en-US.json) but in the Lambda step, the user is told to use a Serverless Application Repository (alexa-skills-kit-nodejs-factskill) that instead provides facts about planets. I thought the intention was to replicate the "United States Quiz" as it says here: https://github.com/alexa/skill-sample-nodejs-quiz-game .

MkFoster commented 6 years ago

I am guessing this is copy-paste bug. To work around this, I created the fact skill lambda per the instructions, but I copied and pasted the correct code from skill-sample-nodejs-quiz-game/lambda/custom/index.js file (in this repo) into the fact lambda index.js via the Lambda console code editor (and click Save in the upper right). The fact Lambda has the ask-sdk-core module required by the quiz Lambda.

andrewbaillie commented 6 years ago

From what I can see there's no Serverless Application Repo for this skill setup on AWS, this is a bit of a barrier for people just starting out with Alexa so would be useful to fix.

SwapnilDeshpande commented 6 years ago

I faced the same problem. What I did to workaround was this:

  1. Download this repo
  2. Browse to the lambda/custom directory in the downloaded code
  3. Run the npm install command and let npm download all the necessary modules in that directory
  4. Once that modules are downloaded, select all the files in the directory and compress them in a .zip file
  5. In the step where I have to search for an application repository named "alexa-skills-kit-nodejs-factskill" I search that and I create the Lambda function
  6. Once the function is created, I went to the function code and selected "Upload a .zip file" and pointed it to the zip file I created in step #4 and then clicked on "Save"

Of course, there should be a repository in Lambda itself but till the time Alexa folks upload it, you can use this workaround.

aszk commented 1 year ago

We removed AWS Lambda instruction.