Enhancing Your AI Agent with Custom HTTP Tools
This lesson preview is part of the n8n Automation: Building AI-Powered Workflows course and can be unlocked immediately with a \newline Pro subscription or a single-time purchase. Already have access to this course? Log in here.
Get unlimited access to n8n Automation: Building AI-Powered Workflows, plus 80+ \newline books, guides and courses with the \newline Pro subscription.

[00:00 - 00:21] And already by now, this is quite powerful. And we used pre-built tools for specifically connected to the layer, but what, for example, if you don't have the tool built in here, inside of N&N that you want to use, but still you want to fetch something and to work with something, right?
[00:22 - 00:30] Let's also cover this one a little bit custom specific case. And here we can actually start to use the HTTP.
[00:31 - 00:40] So basically there's separate HTTP tool, specifically for those custom cases. So let's click again tools.
[00:41 - 00:45] Let's damage the search for the HTTP. Let's click on it.
[00:46 - 00:54] And boom, here it is. Basically here in Visual manner, we're going to create the HTTP request and to wrap up the number we need.
[00:55 - 01:05] Here I'm just going to do a bunch of copy pasting to connect to the linear account. We're standing from the description first about the description, let's provide following.
[01:06 - 01:17] Get list of all available teams and their IDs for linear task manager. We are forgot to mention what we're going to do and what we're going to fetch, specifically in this case.
[01:18 - 01:30] We're going to fetch all of the IDs if our available teams, because the default linear tool doesn't actually have pre-built tools for it. We need to make the custom API call.
[01:31 - 01:45] And let's test this custom API call using the HTTP tool, now mold specifically, and play around with it basically. So here it is, the description, what we're going to do.
[01:46 - 01:51] Next, inside of our HTTP request, we need to choose the method. Now in case it will be post method.
[01:52 - 01:56] And then we need to provide the URL. Here it is, just copy and paste it.
[01:57 - 02:06] It's the linear graph URL. Then authentication, let's click here and let's click predefined conventional type.
[02:07 - 02:10] Once we click on it, let's search for the linear API. Here it is.
[02:11 - 02:20] So since we already have the key installed, it should connect automatic. Oh, here it is, linear API, linear account.
[02:21 - 02:30] So here our API keys got brought automatically. Next, we need to provide the body.
[02:31 - 02:44] In our case, this is will be the JSON, which we're going to send to explain what exactly we're expecting back. So let's body content type JSON and specific body using JSON.
[02:45 - 02:51] So we're going to provide our specific JSON field. In our case, we'll be searching for the ID and names of our teams.
[02:52 - 02:59] And that's it. Jobs of the headers, the intent automatically will create appropriate header.
[03:00 - 03:06] It will attach the server, our API key. It will take care of everything basically.
[03:07 - 03:11] And it's really here provided the body with the JSON. So basically that's it.
[03:12 - 03:17] And it's already should be working. Let's double check that everything okay.
[03:18 - 03:24] Let's exit and boom, here our HTTP requests right now next to other tasks. Awesome.
[03:25 - 03:35] This time, let's ask it to give us some IDs. Maybe, let me just create the custom prompt.
[03:36 - 03:50] Please don't forget to have manners while you chat with your little M. Give me the, IDs of my available teams.
[03:51 - 04:09] And let's send it. And boom, we can see that it automatically decided to grab and use the HTTP request tool, which is awesome.
[04:10 - 04:14] And here it is. It actually returned as the team name and team ID.
[04:15 - 04:17] how beautiful this is. so