This is a complex and useful Node.js sample skill with examples of DynamoDB integration, display templates, dialog management, state management, contextual help and errors, and entity resolution.
This skill queries the College Scorecard API public dataset. For more information view the documentation on the College Scorecard site.
The skill references environment variables in the config.js file for instance specific data. In order to successfully deploy and launch the skill you need to add the following environment variables to your deployment:
- SKILL_ID - The application ID for the skill
- API_KEY - Request a key for the College Scorecard api on the api.data.gov website.
- MAIN_IMAGE, LIST_IMAGE, GRAD_IMAGE - These are all images that appear as backgrounds throughout the skill for devices with displays. You can find example images in the config.js file.
Take a look at the unit-tests and end-to-end tests provided for this skill by Bespoken.
- The unit-tests ensure the code is working correctly
- End-to-end tests ensure the skill as a whole is working right
- Read more here
This sample is licensed under the Amazon Software License.