Skip to main content

Build an AI agent for WhatsApp with WOZTELL and Google Gemini

Workflow preview

Workflow preview
100%
Build an AI agent for WhatsApp with WOZTELL and Google Gemini preview
Open on n8n.io

1. Workflow Overview

What this template does This workflow automatically replies to incoming WhatsApp messages using AI. When a customer sends a text message, the workflow retrieves the recent conversation history, g...

Best for

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

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.filter, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.stickynote, @woztell-sanuker/n8n-nodes-woztell-sanuker.woztell

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Build an AI agent for WhatsApp with WOZTELL and Google Gemini
Workflow name
Build an AI agent for WhatsApp with WOZTELL and Google Gemini

✨ What this template does

This workflow automatically replies to incoming WhatsApp messages using AI.

When a customer sends a text message, the workflow retrieves the recent conversation history, generates a professional AI reply based on context, and sends it back through WOZTELL.

Use this to provide instant automated responses without live agents.

👷 Who it’s for

Ideal for businesses that receive frequent WhatsApp inquiries and want automated, context aware replies without manual handling. Suitable for teams looking to reduce response workload using AI.

⚙️ How it works

  1. Receives an incoming WhatsApp message via webhook.
  2. Checks that the message is a text message and not handled by live chat.
  3. Retrieves the recent conversation history.
  4. Formats the conversation for AI analysis.
  5. Generates a professional reply using Google Gemini.
  6. Sends the reply back to the customer.

🧭 How to use

  1. Import the template into your n8n workspace.
  2. Copy the webhook Production URL into your WOZTELL inbound webhook settings.
  3. Connect your WOZTELL credentials.
  4. Connect your Google Gemini API credentials.
  5. Activate the workflow.

🧩 Requirements

  • n8n account
  • WOZTELL account with WhatsApp channel configured
  • Google Gemini API key

🧠 Customization ideas

  • Modify the AI system prompt to match your brand tone and response style
  • Add additional IF nodes for routing logic, keyword detection, or data validation
  • Replace the AI provider with another supported model instead of Google Gemini
  • Customize the WOZTELL message format, tone rules, or response structure

🤖About WOZTELL

This template uses WOZTELL to connect n8n with the official WhatsApp Business Platform, allowing you to send and receive WhatsApp messages through approved templates and automation workflows.

You can create a WOZTELL account and register a WhatsApp Business API account for free.

  1. Sign up here
  2. Verify your email and complete your account setup.
  3. Follow the WhatsApp Business API setup guide

Once your WhatsApp Business account is connected and message templates are approved, you can activate this workflow.

🚀 More templates

We’re continuously building more WOZTELL n8n templates. Check our n8n profile to explore the latest workflows.

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 - Webhook

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

Block 2 - Filter

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.3

Block 3 - Edit Fields

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

Block 4 - AI Agent

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

Block 5 - Google Gemini Chat Model

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

Block 6 - Sticky Note4

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

Block 7 - Sticky Note1

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

Block 8 - Sticky Note2

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

Block 9 - Sticky Note3

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

Block 10 - Sticky Note5

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

Block 11 - Sticky Note6

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

Block 12 - Sticky Note7

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

Block 13 - Sticky Note8

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

Block 14 - Send responses

Type / Role
@woztell-sanuker/n8n-nodes-woztell-sanuker.woztell - woztell
Config choices
Version 1

Block 15 - Get conversation history by id1

Type / Role
@woztell-sanuker/n8n-nodes-woztell-sanuker.woztell - woztell
Config choices
Version 1

3. Summary Table

Workflow Build an AI agent for WhatsApp with WOZTELL and Google Gemini
Complexity advanced
Nodes 15
Categories Support Chatbot, AI Chatbot
Author Kris newey
Published 24 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13641/13641.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 an AI agent for WhatsApp with WOZTELL and Google Gemini do?

What this template does This workflow automatically replies to incoming WhatsApp messages using AI. When a customer sends a text message, the workflow retrieves the recent conversation history, g...

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.