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`, `Qwant`, and a custom `perplexcia` 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. - **Qwant API:** For structured search results. - **Together.xyz or similar Image Generation API:** For creating images. - **Perplexity API (or self-hosted)**
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. ATyping...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 theAnalyze imagenode. TheCode1node 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 Agent1node receives the user's input, maintains short-term conversational memory usingSimple Memory, and uses a powerful language model (gpt-oss-120b2orgpt-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, andGmail, allowing you to schedule events, manage to-dos, and read emails. It leverages a language model (gpt-4.1-miniorgemini-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,Qwant, and a customperplexciasearch) to find the most accurate and up-to-date information from the web. It uses a language model (gpt-oss-120borgpt-4.1-nanoChat Model1) for reasoning. - Long-term Memory Webhook: A dedicated sub-workflow (
Webhook2) that processes conversation history, extracts key information usingExtract Memory Info, and stores it in aMongoDB Atlas Vector Storefor 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 dedicatedAI AgentwithMongoDB Atlas Vector Store1for contextual image prompt generation,Clean Prompt Text1to refine the prompt, anHTTP Requestto 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.
- Qwant API: For structured search results.
- Together.xyz or similar Image Generation API: For creating images.
- Perplexity API (or self-hosted)
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
Content Repurposing Engine
8 hand-picked workflows for $29.00.
That is $3.63 each, vs $24.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related AI workflows
- Launch Your First AI-Powered Chatbot with Actionable Tools$9.99
- Automate AI Video Creation and YouTube Upload with Google Sheets$14.99
- Automate Blog Post Creation and Publishing with GPT, Leonardo AI, and WordPress$14.99
- Automate SEO Keyword Generation with ChatGPT from Google Sheets$3.99
- Email Agent$500.99
- Create a Conversational Telegram Bot with GPT-4 for Text and Voice Messages$9.99
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.