AI Agents

Intelligent WhatsApp message handling with AI context memory

35 nodes 281 148 Automatic trigger
Download

Workflow Description

Smart automation that receives WhatsApp messages and responds using Gemini AI while maintaining conversation context and enabling Wikipedia searches, delivering natural and proactive dialogue experiences for users.

How it works

  1. 1.Receive incoming WhatsApp messages and classify message type
  2. 2.Store conversation context in buffer memory for retrieval
  3. 3.Process message through AI agent with Wikipedia search capability
  4. 4.Generate response using Gemini language model
  5. 5.Send reply back to user via WhatsApp
  6. 6.Wait before processing the next message

Use cases

  • Automated customer support answering frequently asked questions
  • Research assistant gathering information from Wikipedia in real time
  • Managing multiple conversations without losing context
  • Generating intelligent content based on customer inquiries

Requirements

  • Active WhatsApp Business account configured
  • Gemini API key from Google Cloud
  • n8n application with external service access permissions

Service Value

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

Apps Used

WhatsApp Memory Tool LLM Chain Gemini AI Agent

Details

Trigger Automatic trigger
Nodes 35
Apps 6
Views 281
Downloads 148

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

/

WhatsApp Trigger

Whats App Trigger

#1

Get Audio URL

Whats App

#2

Get Video URL

Whats App

#3

Get Image URL

Whats App

#4

Download Video

HTTP Request

#5

Download Audio

HTTP Request

#6

Download Image

HTTP Request

#7

Window Buffer Memory

Memory Buffer Window

#8

Get User's Message

Set

#9

Split Out Message Parts

Split Out

#10

Wikipedia

Tool Wikipedia

#11

Redirect Message Types

Switch

#12

Sticky Note

Sticky Note

#13

Sticky Note1

Sticky Note

#14

Sticky Note2

Sticky Note

#15

Sticky Note3

Sticky Note

#16

Sticky Note4

Sticky Note

#17

Get Text

Wait

#18

Sticky Note5

Sticky Note

#19

Sticky Note6

Sticky Note

#20

Respond to User

Whats App

#21

Sticky Note7

Sticky Note

#22

Sticky Note8

Sticky Note

#23

Image Explainer

LLM Chain

#24

Format Response

Set

#25

Sticky Note9

Sticky Note

#26

Google Gemini Chat Model

Gemini Model

#27

Sticky Note10

Sticky Note

#28

Google Gemini Audio

HTTP Request

#29

Google Gemini Video

HTTP Request

#30

Google Gemini Chat Model1

Gemini Model

#31

Google Gemini Chat Model2

Gemini Model

#32

Format Response1

Set

#33

Text Summarizer

LLM Chain

#34

AI Agent

Agent

#35