From the course: Build with AI: Create Custom Chatbots with n8n

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Creating the basic n8n chatbot flow

Creating the basic n8n chatbot flow

- [Instructor] All right. So let's create our first basic chat bot in n8n. To get started to click create workflow over here, and then add a chat trigger as the first step. We can close this for now. We'll come back to the chat trigger later on. Next, let's add the actual AI node over here. There are a couple of options in n8n. For our purposes, we are choosing the AI agent node, which allows us to flexibly evolve our simple chat bot as we go. So let's select AI agent, and make sure it's connected to the chat trigger node. For now, let's close this, and make sure that we also connect a chat model here. This is the actual AI service. So click plus and you see there are various options you can choose from. I'm choosing Google Gemini here. Why? Well, because it's pretty easy to set up. If you haven't connected Gemini to n8n before, just simply click this create new credential menu over here, and then you need to insert an API key. Where do you get this API key from? Well just visit…

Contents