Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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
228,978 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!