Skip to main content

WhatsApp AI assistant with Claude & GPT4O: multi-format processing & productivity suite

Workflow preview

Workflow preview
100%
WhatsApp AI assistant with Claude & GPT4O: multi-format processing & productivity suite preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

WhatsApp AI Personal Assistant n8n Workflow Instructions Who's it for This workflow is designed for business professionals, entrepreneurs, and individuals who want to transform their WhatsApp into ...

Best for

  • Personal Productivity automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.extractfromfile, n8n-nodes-base.whatsapp, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Growth AI.

Original n8n.io source

1.1 Workflow description

Title
WhatsApp AI assistant with Claude & GPT4O: multi-format processing & productivity suite
Workflow name
WhatsApp AI assistant with Claude & GPT4O: multi-format processing & productivity suite

WhatsApp AI Personal Assistant - n8n Workflow Instructions

Who's it for

This workflow is designed for business professionals, entrepreneurs, and individuals who want to transform their WhatsApp into a powerful AI-powered personal assistant. Perfect for users who need to manage emails, calendar events, document searches, and various productivity tasks through a single messaging interface.

What it does

This comprehensive n8n workflow creates an intelligent WhatsApp bot that can process multiple message types (text, voice, images, PDF documents) and execute complex tasks using integrated tools including Gmail, Google Calendar, Google Drive, Airtable, Discord, and internet search capabilities. The assistant maintains conversation context and can handle sophisticated requests through natural language processing.

How it works

Phase 1: Message Reception and Classification

The workflow begins when a message is received through the WhatsApp Trigger. A Switch node automatically classifies the incoming message type (text, audio, image, or document) and routes it to the appropriate processing pathway.

Phase 2: Content Processing by Format

Text Messages: Direct extraction and formatting for AI processing Voice Messages:

  • Retrieves audio URL from WhatsApp API
  • Downloads audio file with authenticated requests
  • Transcribes speech to text using OpenAI Whisper
  • Formats transcribed content for AI agent

Images:

  • Downloads image from WhatsApp API
  • Analyzes visual content using GPT-4O-mini vision model
  • Generates detailed French descriptions covering composition, objects, people, and atmosphere
  • Combines user requests with AI analysis

PDF Documents:

  • Validates file format (rejects non-PDF files)
  • Downloads and extracts text content
  • Processes document text for AI analysis

Phase 3: AI Assistant Processing

The processed content is handled by a Claude Sonnet 4-powered agent with access to:

  • SerpAPI for internet searches
  • Airtable database for email contact management
  • Gmail integration for email operations
  • Google Calendar for event scheduling and management
  • Google Drive for document searches
  • Discord messaging for notifications
  • Calculator for mathematical operations
  • PostgreSQL chat memory for conversation context

Phase 4: Response Delivery

The system intelligently determines response format:

  • For voice inputs: Converts AI response to speech using OpenAI TTS
  • For other inputs: Sends text responses directly
  • Handles technical requirements like MIME type compatibility for WhatsApp

Requirements

API Credentials Required:

  • WhatsApp Business API (Trigger and messaging)
  • OpenAI API (GPT-4O-mini, Whisper, TTS)
  • Anthropic API (Claude Sonnet 4)
  • Google APIs (Gmail, Calendar, Drive OAuth2)
  • Airtable API (Database operations)
  • Discord Bot API (Messaging)
  • SerpAPI (Internet search)
  • PostgreSQL Database (Conversation memory)

Self-hosted n8n Instance

This workflow requires a self-hosted n8n installation as it uses community nodes and advanced integrations not available in n8n Cloud.

How to set up

1. Prerequisites Setup

  • Deploy n8n on a server with public access
  • Obtain WhatsApp Business API credentials
  • Create developer accounts for all required services
  • Set up a PostgreSQL database for conversation memory

2. Credential Configuration

