Now that you have created a solution for your bot, it's time to add your first dialogue. In Teneo, all dialogues are designed as flows. Flows contain the logic needed to resolve a specific question of the user. They can be simple (e.g. a flow that answers the question "What kind of coffee do you have?") or complex (for example, a flow that helps the user order a coffee beverage), but they always represent some kind of pre-defined conversational pattern.
One of the biggest advantages of LUIS^Teneo is the use of its classifier. This page will describe how to use an intent created and trained in LUIS on Teneo.
Throughout these pages, we will create a bot for Longberry Baristas, a very hip (yet fictitious) coffee bar in New York. We will start with a simple flow to handle the following conversation:
User: What kind of coffee do you have?
Bot: We offer a variety of handcrafted coffee drinks - from espressos to macchiatos to flat whites and more.
To achieve this we will do the following:
The result will look like this:
We will start off by creating a LUIS intent inside our application which will be used by our Teneo solution.
You will need to do the following:
Do you have brewed coffee
Do you serve macchiato
Do you have cappuccino
Tell me about the coffees you have
Tell me about your coffee
What coffee do you serve?
What kinds of coffees do you serve?
What kinds of drinks do you sell
Which coffees are offered by Longberry Baristas?
Which drinks do you have?
Which sorts of coffees do you have
Now it's time to create the same intent as we did for LUIS in the previous step but inside Teneo.
Do you have brewed coffee Do you serve macchiato Do you have cappuccino Tell me about the coffees you have Tell me about your coffee What coffee do you serve? What kinds of coffees do you serve? What kinds of drinks do you sell Which coffees are offered by Longberry Baristas? Which drinks do you have? Which sorts of coffees do you have
Flows are stored in folders. In the 'Explore' section on the left, you see a number of folders with flows that came out of the box. These flows make sure your bot will understand and respond to greetings, meta-requests (e.g. Can you repeat that?), feedback (e.g. You are great), and conversational small talk (e.g. How are you?). In that way, since you are the owner of this solution, you can change the answers in these flows if you wish.
We will want to store our flows in a separate folder, so let's create that first.
Flowsand hit Enter.
You can add as many folders and subfolders as you like and you can structure them any way you like. This is particularly handy for bots that handle multiple domains.
Now that we have a folder in which we can store our work, we can create our first flow:
User asks about coffees we offer.
As you can see, flows are represented graphically in Teneo. Simple flows just contain a trigger that recognizes the user's intent (the blue box at the top) and an output that contains the bot's answer (the purple box at the bottom). More complex flows contain more elements like multiple triggers, scripts, different outputs etc. We're going to start with a simple flow, so you will only need to populate the trigger and the output that you see in the flow graph.
Now it's time to create a flow in Teneo where we can use our previous created LUIS intent. To do that we'll need to do the following:
Tell me about your coffee.
It's time to create your own match requirement for Classes and paste in the LUIS intent you created from the previous step.
Next, we'll need to set the bot's answer in the flow.
We offer a variety of handcrafted coffee drinks...
We offer a variety of handcrafted coffee drinks - from espressos to macchiatos to flat whites and more.
Now that we have added everything needed to our first flow, it's time to save it:
Adding a description will help you remember the changes you did and will show up in the Flow's version history.
Done! Congratulations! You have created your first LUIS^Teneo flow!
Now it's time to test your work inside Teneo Studio.
What kind of coffee do you have?
Which drinks do you serve?
As you can see, both inputs will trigger your flow. Teneo not only recognizes the exact learning examples you entered but also different variations that express a similar intent.
Now that we have created our first flow, let's continue with, Transitions.
Was this page helpful?