AI Agents

Intelligent WhatsApp Assistant with AI Memory and Multiformat Support

32 nodes 324 174 Automatic trigger
Download

Workflow Description

An automation that receives text, voice, images, and PDF files through WhatsApp, processes them with an AI agent equipped with contextual memory, and delivers intelligent responses. Handles format conversions and maintains conversation history for coherent replies.

How it works

  1. 1.Trigger: Receive incoming WhatsApp messages and files automatically
  2. 2.Extract text from audio, images, and PDF documents using file handlers
  3. 3.Pass processed content to OpenAI agent with persistent memory buffer
  4. 4.Generate intelligent response based on context and conversation history
  5. 5.Send reply back to user through WhatsApp

Use cases

  • Automated customer support that understands multi-turn conversations
  • Process document-heavy inquiries with image and PDF attachment handling
  • Build a personal AI assistant that remembers previous interactions

Requirements

  • Active OpenAI API key with sufficient quota and model access
  • WhatsApp Business Account or configured WhatsApp connection in n8n
  • Understanding of memory buffer configuration to maintain conversation context

Service Value

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

Apps Used

WhatsApp OpenAI AI Agent Memory

Details

Trigger Automatic trigger
Nodes 32
Apps 4
Views 324
Downloads 174

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

/

WhatsApp Trigger

Whats App Trigger

#1

Download Image

HTTP Request

#2

Analyze Image

OpenAI

#3

Download Audio

HTTP Request

#4

Transcribe Audio

OpenAI

#5

OpenAI Chat Model

OpenAI

#6

AI Agent1

Agent

#7

Download File

HTTP Request

#8

Extract from File

Extract From File

#9

Simple Memory

Memory Buffer Window

#10

Get File Url

Whats App

#11

Only PDF File

If

#12

Fix mimeType for Audio

Code

#13

Send message

Whats App

#14

Send audio

Whats App

#15

Incorrect format

Whats App

#16

Text

Set

#17

Audio

Set

#18

Image

Set

#19

File

Set

#20

Not supported

Whats App

#21

Get Image Url

Whats App

#22

Get Audio Url

Whats App

#23

Generate Audio Response

OpenAI

#24

Sticky Note

Sticky Note

#25

Sticky Note1

Sticky Note

#26

Sticky Note2

Sticky Note

#27

Sticky Note3

Sticky Note

#28

Sticky Note4

Sticky Note

#29

From audio to audio?

If

#30

Input type

Switch

#31

Sticky Note5

Sticky Note

#32