skill-sample-for-nodejs-hospitality

所属分类:Node.js
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-11-13 22:13:01
上 传 者sh-1993
说明:  nodejs酒店服务技能示例
(skill sample for nodejs hospitality)

文件列表:
CODE_OF_CONDUCT.md (309, 2023-11-13)
CONTRIBUTING.md (3160, 2023-11-13)
LICENSE (4845, 2023-11-13)
NOTICE (102, 2023-11-13)
ask-resources.json (464, 2023-11-13)
lambda/ (0, 2023-11-13)
lambda/apl/ (0, 2023-11-13)
lambda/apl/headline.json (1449, 2023-11-13)
lambda/config.js (388, 2023-11-13)
lambda/constants.js (3031, 2023-11-13)
lambda/custom-intents-handlers.js (19623, 2023-11-13)
lambda/handlers.js (8995, 2023-11-13)
lambda/index.js (5308, 2023-11-13)
lambda/languages/ (0, 2023-11-13)
lambda/languages/en-US.js (8978, 2023-11-13)
lambda/package-lock.json (26308, 2023-11-13)
lambda/package.json (479, 2023-11-13)
lambda/util.js (4840, 2023-11-13)
nfi/ (0, 2023-11-13)
nfi/goldens_en-US.csv (45694, 2023-11-13)
skill-package/ (0, 2023-11-13)
skill-package/assets/ (0, 2023-11-13)
skill-package/assets/images/ (0, 2023-11-13)
skill-package/assets/images/en-US_largeIconUri.png (190163, 2023-11-13)
skill-package/assets/images/en-US_smallIconUri.png (21945, 2023-11-13)
skill-package/interactionModels/ (0, 2023-11-13)
skill-package/interactionModels/custom/ (0, 2023-11-13)
skill-package/interactionModels/custom/en-US.json (75452, 2023-11-13)
skill-package/skill.json (2422, 2023-11-13)

# Build An Alexa Smart Properties Skill This is a sample Alexa skill for [Alexa Smart Properties (ASP)](https://developer.amazon.com/en-US/alexa/alexa-smart-properties). Please note that ASP skills are hidden from the public catalog by default, and can only be enabled on selected properties. To use this skill in an ASP organization, you are required to have an active ASP subscription, with properties and rooms (where the skill can be enalbed). You also MUST enable your Vendor ID for Name-Free Interactions (NFI). See the instructions below. If you are looking for sample skills for the regular consumer version of Alexa, please refer to [Alexa Samples](https://github.com/alexa-samples) instead. This skill acts as an assistant in a hospitality facility. Guests can ask questions such as "Alexa, tell me about the pool" or make requests like "Alexa, where is the hotel conference center", "Alexa, where is the hotel cafe", "Alexa, please checkout". Feel free to use this sample skill as a reference, or as a template to build your own property skill(s). ## Contents The contents of this repository is broken down into a few sub-folders. ### Skill-package This is a copy the sample skill's interaction model. It defines the invocation name, intents and various metadata. In other words, it defines how questions can be understood. For example, an user asking "Alexa, please checkout" can be mapped to a "Checkout intent" through a generic intent handler interface. ### Lambda This is the backend of the sample skill. It defines how questions how handled on the server-side. This sample uses Node.js 18.x environment and would be hosted on AWS Lambda. However, you have the flexibility to decide where your backend will be hosted, and what programming language to code it with. Parts of the lambda code are left for you to implement. For example, if your property has a staff notification system (via text etc.) that can be called via an API, you can modify the help intent handler such that whenever a user asks Alexa for help, Alexa automatically opens a ticket to your staff. ### Name-Free Interactions (NFI) NFI allows a skill to be invoked without specifying its invocation name. For instance instead of saying "Alexa, ask [skill name] please checkout", users can simply say "Alexa, please checkout". In this repository we have included a sample list of golden utterances. For more information on NFI, please refer to [Understanding Name-Free Interaction for custom skills](https://developer.amazon.com/en-US/docs/alexa/custom-skills/understand-name-free-interaction-for-custom-skills.html). ## Using This Sample Skill If you intend to use this sample skill as a template to build your own property skill, here are the recommended high level steps: 1. Create a blank, custom Alexa skill using either the [skill console](https://developer.amazon.com/alexa/console/ask) or [command line interface (CLI)](https://developer.amazon.com/en-US/docs/alexa/smapi/quick-start-alexa-skills-kit-command-line-interface.html). This step ensures your skill is assigned with a unique ID, and that it has the right dependency files (e.g. node_modules). 2. Use [ASK CLI commands](https://developer.amazon.com/en-US/docs/alexa/smapi/ask-cli-command-reference.html) to configure your new skill on a local workspace. 3. Copy the contents of skill-package and lambda to your workspace. It is important that you retain the skill ID and workspace configurations created in the previous step. 4. Use ASK CLI to perform deployment. If set up correctly, it should publish both the skill's interaction model as well as lambda. 5. Afterwards, you can start customizing the skill! --- ## Additional Resources ### Onboarding * [ASP Overview](https://developer.amazon.com/en-US/alexa/alexa-smart-properties) - Onboarding Alexa Smart Properties (ASP) * [Alexa Skill Kit](https://developer.amazon.com/en-US/alexa/alexa-skills-kit) - New to Alexa skills development? Start from here! ### Documentation * [Official Alexa Smart Properties Documentation](https://developer.amazon.com/en-US/docs/alexa/alexa-smart-properties/about-alexa-smart-properties.html) * [Official Alexa Skills Kit Documentation](https://developer.amazon.com/en-US/docs/alexa/ask-overviews/what-is-the-alexa-skills-kit.html)

近期下载者

相关文件


收藏者