AI Agents

AI-powered WhatsApp for text, audio, images and PDFs

32 nodes 239 128 Automatic trigger
Download

Workflow Description

An intelligent automation that receives WhatsApp messages—text, audio, images, and PDFs—and processes them using an AI agent powered by OpenAI, maintaining conversation context through memory buffers for continuous, aware interactions.

How it works

  1. 1.Trigger on incoming WhatsApp messages in all formats
  2. 2.Extract content from files and transcribe audio to text
  3. 3.Process data through an OpenAI-backed AI agent
  4. 4.Maintain conversation history and short-term memory context
  5. 5.Send intelligent replies back to WhatsApp

Use cases

  • Autonomous customer support responding to multi-format inquiries without human intervention
  • Document processing that recognizes, extracts, and summarizes invoices, contracts, and files
  • Contextual assistant that remembers previous exchanges and delivers relevant, coherent responses

Requirements

  • Active OpenAI account with valid API key
  • WhatsApp Business account or WhatsApp connection in n8n
  • Sample PDFs, images, or voice messages for testing the pipeline

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 239
Downloads 128

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