{ "place":"gas station"}
hey mycroft, what's today's weather like?
hey mycroft, what's the weather like in Melbourne?
hey mycroft, weather
vocab[lang]
directory, in files ending in the file extension .intent
. For example, if you were to create a tomato Skill to respond to questions about a tomato, you would create the filevocab/en-us/what.is.intent
What would you say a tomato is?
What's a tomato?
Describe a tomato
What defines a tomato
vocab/en-us/do.you.like.intent
{type}
tomatoes?{type}
tomatoes?{type}
tomatoes?{type}
will match anything. While this makes the intent flexible, it will also match if we say something like Do you like eating tomatoes?. It would think the type of tomato is eating which doesn't make much sense. Instead, we can specify what type of things the {type} of tomato should be. We do this by defining the type entity file here:vocab/en-us/type.entity
self.register_intent_file()
is used instead of self.register_intent()
. To register a .entity file
, use self.register_entity_file()
.register_intent_file(intent_file, handler)
methods arguments are:@intent_handler()
#
where a number would go. For example, with the following intent:.entity
file with things like:pip3
swig
pip3
: