public final class Intent extends Object
An Intent is the output of spoken language understanding (SLU) that represents what the
user wants to do based on a predefined schema definition.
If the user said, "place a reservation," with an intent schema definition of:
{
"intents":[
{
"intent":"ReservationIntent",
"slots":[ ]
}
]
}
An Intent named "ReservationIntent" would be sent to the Alexa skill.
IntentRequest.getIntent()| Modifier and Type | Class and Description |
|---|---|
static class |
Intent.Builder
Builder used to construct a new
Intent. |
| Modifier and Type | Method and Description |
|---|---|
static Intent.Builder |
builder()
Returns a new builder instance used to construct a new
Intent. |
String |
getName()
Returns the name of this intent.
|
Slot |
getSlot(String name)
Returns the
Slot with the provided name. |
Map<String,Slot> |
getSlots()
Returns all the
Slots. |
public static Intent.Builder builder()
Intent.public String getName()
public Map<String,Slot> getSlots()
Slots.Copyright © 2016. All rights reserved.