Skip to main content

Deploy a Google Gemini AI assistant on WhatsApp with email & calendar tools

Workflow preview

Workflow preview
100%
Deploy a Google Gemini AI assistant on WhatsApp with email & calendar tools preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Deploy a Multi Tool AI Assistant on WhatsApp with Google Gemini Deploy a true AI assistant on WhatsApp. This n8n workflow uses a sophisticated hierarchical agent structure to not only handle conver...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.whatsapptrigger, n8n-nodes-base.whatsapp, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agenttool, n8n-nodes-base.gmailtool, n8n-nodes-base.googlecalendartool

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Deploy a Google Gemini AI assistant on WhatsApp with email & calendar tools
Workflow name
Deploy a Google Gemini AI assistant on WhatsApp with email & calendar tools

Deploy a Multi-Tool AI Assistant on WhatsApp with Google Gemini

Deploy a true AI assistant on WhatsApp. This n8n workflow uses a sophisticated hierarchical agent structure to not only handle conversations but also manage your emails and calendar directly from your chat, all powered by Google Gemini.


Key Features

  • Powered by Google Gemini: Utilizes the advanced capabilities of Google's Gemini models for understanding complex commands and generating natural, human-like responses.
  • Intelligent Task Delegation (Hierarchical Agents): Features a central Personal Agent that understands the user's intent and intelligently delegates tasks to specialized sub-agents for email, calendar, or general chat.
  • Full Email & Calendar Management: Connects directly to your Google Workspace to send emails, create drafts, apply labels, create/update/delete calendar events, check your availability, and more.
  • Context-Aware Conversations: Employs memory at multiple levels, allowing the assistant to remember the context of your requests for a coherent and intuitive user experience.
  • Seamless WhatsApp Integration: Connects directly with the WhatsApp Business API to send and receive messages, engaging users on one of the world's most popular messaging platforms.
  • Easy to Deploy & Customize: Get your assistant running with minimal configuration and easily extend its capabilities by adding new tools or modifying the prompts of the existing agents.

How It Works

The workflow uses an advanced agent-based model to process incoming messages:

  1. The Whatsapp Trigger node listens for and receives new messages sent to your WhatsApp Business number.
  2. The message is passed to the main Manager Agent.
  3. The Personal Agent analyzes the message to understand the user's intent (e.g., "send an email," "check my schedule," or just "hello").
  4. Based on the intent, it routes the task to the appropriate sub-agent: the Email Tool, the Calendar Tool, or the general Chatbot Model.
  5. The selected sub-agent executes the task using its own dedicated tools (e.g., the Email Tool uses Gmail nodes to send a message).
  6. The result or response from the sub-agent is passed back to the Send message (WhatsApp) node, which delivers the reply to the user.

Prerequisites

  • An active n8n instance.
  • A Meta Business Account and a configured Meta App with the "WhatsApp Business" product added.
  • A Google Gemini API Key.
  • A Google Account with pre-configured OAuth2 credentials in n8n for Gmail and Google Calendar.

Step-by-Step Setup Guide

1. Configure WhatsApp Credentials:
  • In your n8n instance, add new "WhatsApp Business" credentials.
  • You will need a Permanent Access Token and a Phone Number ID from your Meta App's "WhatsApp > API Setup" dashboard.
2. Set Up the WhatsApp Trigger:
  • Open the Whatsapp Trigger node. In the "Webhook URL" section, copy the Test URL.
  • Go to your Meta App's dashboard under "WhatsApp > Configuration".
  • Click "Edit" in the Webhooks section.
  • Paste the n8n Test URL into the Callback URL field.
  • Create and enter a Verify token (a simple password of your choice). Enter this same token in the Whatsapp Trigger node in n8n.
  • Subscribe to the messages webhook event.
  • Once verified, copy the Production URL from n8n and paste it into the same Callback URL field in the Meta dashboard.
3. Configure the Google Gemini Nodes:
  • You must add your Google Gemini API Key to the credentials for all the Google Gemini Chat Model nodes. This includes the one in the Chatbot Model, Email Tool, and Calendar Tool.
4. Configure the Google Tools (Email & Calendar):
  • Email Tool: Open the group of nodes labeled Email Tool. For every Gmail node (Send Email, Create Draft, Get Labels, etc.), select your pre-configured Google OAuth2 credential.
  • Calendar Tool: Open the group of nodes labeled Calendar Tool. For every Google Calendar node (Create Event, Get all event, etc.), select your pre-configured Google OAuth2 credential.
5. Activate and Test:
  • Save and activate the workflow.
  • Send a message to your configured WhatsApp Business number.

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 - Google Gemini Chat Model

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

Block 2 - Simple Memory

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

Block 3 - WhatsApp Trigger

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

Block 4 - Send message

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

Block 5 - Sticky Note

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

Block 6 - Sticky Note1

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

Block 7 - Sticky Note2

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

Block 8 - Sticky Note3

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

Block 9 - email_agent

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

Block 10 - Send Email

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

Block 11 - Create Draft

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

Block 12 - Email Reply

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

Block 13 - Get Labels

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

Block 14 - Label Emails

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

Block 15 - Mark Unread

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

Block 16 - Gmail

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

Block 17 - Window Buffer Memory2

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

Block 18 - Google Gemini Chat Model4

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

Block 19 - calendar_agent

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

Block 20 - Get all event

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

Block 21 - Delete event

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

Block 22 - Get a single event

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

Block 23 - Update event

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

Block 24 - Availablity operation agent

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

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

3. Summary Table

Workflow Deploy a Google Gemini AI assistant on WhatsApp with email & calendar tools
Complexity advanced
Nodes 30
Categories Support Chatbot, AI Chatbot
Author Anshul Chauhan
Published 22 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8826/8826.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 Deploy a Google Gemini AI assistant on WhatsApp with email & calendar tools do?

Deploy a Multi Tool AI Assistant on WhatsApp with Google Gemini Deploy a true AI assistant on WhatsApp. This n8n workflow uses a sophisticated hierarchical agent structure to not only handle conver...

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