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 an AI agent and a chat model

Adding an AI agent and a chat model - n8n Tutorial

From the course: Build AI Agents and Automate Workflows with n8n

Adding an AI agent and a chat model

- [Instructor] With the trigger in place, let's set up an agent so we have something to talk to. First off, I'll clear out my chat session here so that we're starting from scratch, then I'll click the plus symbol to connect something to this first node. This opens the What happens next panel on the side where I can choose from AI, Actions in an app, that is any external app, Data transformations like filters and data conversions, Flow transformations, Core features, and even Human in the loop. We'll look at some of these later, so for now, I'll click AI. From here, you can choose different AI models. You can also choose sentiment analysis, which gives you different outputs depending on the Sentiment, Summarization Chains, the Text Classifier and so on, but the one that we're going to focus on here is AI Agent. When I select the AI Agent, it opens up in the node configuration view, and this is what you'll see across all our nodes. The input is on the left, then we have the main node…

Contents