Quick Start
Quick Start Overview
What are we building?
In this Quick Start guide, we'll be creating our first UI2 instance.
We will add multiple intents, explore UI2's powerful yet simple API, and also learn how to use UI2 to identify intents based on text.
The Result
The final code is also available on GitHub in the /examples
folder. Check
it out
here.
You'll create a simple intent identifier that's able to distinguish between two intents:
- Adding Two Numbers: Takes two parameters, and logs their sum when identified
- Squaring a Number: Takes one parameter, and logs their its square when identified
This is the code we will be writing:
It might look complicated, but UI2 makes creating intents as easy as defining what each intent is.
If you're ready to identify some intents, let's get right into it!