Skip to content

alexa-labs/skill-sample-nodejs-task-buddy

Repository files navigation

Task Buddy

This sample skill demonstrates how to use Alexa Skill Links to launch skill or custom tasks from anywhere in the web or mobile.

Throughout this sample, you will learn how to create a skill called Task Buddy which implments a number of Custom Tasks, and how to construct Alexa Quick Links with input parameters to access the skill. These Alexa features will enable you to create additional skill functionalities that can be accessed from users anywhere in the web or mobile, and allow you to confidently scale up your user acquisition efforts by providing the tools to properly track marketing attributions.

Try It

You can try out a published version of this skill sample using the following pre-constructed links:

How To Deploy

Note: this guide assumes you are using ASK CLI, and requires that you use AWS credentials set up with the appropriate permissions on the computer to which you are using ASK CLI.

1. Clone this repo

$ git clone https://github.com/alexa-labs/skill-sample-nodejs-task-buddy

2. Change directory to the root of the project

$ cd skill-sample-nodejs-task-buddy

3. Associate the project with your Alexa developer and AWS credentials

$ ask configure

4. Deploy the project

$ ask deploy

Note: By default, this would create a new Lambda function using the AWS profile you configure in previous step. Alternatively, if you don't want to provision new resources and instead want to use an existing lambda function, then add the "endpoint" object in skill.json and update "uri" field with the correct Lambda ARN:

    "apis": {
      "custom": {
        "endpoint": {
          "uri": "arn:aws:lambda:us-east-1:XXXXXXXX:function:SKILL-NAME"
        },
        "tasks": [
            {

5. Test Your Custom Task handler

$ ask smapi invoke-skill-end-point -s <skill-id> -g development --endpoint-region=default --skill-request-body file:sample.json --debug

Note: If Custom Tasks are implemented in your skill, please follow the detailed instructions in tests folders in order to test the endpoint with sample task payload.

6. Construct Alexa Quick Links

Modal Skill Launch: https://alexa-skills.amazon.com/apis/custom/skills/<SkillID>/launch
Custom Task Launch: https://alexa-skills.amazon.com/apis/custom/skills/<SkillID>/tasks/<TaskName>/versions/1?param=test

Note: Alexa Quick Links only work with live version of your skill. Please make sure your skill is certified and published before accessing the links.

Additional Documentation

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •