Create an AI-Powered WhatsApp Chatbot without the Official API

Deploy an intelligent WhatsApp chatbot using the unofficial Venom Bot and Google Gemini to automate customer service without requiring the official Business API.

    image for Create an AI-Powered WhatsApp Chatbot without the Official API

    Workflow Overview

    What is this?

    What is this?

    This workflow allows you to build and deploy a fully functional, intelligent chatbot on WhatsApp using the unofficial Venom Bot library. It leverages Google Gemini to understand user messages, generate human-like responses, and can retrieve information from a connected Google Docs file that acts as your business's knowledge base.
    What problem does it solve?

    What problem does it solve?

    Are you looking to provide 24/7 automated support on WhatsApp but find the official Business API too costly or complex to set up? This workflow provides a powerful alternative, enabling small businesses and developers to launch a smart chatbot without lengthy approval processes or recurring fees.
    What will you get?

    What will you get?

    By implementing this workflow, you will provide instant, 24/7 customer support on WhatsApp, automate responses to frequently asked questions by using a knowledge base, and significantly reduce manual effort in customer communication, all without paying for the official API.

    Apps Included

    • Code
    • Sticky Note
    • If
    • HTTP Request
    • Webhook
    • Google Docs
    • ChatMasters
    • Databox
    • Google Gemini Chat Model
    • Mallabe Barcodes
    • Simple Memory
    • Respond to Webhook

    How to Use

    Prerequisites

    Setup Steps

    1

    Import the Workflow

    Begin by importing the provided JSON file into your n8n canvas. This will create all the necessary nodes and their connections.

    2

    Configure Credentials

    Navigate to the Credentials section in your n8n instance. Add your Google Gemini API key and connect your Google Docs account to allow the workflow to access these services.

    3

    Set Up the Webhook Trigger

    Copy the Test URL from the 'Webhook' node. You must configure your self-hosted Venom Bot to send all incoming WhatsApp messages to this specific URL.

    4

    Customize the AI Persona

    Open the 'AI Agent' node. Carefully edit the System Message to match your business's unique tone of voice, product details, and operational information.

    5

    Configure the Response Endpoint

    In the 'Send to WhatsApp' HTTP Request node, update the URL to your Venom Bot's message-sending endpoint. Ensure the Bearer Token in the headers matches your bot's API secret key.

    6

    Activate and Test

    Save and activate the workflow. Send a test message to your connected WhatsApp number to verify that the bot receives the message and sends back an intelligent reply.

    Pro Tips

    1
    This workflow includes a basic error-handling route. Consider expanding it to send notifications to a Slack channel or a monitoring service if a message fails to process.
    2
    For the best results, structure your Google Docs knowledge base with clear headings and concise paragraphs. The AI will use this structure to find the most relevant information to answer user questions.
    3
    The conversational memory is set per user phone number. You can adjust the 'Context Window Length' in the 'Simple Memory' node to control how many past messages the AI remembers.

    Information

    • Published date8/11/2025
    • Last updated8/11/2025

    Platform