Building Fortune Cookie VUIs
So far, what you have done is learn how to create what I call plumbing code. For example, when you build a bathroom, you always have to build the pipelines so that the bathroom can have water, and then you build sinks, toilets, and showers. If you tried to build pipelines after building the showers, it would be very difficult to put the pipes behind the shower through the concrete. In the previous section, you learned to build the webhook that will handle the Default Welcome Intent
. Using this plumbing code, you can now add more complex scenarios to handle Fortune-Cookie-specific conversations.
Building a Get Quote intent
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", ...