July 2018
Intermediate to advanced
404 pages
9h 5m
English
First, let's build an entity that contains the keywords Fortune Cookie and Quote. The following code shows the Fortune entity, which contains two keywords that will be used to match the user's request to the fortune cookie or the quote:
[ { "value": "Fortune Cookie", "synonyms": [ "Fortune Cookie", "Quote" ] }]
Using the Fortune entity, create templatized questions for the Get Quote intent, as follows:
Now, a user will be able to ask a combination of questions using Tell me and the Fortune entity. For example, the user can say Tell me a fortune cookie or Tell me a quote. Now, give it an Action name, input.fortune, which will capture the HTTPS request event ...
Read now
Unlock full access