AI Agents

Build a Custom AI Agent with Gemini Intelligence

9 nodes 284 154 Automatic trigger
Download

Workflow Description

Automation that creates an AI agent powered by Gemini with persistent conversation memory. Receives messages through a chat interface, processes them with advanced AI, and retains conversation context for increasingly accurate and coherent interactions over time.

How it works

  1. 1.Activate chat trigger and receive incoming user message
  2. 2.Process message through Gemini model while accessing memory history
  3. 3.Update conversation memory with new message and AI response
  4. 4.Send response back to user through chat channel

Use cases

  • Create a custom intelligent assistant that understands and maintains conversation history
  • Build a support agent that improves interactions by remembering previous customer exchanges

Requirements

  • Google Gemini API key and authentication setup
  • Chat trigger configured on your hosting platform
  • Memory module enabled to store and retrieve conversation context

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 284
Downloads 154

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