(Autogenerated transcript) [00:00:00] So to demonstrate the use of system functions, I've created an agent called sysfunk, as you can see over here. And it just has no intents right now. It just has the Start Page with the Default Welcome intent. And as you know, the Default Welcome intent will answer to messages like hi and hello and all that. And what I'm going to do is, as soon as the user says that, I'm going to just, this is sort of a pretend quiz bot. And the bot is going to ask, what is the answer for question one? Of course, there is no actual question here. As I said, we are simulating a quiz bot, and the user can either provide the right answer or the wrong answer. So here the user, the agent says, what is the answer for question one? And what I'm going to do is I'm going to create a new page, and I'm just going to call it await answer one. And I'm going to go ahead and save that. And as soon as I do that, you know that it's going to create this new page called await answer one. And here I'm going to add a route, [00:01:00] and I'm going to make a new intent. So this one will be answer.write. And the training phrase is just going to be write, or maybe I'll also say, let me leave it like that. Write is the training phrase, just one phrase. And the agent will say, what is the answer for question one? Two. And here it's going to go to a new page, and that one is going to be await underscore answer number two. So let's go ahead and save that. And the user could have also provided the wrong answer. So I'm going to mark that as answer.wrong. And training phrase is going to be just the word wrong. And go ahead and save that. And once again, the agent is going to say incorrect, [00:02:00] and it's going to say, what is the answer to question two? Okay, and it's going to go to the same await answer two page. So you might have noticed that in the case of answer.write, it did not say that the answer was correct. So let's go ahead and add that correct, is the agent says correct. And then what is the answer for question two? Let's go ahead and save that. And I'm going to go into await underscore answer two. And here we can reuse the route, right? Answer.write. So the agent is just going to say correct. What is the answer for question three? And it's going to go to a new page, and it's going to be called await answer three. Okay, so let's go ahead and save that. And if the user that give the wrong answer over here, [00:03:00] it's just going to say incorrect. What is the answer for question number three? And then we are going to go to the await answer three page one more time. And just to make it clear that the, you have the right and the wrong answer for this one also, let's just go ahead and add this. Answer.write. And it's just going to say correct. And it'll say something like thanks for taking the quiz. Okay, so let's go ahead and save that. And if the answer is wrong, it's going to do the same thing. It's going to say incorrect. And say thanks for taking the quiz. So this is a very simple quiz. And what we have done is just created a flow where the user can provide either yes or no, or right or wrong for these three questions. [00:04:00] And then it will just give feedback on whether the user got it right or wrong. Okay, so let's just go ahead and test the agent quickly. So if it says hi, it's going to say, what is the answer for question one? I'm going to say right. So it says correct, what is the answer for question two? And let's try write again. And what is the answer for question three? Let's reset it. And this time I'm going to go with the wrong answer for all of them. So you can see that it works. So let's just change it slightly and see what happens. And I'm going to say right. This time I'm going to say wrong. And let me try right. Let's try. All right, so this is the basic idea. You have this quiz. So we are going to use system functions to improve this quiz and give some feedback about the score and things like that. [00:05:00] So we will take a look at that in the next lesson.