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

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