Configure the following credentials in n8n:

  • WhatsApp API credentials for both trigger and messaging nodes
  • OpenAI API key with access to GPT-4O-mini, Whisper, and TTS
  • Anthropic API key for Claude Sonnet 4
  • Google OAuth2 credentials for Gmail, Calendar, and Drive
  • Airtable Personal Access Token
  • Discord Bot token
  • SerpAPI key
  • PostgreSQL database connection

3. WhatsApp Configuration

  • Configure webhook URLs in WhatsApp Business API settings
  • Set up phone number verification
  • Configure message templates if required

4. Tool Configuration

  • Airtable: Set up email database with 'Nom' and 'Mails' columns
  • Google Calendar: Configure calendar access permissions
  • Google Drive: Set up appropriate folder permissions
  • Discord: Configure bot permissions and channel access

5. Testing and Validation

  • Test each message type (text, audio, image, PDF)
  • Verify all tool integrations work correctly
  • Test conversation memory persistence
  • Validate response delivery in both text and audio formats

How to customize the workflow

Modify AI Assistant Personality

Edit the system message in the "Agent personnel" node to customize the assistant's behavior, tone, and capabilities according to your needs.

Add New Tools

Integrate additional n8n tool nodes to extend functionality:

  • CRM systems (Salesforce, HubSpot)
  • Project management tools (Notion, Trello)
  • File storage services (Dropbox, OneDrive)
  • Communication platforms (Slack, Microsoft Teams)

Customize Content Processing

  • Modify image analysis prompts for specific use cases
  • Add document format support beyond PDF
  • Implement content filtering or moderation
  • Add language detection and multi-language support

Enhance Memory and Context

  • Implement user-specific memory sessions
  • Add conversation summaries for long interactions
  • Create user preference storage
  • Implement conversation analytics

Response Customization

  • Add multimedia response capabilities
  • Implement response templates for common queries
  • Add typing indicators or read receipts
  • Create custom response formatting

Security Enhancements

  • Implement user authentication
  • Add rate limiting for API calls
  • Create audit logs for sensitive operations
  • Implement data encryption for stored conversations

Performance Optimization

  • Add caching for frequently accessed data
  • Implement queue management for high-volume usage
  • Add error handling and retry mechanisms
  • Create monitoring and alerting systems

Important Notes

  • This workflow processes sensitive data; ensure proper security measures are in place
  • Monitor API usage limits across all integrated services
  • Regularly backup conversation memory data
  • Test thoroughly before deploying to production
  • Consider implementing user access controls for business environments
  • Keep all API credentials secure and rotate them regularly

Troubleshooting

  • Audio Issues: Verify MIME type handling in the "Fix mimeType for Audio" node
  • WhatsApp Delivery: Check webhook configurations and phone number verification
  • Tool Failures: Validate all API credentials and permissions
  • Memory Issues: Monitor PostgreSQL database performance and storage
  • Response Delays: Optimize tool timeout settings and add proper error handling

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Download Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - Analyze Image

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 3 - Download Audio

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Transcribe Audio

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 5 - Download File

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Extract from File

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 7 - Get File Url

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 8 - Only PDF File

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - Fix mimeType for Audio

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Send audio

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 11 - Incorrect format

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 12 - Text

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Audio

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Image

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - File

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Get Image Url

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 17 - Get Audio Url

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 18 - Generate Audio Response

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 19 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - From audio to audio?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 22 - Input type

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 23 - Postgres Chat Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryPostgresChat - memoryPostgresChat
Config choices
Version 1.3

Block 24 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 51 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow WhatsApp AI assistant with Claude & GPT4O: multi-format processing & productivity suite
Complexity advanced
Nodes 51
Categories Personal Productivity, AI Chatbot
Author Growth AI
Published 25 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8920/8920.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does WhatsApp AI assistant with Claude & GPT4O: multi-format processing & productivity suite do?

WhatsApp AI Personal Assistant n8n Workflow Instructions Who's it for This workflow is designed for business professionals, entrepreneurs, and individuals who want to transform their WhatsApp into ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, AI Chatbot use case.