Alexaスキルの作成
Alexa開発者コンソールを使用して、Alexa でホストされるスキルを作成します。Alexaスキルを作成すると、Alexaアプリを使用する準備に役立ちます。
始める前に
必要なロール:admin
手順
- Amazon開発者アカウントを使用してAlexa開発者コンソールにログインします。
- [ スキルを作成] をクリックします。
- [ スキル名 ] フィールドにスキル名を入力します。
- [デフォルト言語] リストから、スキルを追加するデフォルト言語を選択します。
- [スキルを追加するモデルを選択 (Choose a model to add your skill)] で、[ カスタム] を選択します。
- [スキルのバックエンドリソースをホストする方法を選択 (Choose a method to host your skill's backend resources)] で、[ Alexa-Hosted (Node.js)] を選択します。
- [ スキルを作成] をクリックします。
- スキルを追加するには、[ 最初から開始] テンプレートを選択します。
-
[ テンプレートで続行] をクリックします。
注:Alexa でホストされるスキルの作成には数分かかります。
- スキルで、次の場所に移動します インタラクションモデル > インテント > JSON エディター.
-
JSON エディターを次の JSON スクリプトに置き換えます。
{ "interactionModel": { "languageModel": { "invocationName": "now agent", "intents": [ { "name": "AMAZON.CancelIntent", "samples": [] }, { "name": "AMAZON.HelpIntent", "samples": [] }, { "name": "AMAZON.StopIntent", "samples": [] }, { "name": "AMAZON.NavigateHomeIntent", "samples": [] }, { "name": "EverythingIntent", "slots": [ { "name": "EverythingSlot", "type": "Bag_of_words" } ], "samples": [ "{EverythingSlot}" ] } ], "types": [ { "name": "Bag_of_words", "values": [ { "name": { "value": "value: Hello world" } }, { "name": { "value": "name: bag_of_words" } } ] } ] } } } - [ モデルを保存] をクリックします。
- 移動先 発動 > スキル発動名.
-
[ スキル発動名 ] フィールドに、スキル発動名を入力します。
注:スキル名は、 Alexa デバイスでスキルを呼び出すために使用する名前です。
例:<ask <スキル名>。
-
[ インターフェイス] に移動し、 Alexa プレゼンテーション言語を有効にします。
注:このオプションは、 Alexaで使用するすべての画面デバイスを有効にします。
- [ インターフェイスの保存(Save Interfaces)] をクリックします。