AI Agents

Build a Smart Agent That Learns from Conversations

14 nodes 286 147 Automatic trigger
Download

Workflow Description

An automation that creates an intelligent agent receiving messages through a chat interface, processes them using Gemini's language model, and maintains conversation context in memory to deliver coherent and contextual responses.

How it works

  1. 1.Receive messages via chat trigger
  2. 2.Process the message using Gemini language model
  3. 3.Manage conversation context and memory buffer
  4. 4.Generate intelligent response through the agent
  5. 5.Aggregate data and send response to user

Use cases

  • Create a chatbot assistant that understands historical conversation context
  • Build a smart agent that learns from previous user interactions
  • Develop an automated customer support system maintaining conversation continuity

Requirements

  • Google account for Gemini access
  • Basic understanding of memory management in automation
  • Ability to customize agent logic based on business needs

Service Value

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

Apps Used

Chat Trigger Gemini AI Agent Memory

Details

Trigger Automatic trigger
Nodes 14
Apps 4
Views 286
Downloads 147

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 (14)

/

When chat message received

Chat Trigger

#1

Google Gemini Chat Model

Gemini Model

#2

Google Gemini Chat Model1

Gemini Model

#3

Keyword Data Response Formatter

Agent

#4

Keyword Query Extraction & Cleaning Agent

Agent

#5

Extract Main Keyword & 10 related Keyword data

Code

#6

Aggregate Keyword Data

Aggregate

#7

Ahrefs Keyword API Request

HTTP Request

#8

Sticky Note

Sticky Note

#9

Sticky Note1

Sticky Note

#10

Sticky Note2

Sticky Note

#11

Sticky Note3

Sticky Note

#12

Sticky Note4

Sticky Note

#13

Simple Memory

Memory Buffer Window

#14