From the course: Build AI Agents and Automate Workflows with n8n
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Adding a tool to the AI agent - n8n Tutorial
From the course: Build AI Agents and Automate Workflows with n8n
Adding a tool to the AI agent
- [Narrator] The tool feature in AI agents allow us to plug external services, custom functions, even other workflows into the AI agent for the AI model to use. And this is what makes n8n and these AI agents so powerful. The easiest way to understand what's going on here is through a basic example. So up here I have a Google sheet that has two sheets in it, a short sheet with nine volunteers, and a full sheet with over a hundred volunteers. We're going to work with a short one for now. These are not real people, this is just example data. But you can extrapolate and see how this could be a database, a larger Google sheet, whatever you can think of. I want my AI agent to be able to access that data and answer questions about it. And that's what we use tools for. Now, just like with OpenAI to plug in Google Sheets, I need to first authenticate, and I can do that by adding in the tool, but I can also do it by going back to my project, going to credentials here I already have the OpenAI…
Contents
-
-
-
Introducing n8n2m 6s
-
The Plan: An AI-powered Slackbot managing a Google Sheet2m 30s
-
(Locked)
Creating a new n8n workflow with a trigger1m 55s
-
(Locked)
Adding an AI agent and a chat model5m 28s
-
(Locked)
Adding a tool to the AI agent4m 47s
-
(Locked)
Using a sub-workflow as a tool4m 48s
-
(Locked)
Using the filter node to modify data4m 51s
-
(Locked)
Creating an MCP server in n8n4m 41s
-
(Locked)
Adding tools to the MCP server3m 50s
-
(Locked)
Creating a Slackbot2m 56s
-
(Locked)
Authenticating Slack3m 31s
-
(Locked)
Adding a Slack trigger2m 16s
-
(Locked)
Sending messages to Slack2m 27s
-
-