1 00:00:00,06 --> 00:00:02,07 - [Instructor] Okay, so how can we give our agent now 2 00:00:02,07 --> 00:00:04,05 access to this knowledge tool? 3 00:00:04,05 --> 00:00:07,00 First of all, make sure you hit save over here 4 00:00:07,00 --> 00:00:09,03 so we don't lose our progress. 5 00:00:09,03 --> 00:00:13,07 Then head over to the basic agent that we just built. 6 00:00:13,07 --> 00:00:15,07 Here you see the option to add tools, 7 00:00:15,07 --> 00:00:17,07 click this little plus icon 8 00:00:17,07 --> 00:00:22,06 and then select Call n8n Workflow tool. 9 00:00:22,06 --> 00:00:26,01 This allows you to use any n8n workflow as a tool. 10 00:00:26,01 --> 00:00:28,08 We'll talk about the different options in n8n 11 00:00:28,08 --> 00:00:30,00 to add tools later on. 12 00:00:30,00 --> 00:00:32,05 For now, just bear with me for this one. 13 00:00:32,05 --> 00:00:34,06 What we wanna do now is two things. 14 00:00:34,06 --> 00:00:37,03 First, we want to give this agent tool a name 15 00:00:37,03 --> 00:00:39,05 so we can easily find it later on. 16 00:00:39,05 --> 00:00:44,04 In this case, let's call it knowledge tool, 17 00:00:44,04 --> 00:00:46,05 and then let's give this tool a description. 18 00:00:46,05 --> 00:00:50,00 This is important because this description will be used 19 00:00:50,00 --> 00:00:52,09 by the agent to figure out when to use this tool. 20 00:00:52,09 --> 00:00:58,02 In this case, it could be as straightforward as saying, 21 00:00:58,02 --> 00:01:01,07 call this tool to request conference details. 22 00:01:01,07 --> 00:01:05,08 As a source, make sure you select database, 23 00:01:05,08 --> 00:01:09,04 and then you can pick a workflow from a list. 24 00:01:09,04 --> 00:01:12,09 Select the flow knowledge tool that you have just created. 25 00:01:12,09 --> 00:01:14,07 You can see that it automatically pulls in 26 00:01:14,07 --> 00:01:16,07 our requested input field. 27 00:01:16,07 --> 00:01:20,06 In this case, the question, if you hover over this icon, 28 00:01:20,06 --> 00:01:24,00 you can see that it suggests you define this parameter 29 00:01:24,00 --> 00:01:24,09 by the model. 30 00:01:24,09 --> 00:01:26,06 So what this means is 31 00:01:26,06 --> 00:01:32,06 that now the AI agent can define this parameter dynamically. 32 00:01:32,06 --> 00:01:34,08 It means it can generate a question 33 00:01:34,08 --> 00:01:36,08 and then pass this question over 34 00:01:36,08 --> 00:01:39,05 to this workflow, and that's it. 35 00:01:39,05 --> 00:01:42,05 Now our agent has access to this tool, 36 00:01:42,05 --> 00:01:44,00 so let's close this for now 37 00:01:44,00 --> 00:01:47,00 and see how well it works in action.