- Hands-On Chatbot Development with Alexa Skills and Amazon Lex
- Sam Williams
- 406字
- 2021-07-16 17:45:15
Alexa Skills Kit
To create our first Alexa Skill, we're going to use Alexa Skills Kit. Search for Alexa Skills Kit or go to www.developer.amazon.com/alexa-skills-kit and you should see a screen with a Create Skill or Start a Skill button:
Start by giving your skill a name. This should be something that describes what the skill does. For this, we can call it Hi. Click Next and you'll be able to select a model for your skill. We want to choose Custom so we can create the skill exactly how we want:

Click Create skill and once the setup has finished, you'll end up on the Alexa Skill builder page. To get started, we need to click on Invocation Name in the left-hand menu. This is where we set up the command that starts our skill. I'm going to use sams demo bot for this first skill. When you create bigger skills, it is a good idea to spend some time thinking about what you use as your invocation phrase and practice saying it out loud:

Now that we can start our skill, we need to create an intent so that our skill does something. Click the Add button, next to the intents in the left-hand menu, to create a new intent. Here, you have the option to Create custom intent or to use an existing intent from Amazon's library. Most of Amazon's intents are to do with page navigation or music control, so we're going with a custom intent.
Give your intent a name that describes what the intent is going to do. In our case, it is to say Hello, so that is what it can be called. Click Create custom intent to start editing the intent.
Now that we're in the intent window for our Hello intent, we need to add some utterances. As we talked about in Chapter 1, Understanding Chatbots, these are phrases the user might say to trigger this intent. For this intent, those utterances might be hi, hello, or hey:

We have completed our first Alexa intent, so we need to save and build this model. At the top of the intents window is a Save Model button and a Build Model button, so save it and then build it. Building the model sometimes takes a while, so just wait for that to finish.
- INSTANT PhpStorm Starter
- Learning Karaf Cellar
- 物聯(lián)網(wǎng)信息安全
- 網(wǎng)絡(luò)的琴弦:玩轉(zhuǎn)IP看監(jiān)控
- 網(wǎng)絡(luò)安全技術(shù)與解決方案(修訂版)
- 面向云平臺的物聯(lián)網(wǎng)多源異構(gòu)信息融合方法
- Learning Swift(Second Edition)
- jQuery Mobile Web Development Essentials
- Learning Node.js Development
- 云工廠:開啟中國制造云時代
- Migrating to Drupal7
- 5G新型多址技術(shù)
- Microsoft System Center 2012 Configuration Manager:Administration Cookbook
- 萬物互聯(lián):物聯(lián)網(wǎng)核心技術(shù)與安全
- 企業(yè)網(wǎng)絡(luò)組建與維護項目式教程