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 trialjohn knight
Courses Plus Student 9,155 PointsI Have Two Questions
1st Question
What does "slot" syntax mean and what it does and what's the "name" and "type" syntaxes does?.
2nd Question
this is an optional question. Is this value accepted in the intent syntax? "intent":"openAirConditioner" "intent":"closeAirConditioner" "intent":"openLights" "intent":"closeLigts"
1 Answer
Steven Parker
231,271 PointsA "slot" is a portion of an utterance that conveys information used to carry out the request. I like to think of it as a "verbal variable". The "name" acts as an identifier in the sample utterances (sort of like a variable name). And the "type" indicates the possibilities for what may be used in the slot. Typically, and as shown in the videos, this would refer to a custom list of words.
For question 2, each intent should be enclosed in braces and the sets of braces should be separated by commas.
john knight
Courses Plus Student 9,155 Pointsjohn knight
Courses Plus Student 9,155 PointsYes thank you, Steven