question

Matt avatar image
Matt asked

Help deploying APL examples from GitHub

Hey guys,

I am trying to work through the examples given in the blog post for developing a skill with APL. I was able to build the movie quote quiz by uploading the .zip to lambda and copying the interaction model into the developer console. However, when I test the skill, I can't get it to recognize my movie intent. When I try to deploy the skill with CLI I get an error to make sure I am in the root directory of the skill and that there is a hidden .ask file? I am trying to get a basic working APL skill in my console so I can work through the example and see what's really going on in the code. Thanks for the help!

alexa skills kitaplask cli
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rokas avatar image
Rokas answered

To deploy skill using ask-cli you have to be in the folder which has .ask folder in which there is a config file with configuration. You have to fill that file with the skill-id that you use and to which lambda to deploy the skill etc. If you downloaded the example, even though I don't know which one, because you haven't linked it, it should have these files already, but they might be incomplete, so you need to go through them and figure out what is missing. When you are all done and everything is updated you can run 'ask deploy' command and then your model and lambda will be deployed. Just remember, you have to be inside the folder, that has .ask in it.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt avatar image
Matt answered

Thank you for your response to my basic questions. https://github.com/alexa-labs/skill-sample-nodejs-level-up-riddlesfis the skill I am trying to download and deploy. I used the link to build a new skill with the command line. Inside the skill folder, I see a .git folder with a config file, but not a .ask folder. I think I am getting close!

3 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Link returns 404 for me. You can try cloning your skill using 'ask clone -s {skill-id}' command. This will certainly add .ask and other files needed for deployment.

0 Likes 0 ·

After looking back at the GitHub repo, I see that there is no .ask folder in the package. I tried adding a config file with a skill name, but I get invalid JSON. https://github.com/alexa-labs/skill-sample-nodejs-level-up-riddles sorry I accidentally linked to the repo before.

0 Likes 0 ·

Ok. So just add a folder called '.ask'. In that folder create file named 'config' with no file format. It cannot be named anything else, not 'config.txt', not 'config.js', it has to be named 'config', that is it. Then it that file add this json:

{
  "deploy_settings": {
    "default": {
      "skill_id": "skill id goes here",
      "was_cloned": false,
      "merge": {
        "manifest": {
          "apis": {
            "custom": {
              "endpoint": {
                "uri": "lambda arn goes here"
              }
            }
          }
        }
      }
    }
  }
}

And fill in your lambda 'arn' to which you want your skill to be deployed and skill id from the developer console. After you done this, 'ask deploy' should work.

0 Likes 0 ·