AI Agents

Create a custom AI agent using Gemini (self-hosted)

9 nodes 199 134 Automatic trigger
Download

Workflow Description

A template for building a custom AI agent powered by Google's Gemini model with memory capability to maintain conversation context, triggered through direct chat interactions for autonomous operation.

How it works

  1. 1.Receive messages via chat trigger interface
  2. 2.Process inputs using Gemini language model
  3. 3.Store conversation context in memory buffer
  4. 4.Execute custom logic through code node
  5. 5.Return responses to user in real-time

Use cases

  • Create a customer support bot that learns from previous interactions
  • Build a specialized virtual assistant for domain-specific tasks
  • Develop an intelligent Q&A system that maintains conversation history

Requirements

  • Valid Google Gemini API key configured
  • Conversation history and memory management enabled
  • Self-hosted n8n instance or cloud deployment ready

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Chat Trigger Gemini Memory

Details

Trigger Automatic trigger
Nodes 9
Apps 3
Views 199
Downloads 134

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (9)

When chat message received

Chat Trigger

#1

Google Gemini Chat Model

Gemini Model

#2

Sticky Note

Sticky Note

#3

Store conversation history

Memory Buffer Window

#4

Construct & Execute LLM Prompt

Code

#5

Sticky Note1

Sticky Note

#6

Sticky Note2

Sticky Note

#7

Sticky Note3

Sticky Note

#8

Sticky Note4

Sticky Note

#9