AI Agents

Build an intelligent agent memory system with Google Sheets

17 nodes 307 151 Webhook
Download

Workflow Description

This automation enables an AI agent to maintain an organized record of conversations and data in Google Sheets, allowing it to retrieve previous context and make informed decisions based on accumulated history.

How it works

  1. 1.Receive request via webhook and pass it to the intelligent agent
  2. 2.Process the request with Gemini and generate an appropriate response
  3. 3.Save conversation and key data to the Google Sheets document
  4. 4.Retrieve previous data from the sheet to enhance context awareness
  5. 5.Send final response with complete transaction documentation

Use cases

  • Track recurring customer interactions and leverage historical records for better responses
  • Build a dynamic knowledge base for the agent that evolves with usage
  • Manage tasks and projects while preserving full conversation context

Requirements

  • Active Google Cloud account with Sheets and Gemini APIs enabled
  • Valid webhook credentials for reception and triggering
  • Pre-organized Google Sheets document for storing records

Service Value

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

Apps Used

AI Agent Gemini Google Sheets

Details

Trigger Webhook
Nodes 17
Apps 3
Views 307
Downloads 151

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

/

Webhook

Webhook

#1

AI Agent

Agent

#2

Google Gemini Chat Model

Gemini Model

#3

Edit Fields

Set

#4

HTTP Request

HTTP Request

#5

Get History

Google Sheets

#6

Prepare Prompt

Set

#7

Save History

Google Sheets

#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

Sticky Note5

Sticky Note

#14

Split History

Code

#15

Sticky Note6

Sticky Note

#16

Sticky Note7

Sticky Note

#17