Create an Alexa skill

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • Create an Alexa-hosted skill using the Alexa developer console. Creating an Alexa skill helps you prepare to use the Alexa app.

    Avant de commencer

    Role required: admin

    Procédure

    1. Log in to the Alexa developer console with your Amazon developer account.
    2. Click Create Skill.
    3. In the Skill name field, enter a skill name.
    4. From the Default language list, select a default language to add your skill.
    5. Under Choose a model to add your skill, select Custom.
    6. Under Choose a method to host your skill's backend resources, select Alexa-Hosted (Node.js).
    7. Click Create skill.
    8. To add your skill, select the Start from Scratch template.
    9. Click Continue with Template.
      Remarque :
      Creating an Alexa-hosted skill takes a few minutes.
    10. In the skill, navigate to Interaction Model > Intents > JSON Editor.
    11. Replace the JSON Editor with the following JSON script.
      {
          "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. Click Save Model.
    13. Navigate to Invocations > Skill Invocation Name.
    14. In the Skill Invocation Name field, provide the skill Invocation name.
      Remarque :
      The skill name is the name which you use in your Alexa device to invoke the skill.

      For example: <ask <skill name>.

    15. Navigate to Interfaces and enable Alexa Presentation Language.
      Remarque :
      This option enables all the screen devices which you want to use in Alexa.
    16. Click Save Interfaces.