Domain Availability Chatbot using Gemini and WHMCS API - n8n Workflow

Build a powerful AI-powered domain availability checker using this n8n workflow. Integrates Google Gemini, LangChain, and WHMCS API. This n8n template ensures verified availability results and provides conversational support.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • E-commerce businesses selling domains or hosting services.

  • Developers seeking advanced n8n templates for AI tooling.

  • System administrators needing to automate WHMCS functions via a conversational interface.

  • Users looking to deploy a low-code, context-aware n8n workflow for customer support.

Overview

This comprehensive n8n workflow transforms a standard API check into an interactive customer service experience. It leverages the power of the Google Gemini Chat Model, orchestrated by the AI Agent n8n node, to handle natural language domain queries. The critical advantage of this n8n template is its strict adherence to verification: the AI strictly uses the custom DomainAvailabilityChecker tool (which calls the WHMCS API) to confirm availability before replying. This ensures high accuracy and eliminates speculative answers, providing a reliable and professional support solution directly integrated through a simple n8n trigger (the webhook). This advanced n8n workflow minimizes manual lookup time and enhances customer satisfaction.

How it Works

This automation functions as a robust AI chat service:


  1. Trigger: The process begins with the Webhook n8n trigger, which receives a POST request containing the user's chatInput and a unique sessionId to identify the conversation.

  2. Memory Retrieval: The Simple Memory n8n node instantly retrieves the conversation history based on the sessionId, ensuring the AI maintains conversational context throughout the session.

  3. AI Orchestration: The core AI Agent n8n node takes the user input, combines it with the system message (which mandates verified checking), and passes it to the connected Google Gemini Chat Model for reasoning.

  4. Tool Check: If the user query requires a domain check (e.g., "Is example.com available?"), the AI Agent calls the custom DomainAvailabilityChecker n8n node tool.

  5. WHMCS Integration: This tool executes an HTTP POST request to the configured WHMCS API endpoint, dynamically inserting the domain name extracted by the AI into the payload, along with necessary WHMCS credentials.

  6. Response Generation: Based on the precise API response (available or taken), the AI Agent generates a professional, friendly, and verified response. If the domain is unavailable, the system prompt ensures the AI suggests alternative domains only if they have also been individually checked and confirmed as available by the n8n workflow.

  7. Output: The final AI response is returned to the client application via the Respond to Webhook1 n8n node.

Installation Guide

To deploy this powerful n8n workflow, follow these setup steps:


  1. Import the n8n Workflow: Copy the provided JSON data and import it into your n8n instance using the 'New' -> 'Import from JSON' option.

  2. Set Up Gemini Credentials: Open the Google Gemini Chat Model n8n node and set up your Google PaLM API credential, which powers the AI reasoning.

  3. Configure WHMCS API Tool: Open the DomainAvailabilityChecker n8n node. This is crucial for the n8n workflow to function correctly:

Replace the placeholder URL https://yourwhmcsurl.com/includes/api.php with your actual WHMCS API endpoint.
In the Body Parameters section, update the values for:
identifier: Replace YourWHMCSIdentifier with your WHMCS API identifier.
secret: Replace YourWHMCSSecret with your WHMCS API secret.

  1. Activate: Save the n8n workflow and activate it. The Webhook n8n trigger is now ready to receive chat input.

Node Details

Webhook (n8n trigger):
Function: Acts as the starting n8n trigger, listening for POST requests containing the user's chat message (chatInput) and the session identifier (sessionId).
Key Configuration: Set to HTTP Method POST and Response Mode 'Response Node'.
*AI Agent (n8n node):
Function: Orchestrates the conversational flow, manages memory, uses the Language Model, and decides when to call the domain checker tool based on user intent. This central n8n node defines the chatbot's personality and strict verification rules.
Key Configuration: Contains a detailed system prompt (acting as 'Erik' the assistant) emphasizing strict domain availability verification via the tool.
*Simple Memory (n8n node):
Function: Stores and retrieves the history of the conversation (memory buffer window) using the sessionId passed from the webhook n8n trigger, enabling multi-turn dialogue.
Key Configuration: Session Key is dynamically set to {{ $('Webhook').item.json.body.sessionId }}.
*Google Gemini Chat Model (n8n node):
Function: Provides the large language model capabilities (reasoning, language generation) utilized by the AI Agent n8n node.
Key Configuration: Requires a valid Google PaLM API credential.
*DomainAvailabilityChecker (n8n node - HTTP Request Tool):
Function: This is the critical external tool used by the AI Agent to perform verified availability checks by calling the WHMCS API using the DomainWhois action.
Key Configuration: Configured for POST to WHMCS API, requiring WHMCS identifier and secret, and dynamically receiving the domain name from the AI Agent's output.
*Respond to Webhook1 (n8n node):
Function: Sends the final generated AI text response back to the client that initiated the n8n workflow via the Webhook n8n trigger.
* Key Configuration: Sets CORS and content headers for smooth front-end integration.

Related n8n Workflows

Free

Nodes: 7 Nodes
Updated: December 26 2025
View all

Featured*