Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

APIs Build an Alexa Skill Building an Alexa Skill Creating an Intent Schema

Question

When we are going to make a new skill, Let's say closing an air conditioner or turning it on does is need a certain type of code to make this skill work or the same code we need to make an skill. The code is below {

"intents": [ {

  "intent": "GetDefinition",
  "slots": [

    {

      "name": "Term",
      "type": "LIST_OF_TERMS"

    }

  ]

},

{
  "intent": "AMAZON.HelpIntent"
},

{
  "intent": "AMAZON.StopIntent"
},

{
  "intent": "AMAZON.CancelIntent"
}

]

}

1 Answer

Steven Parker
Steven Parker
216,017 Points

There are two different code parts involved in creating a new skill, the interaction model and the skill service. The code shown above is part of the interaction model known as the intent schema.

If you're interested in device control, you might want to check out the Smart Home Skill API Documentation.

Thank You, Steven Parker Your Answer Helped Me Alot!. Thank you!