Skip to main content

Build a WhatsApp assistant with memory, Google Suite & multi-AI research and imaging

Workflow preview

Workflow preview
100%
Build a WhatsApp assistant with memory, Google Suite & multi-AI research and imaging preview
Open on n8n.io

Important notice

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

1. Workflow Overview

The " WhatsApp Productivity Assistant with Memory and AI Imaging " is a comprehensive n8n workflow that transforms your WhatsApp into a powerful, multi talented AI assistan...

Best for

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

Tools used

n8n-nodes-base.whatsapptrigger, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.httprequest, n8n-nodes-base.openweathermaptool, n8n-nodes-base.whatsapp, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.toolthink

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Build a WhatsApp assistant with memory, Google Suite & multi-AI research and imaging
Workflow name
Build a WhatsApp assistant with memory, Google Suite & multi-AI research and imaging

The "WhatsApp Productivity Assistant with Memory and AI Imaging" is a comprehensive n8n workflow that transforms your WhatsApp into a powerful, multi-talented AI assistant. It's designed to handle a wide range of tasks by understanding user messages, analyzing images, and connecting to various external tools and services. The assistant can hold natural conversations, remember past interactions using a MongoDB vector store (RAG), and decide which tool is best suited for a user's request. Whether you need to check your schedule, research a topic, get the latest news, create an image, or even analyze a picture you send, this workflow orchestrates it all seamlessly through a single WhatsApp chat interface.

The workflow is structured into several interconnected components:

  • WhatsApp Trigger & Incoming Message Processing: This is the entry point, starting when a message (text or image) is received via WhatsApp. A Route Message by Type (Image/Text) node then intelligently routes the message based on its content type. A Typing.... node sends a typing indicator to the user for a better experience. If an image is received, it's downloaded, processed via an HTTP Request, and analyzed by the Analyze image node. The Code1 node then standardizes both text and image analysis output into a single, unified input for the main AI agent.
  • Core AI Agent: This is the brain of the operation. The AI Agent1 node receives the user's input, maintains short-term conversational memory using Simple Memory, and uses a powerful language model (gpt-oss-120b2 or gpt-oss-120b1) to decide which tool or sub-agent to use. It orchestrates all the other agents and tools.
  • Productivity Tools Agent: This group of nodes connects the assistant to your personal productivity suite. It includes sub-agents and tools for managing Google Calendar, Google Tasks, and Gmail, allowing you to schedule events, manage to-dos, and read emails. It leverages a language model (gpt-4.1-mini or gemini-2.5-flash) for understanding and executing commands within these tools.
  • Research Tool Agent: This agent handles all research-related queries. It has access to multiple search tools (Brave Web Search, Brave News Search, Wikipedia, Tavily, and a custom perprlexcia search) to find the most accurate and up-to-date information from the web. It uses a language model (gpt-oss-120b or gpt-4.1-nanoChat Model1) for reasoning.
  • Long-Term Memory Webhook: A dedicated sub-workflow (Webhook2) that processes conversation history, extracts key information using Extract Memory Info, and stores it in a MongoDB Atlas Vector Store for long-term memory. This allows the AI agent to remember past preferences and facts.
  • Image Generation Webhook: A specialized sub-workflow (Webhook3) triggered when a user asks to create an image. It uses a dedicated AI Agent with MongoDB Atlas Vector Store1 for contextual image prompt generation, Clean Prompt Text1 to refine the prompt, an HTTP Request to an external image generation API (e.g., Together.xyz), and then converts and sends the generated image back to the user via WhatsApp.

Use Cases

  • Personal Assistant: Schedule appointments, create tasks, read recent emails, and manage your daily agenda directly from WhatsApp.
  • Information Retrieval: Ask any factual, news, or research-based question and get real-time answers from various web sources.
  • Creative Content Generation: Request the AI to generate images based on your descriptions for logos, artwork, or social media content.
  • Smart Communication: Engage in natural, contextual conversations with an AI that remembers past interactions.
  • Image Analysis: Send an image and ask the AI to describe its contents or answer questions about it.

Pre-conditions

