Alexaスキルの作成

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:2分
  • Alexa開発者コンソールを使用して、Alexa でホストされるスキルを作成します。Alexaスキルを作成すると、Alexaアプリを使用する準備に役立ちます。

    始める前に

    必要なロール:admin

    手順

    1. Amazon開発者アカウントを使用してAlexa開発者コンソールにログインします。
    2. [ スキルを作成] をクリックします。
    3. [ スキル名 ] フィールドにスキル名を入力します。
    4. [デフォルト言語] リストから、スキルを追加するデフォルト言語を選択します。
    5. [スキルを追加するモデルを選択 (Choose a model to add your skill)] で、[ カスタム] を選択します。
    6. [スキルのバックエンドリソースをホストする方法を選択 (Choose a method to host your skill's backend resources)] で、[ Alexa-Hosted (Node.js)] を選択します。
    7. [ スキルを作成] をクリックします。
    8. スキルを追加するには、[ 最初から開始] テンプレートを選択します。
    9. [ テンプレートで続行] をクリックします。
      注:
      Alexa でホストされるスキルの作成には数分かかります。
    10. スキルで、次の場所に移動します インタラクションモデル > インテント > JSON エディター.
    11. 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"
                                  }
                              }
                          ]
                      }
                  ]
              }
          }
      }
    12. [ モデルを保存] をクリックします。
    13. 移動先 発動 > スキル発動名.
    14. [ スキル発動名 ] フィールドに、スキル発動名を入力します。
      注:
      スキル名は、 Alexa デバイスでスキルを呼び出すために使用する名前です。

      例:<ask <スキル名>

    15. [ インターフェイス] に移動し、 Alexa プレゼンテーション言語を有効にします。
      注:
      このオプションは、 Alexaで使用するすべての画面デバイスを有効にします。
    16. [ インターフェイスの保存(Save Interfaces)] をクリックします。