Quick Start
Identifying Intents
Identifying your first intent
Now that you've defined the intents, it's time to actually try to identify intents from text.
In order to do this, we'll be using that identifyIntent
function that we destructured from createUI2
.
Here's the code:
It's as Simple as That
That's it. You don't need to assign it to a variable, write any if statements to process, or anything.
Seems too good to be true?
Well, sort of. In fact, in your createUI2
above, you already defined all the behavior. Thus, identifyIntent
directly draws from that. No additional setup needed.
The Complete Code
The final code is also available on GitHub in the /examples
folder. Check
it out
here.
To conclude, here's the final code all over again:
Read the next section to see what's next for your UI2 journey.