Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Build Your First AI Agent

n8n template #6270
How it works This template launches your very first AI Agent —an AI-powered chatbot that can do more than just talk— it can take action using tools. Think of an AI Agent as a smart assistant, and the tools are the apps on its phone. By connecting it to other nodes, you give your agent the ability to interact with real-world data and services, like checking the weather, fetching news, or even sending emails on your behalf. This workflow is designed to be the perfect starting point: The Chat Interface: A Chat Trigger node provides a simple, clean interface for you to talk to your agent. The Brains: The AI Agent node receives your messages, intelligently decides which tool to use (if any), and

How to set it up

  1. Open template #6270 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
  2. Create a credential under Credentials → Add credential: Google Gemini Chat Model. Then open each of those nodes and pick the credential.
  3. Check the model in the AI Agent node. The template may point at a model your account can't use; swap it for one you have access to.
  4. Click Execute workflow and step through each node's output to confirm the data looks right.
  5. Toggle the workflow to Active so its trigger runs on its own.

Hand off to your agent

Prompt

Help me set up the n8n workflow "Build Your First AI Agent" (https://n8n.io/workflows/6270). It uses: AI Agent, Simple Memory, Google Gemini Chat Model. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.

Paste into Claude Code and it will do the rest.

Apps and nodes

Questions

Yes. Lucas Peyrin published it free on n8n.io as a verified creator, and it has 100K views. It runs on n8n Cloud or a self-hosted n8n instance.

Google Gemini Chat Model. The other 2 nodes are built into n8n.

Similar workflows

NameViews
  1. RAG Chatbot for Company Documents using Google Drive and Gemini95K
  2. Respond to WhatsApp Messages with AI Like a Pro!91K
  3. 🤖 AI Powered RAG Chatbot for Your Docs + Google Drive + Gemini + Qdrant65K
  4. 🤖 Create a Documentation Expert Bot with RAG, Gemini, and Supabase31K
  5. Build a Voice AI Chatbot with ElevenLabs and InfraNodus Knowledge Experts31K
  6. Build a Personal Assistant with Google Gemini, Gmail and Calendar using MCP21K
  7. 🤖 Build a Documentation Expert Chatbot with Gemini RAG Pipeline17K
  8. Document Q&A Chatbot with Gemini AI and Supabase Vector Search for Telegram17K