Before importing and running this template, you will need:

  • Self-hosted n8n Instance: This template requires a self-hosted n8n instance as it uses webhooks that need public accessibility.
  • WhatsApp Business Account: A Meta Developer Account configured for WhatsApp Business Platform API access.
  • MongoDB Atlas Account: A MongoDB Atlas cluster with a database and collection set up for the vector store.
  • Google Cloud Project: Configured with API access for Google Calendar, Google Tasks, and Gmail.
  • API Keys/Accounts for:
    • OpenWeatherMap: For weather forecasts.
    • Groq, OpenRouter, or Vercel AI Gateway: For various Language Models (e.g., gpt-oss-120b, gpt-5-nano, gpt-4o-mini).
    • Mistral Cloud: For embedding models (e.g., codestral-embed-2505).
    • Brave Search: For web and news searches.
    • Tavily API: For structured search results.
    • Together.xyz or similar Image Generation API: For creating images.
    • Perplexity API (or self-hosted instance): For the perprlexcia tool (the current URL http://self hoseted perplexcia/api/search implies a self-hosted or custom endpoint).
  • Publicly Accessible URLs: Your n8n instance and any custom webhook endpoints (like perprlexcia) must be publicly accessible.

Requirements (n8n Credentials)

You will need to set up the following credentials within your n8n instance:

  • WhatsApp OAuth account: For the WhatsApp Trigger node.
  • WhatsApp account: For Send message2, Send message3, Download media, and Typing.... nodes.
  • Google Palm Api account: For Analyze image, Google Gemini Chat Model, gemini-2.5-flash, and Google Gemini Chat Model5 nodes.
  • OpenWeatherMap account: For the Get Weather Forecast node.
  • Groq account: For gpt-oss-120b node.
  • Google Calendar OAuth2Api account: For the Google Calendar tools.
  • MongoDB account: For MongoDB Atlas Vector Store nodes.
  • OpenRouter account: For gpt-5-nano and gpt-4.1-nanoChat Model1 nodes.
  • Gmail account : For Get many messages and Get a message nodes (ensure correct Gmail OAuth2 setup for each).
  • Google Tasks account: For the Google Tasks tools.
  • Bearer Auth account: For HTTP Request5 (used in media download).
  • Brave Search account: For Brave Web Search and Brave News Search nodes.
  • Vercel Ai Gateway Api account: For gpt-4.1-mini, gpt-oss-120b, gpt-oss-120b2, and gpt-4.1-nano nodes.
  • HTTP Header Auth account: For Tavily web search (create a new one named "Tavily API Key" with Authorization: Bearer YOUR_TAVILY_API_KEY) and HTTP Request (for Together.xyz, e.g., "Together.xyz API Key").
  • Mistral Cloud account: For codestral-embed-2505, codestral-embed-, and codestral-embed-2506 nodes.

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 - WhatsApp Trigger

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

Block 2 - AI Agent1

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 3 - send chat history to MongoDB

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

Block 4 - WeatherMap

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

Block 5 - Download media

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

Block 6 - Analyze image

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 7 - HTTP Request5

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

Block 8 - Switch

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

Block 9 - Think

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1

Block 10 - Code1

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

Block 11 - Gmail tool

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 2.2

Block 12 - Typing....

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

Block 13 - Simple Memory

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

Block 14 - Calendar Agent

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 2.2

Block 15 - Get many events

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 16 - Create an event

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 17 - Update an event

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 18 - Delete an event

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 19 - Get an event

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 20 - MongoDB Atlas Vector Store2

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

Block 21 - gemini-2.5-flash

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 22 - gpt-5-nano

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 23 - Get many messages

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

Block 24 - Get a message

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

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

3. Summary Table

Workflow Build a WhatsApp assistant with memory, Google Suite & multi-AI research and imaging
Complexity advanced
Nodes 71
Categories AI Chatbot, Multimodal AI
Author Iniyavan JC
Published 20 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7663/7663.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 Build a WhatsApp assistant with memory, Google Suite & multi-AI research and imaging do?

The " WhatsApp Productivity Assistant with Memory and AI Imaging " is a comprehensive n8n workflow that transforms your WhatsApp into a powerful, multi talented AI assistan...

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 AI Chatbot, Multimodal AI use case.