Wit allows you to understand what your users say to your app.
In our example, they could say
What’s the current temperature?
Is it me or it is hot here?
I want to set the temperature to 71 degrees
All these examples are about getting or setting the temperature.
You will configure Wit by example. You don’t need to describe every way a user might ask the temperature, Wit will infer this from the few examples you give. However, keep in mind that the more examples you give, the better your app will understand your users. Type an example of someone asking the temperature in the “User says…” box. For example:
what's the temperature inside?
You want to teach Wit that this sentence as a whole is about getting the office temperature. To do so, you will use a trait entity. An entity is a piece of information you would want to detect from a user input. There are different types of entity but we will see that later. To do so, you will use a trait entity (you can read more about intents and different types of entities)
For now, just type ‘intent’ in the “Add a new entity” field and select the default intent entity. Then just type the name of your new intent. For example
Then click Validate.