AI Agents

Receive WhatsApp Messages and Generate Google Docs with AI Intelligence

36 nodes 333 202 Automatic trigger
Download

Workflow Description

An automation that captures WhatsApp messages, processes them through an AI agent powered by Anthropic and Gemini models, stores data in Postgres database, and automatically generates formatted Google Docs based on the processed content.

How it works

  1. 1.Receive WhatsApp message and trigger immediate processing
  2. 2.Process text through AI agent with vector store search and conversation memory
  3. 3.Create formatted Google Docs with AI-generated content

Use cases

  • Automatically document customer conversations in organized documents
  • Collect feedback and insights from WhatsApp and convert them into structured reports

Requirements

  • Google Cloud account with Google Docs API enabled
  • WhatsApp Business phone number connected to n8n
  • API keys for Anthropic and Google Gemini services

Service Value

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

Apps Used

AI Agent WhatsApp Vector Store Output Parser Postgres Anthropic Gemini Google Docs

Details

Trigger Automatic trigger
Nodes 36
Apps 8
Views 333
Downloads 202

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

/

AI Agent

Agent

#1

Send message

Whats App

#2

Pinecone Vector Store

Vector Store Pinecone

#3

Answer questions with a vector store

Tool Vector Store

#4

If

If

#5

No Operation, do nothing

No Op

#6

Structured Output Parser

Output Parser Structured

#7

Edit Fields

Set

#8

Insert rows in a table

Postgres

#9

Postgres Chat Memory

Memory Postgres Chat

#10

WhatsApp_Receive

Whats App Trigger

#11

Make SessionId1

Set

#12

Anthropic Chat Model

Lm Chat Anthropic

#13

Embeddings Google Gemini

Gemini Model

#14

Anthropic Chat Model1

Lm Chat Anthropic

#15

Anthropic Chat Model2

Lm Chat Anthropic

#16

Application works

Google Docs

#17

Verify the message

If

#18

Category "Latest Works"

If

#19

If-Apps

If

#20

If-Web

If

#21

web works

Google Docs

#22

Attach Docs (Apps)

Set

#23

عقدة Attach Docs (Web)

Set

#24

Merge Context + Docs

Merge

#25

Merge Docs

Merge

#26

No Operation, do nothing3

No Op

#27

If_Info

If

#28

No Operation, do nothing1

No Op

#29

Set (Company URLs)

Set

#30

HTTP Request

HTTP Request

#31

Function (Build URL items

Code

#32

Function (HTML → text)

Code

#33

Function (Join pages text → docs_content)

Code

#34

If (docs ok)

If

#35

No Operation, do nothing2

No Op

#36