Ibak
1
Hi! I want to use “Padatious Intents” technology. But I do not understand how the entity extraction is done.
So, I make a “askTime.intent” file which contains this:
What time is it in {country}?
Now, in a “@intent_handler” I want to extract that entity and assign to a variable called “COUNTRY”. How can I do that?
COUNTRY = ------------------
Thanks!
Hi Ibak,
The entity is contained in the message.data
object. So your code would look something like:
@intent_handler('askTime.intent')
def handle_ask_time(self, message):
COUNTRY = message.data.get('country')
Ibak
3
Thank you! Another question… Is it possible to use (in the same file) both Adapt Intent Parser and Padatious Intents technology?
Yeah absolutely, see the Hello World Skill for a really basic example: