使用 WHMCS 的域名可用性检查 - 模板
中级
这是一个AI Chatbot, Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 Webhook, Agent, HttpRequestTool, RespondToWebhook, LmChatGoogleGemini 等节点。 使用 Google Gemini 和 WHMCS 的域名可用性检查聊天机器人
前置要求
- •HTTP Webhook 端点(n8n 会自动生成)
- •可能需要目标 API 的认证凭证
- •Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "ZBWtmHUruuIlVsQ7",
"meta": {
"instanceId": "50631c03cbd88440965b74e5a58aada5437cbc43e90372b516e36154908ad374",
"templateCredsSetupCompleted": true
},
"name": "使用 WHMCS 的域名可用性检查 - 模板",
"tags": [],
"nodes": [
{
"id": "bbef1f29-94cc-4058-a634-deb14305a2f0",
"name": "AI 代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-480,
-144
],
"parameters": {
"text": "={{ $json.body.chatInput }}",
"options": {
"systemMessage": "=\nYou are an **AI-powered customer support assistant** for a domain-selling website. \nYour role is to provide **accurate, helpful, and friendly answers** to customer queries regarding domain name availability, **strictly based on verified checks**.\n\n---\n\n## Core Responsibilities\n1. Respond concisely but with enough detail to fully answer the customer’s question. \n2. Maintain a professional, approachable, and customer-focused tone. \n3. **Never mention, suggest, or confirm a domain name unless it has been verified first.** \n\n---\n\n## Knowledge Sources & Tools\n- **Domain_Availability_Checker** → Used to verify domain name availability. \n\n---\n\n## Chat Data Storage Rules\n- Each chat session is identified by a unique **Session ID**. \n- Keep track of all **verified domain checks** during the session. \n- Only suggest domains that are confirmed as available. \n\n---\n\n## Strict Guidelines\n- **Always verify domain availability before mentioning it.** \n- **Never assume availability.** \n- **Do not suggest multiple alternatives unless each one has been individually checked and confirmed available.** \n- Keep memory of all verified checks during the session and only recommend those domains. \n- Do not suggest or reference tools by name in your replies. \n- Add a slight delay in responses to mimic human typing. \n- If a customer mentions a domain: \n - First, check availability. \n - If available → confirm positively. \n - If unavailable → respond with a positive tone (never apologetic) and suggest one or more **verified alternatives**. \n- **No speculative answers. No placeholders. No unverified domains.** \n\n---\n\n## Example Interactions\n\n### 1. Domain Name Inquiry (Available Domain) \n**User**: \"Can you check the availability for example.com?\" \n**Erik**: \"Let me first check the availability of <b>example.com</b> for you... \nGreat news! example.com is available.\"\n\n---\n\n### 2. Domain Name Inquiry (Unavailable Domain – Positive Tone, Verified Alternatives) \n**User**: \"I want to buy myshop.com\" \n**Erik**: \"I’ve checked for you — myshop.com is already taken. \nBut no worries! I also checked a few great options: myshop.net and myshop.online — both are available right now.\" \n\n---\n\n## Reminder\n- Always be accurate, friendly, and efficient. \n- Your primary goal is to help the user make quick, informed decisions. \n- **Today is {{ $now }}.** \n"
},
"promptType": "define"
},
"typeVersion": 2.1
},
{
"id": "3957adba-a083-4d80-812e-87c8ab2b66cb",
"name": "Google Gemini 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-576,
80
],
"parameters": {
"options": {}
},
"credentials": {
"googlePalmApi": {
"id": "fCwOeE5T0V3qZKVd",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "c00a80f2-e5e1-4e29-b740-3be832012f46",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-384,
80
],
"parameters": {
"sessionKey": "={{ $('Webhook').item.json.body.sessionId }}",
"sessionIdType": "customKey",
"contextWindowLength": 15
},
"typeVersion": 1.3
},
{
"id": "7a7d940b-7bad-45e0-acfb-786ec82c9aa6",
"name": "域名_可用性_检查器",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-192,
80
],
"parameters": {
"url": "https://your_whmcs_url.com/includes/api.php",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "form-urlencoded",
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "identifier",
"value": "Your_WHMCS_Identifier"
},
{
"name": "secret",
"value": "Your_WHMCS_Secret"
},
{
"name": "action",
"value": "DomainWhois"
},
{
"name": "domain",
"value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters3_Value', ``, 'string') }}"
}
]
},
"toolDescription": "Makes an HTTP request to check the Domain Avaialbility",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "c24c3355-4474-48fd-ad63-2b89a49a5158",
"name": "Respond to Webhook1",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
-128,
-144
],
"parameters": {
"options": {
"responseHeaders": {
"entries": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Access-Control-Allow-Origin",
"value": "*"
},
{
"name": "Access-Control-Allow-Headers",
"value": "Content-Type, x-api-key"
},
{
"name": "Access-Control-Allow-Methods",
"value": "POST, OPTIONS"
}
]
}
}
},
"typeVersion": 1
},
{
"id": "bf936b20-54fd-42ef-adcd-6c004cea873d",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
-656,
-144
],
"webhookId": "8a56ad98-d800-4296-9a12-e6472b5d46dd",
"parameters": {
"path": "8a56ad98-d800-4296-9a12-e6472b5d46dd",
"options": {},
"httpMethod": "POST",
"responseMode": "responseNode"
},
"typeVersion": 2
},
{
"id": "cc19df99-1ede-4cef-a250-6b998bbb099d",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1200,
-160
],
"parameters": {
"width": 512,
"content": "## 域名可用性检查工作流"
},
"typeVersion": 1
},
{
"id": "365c63eb-9acd-49d3-8644-e925be8385ec",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1200,
16
],
"parameters": {
"color": 5,
"width": 512,
"content": "### **配置 WHMCS API**"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"timezone": "Asia/Karachi",
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1"
},
"versionId": "853d5120-3888-42aa-9206-d749f7d5a780",
"connections": {
"Webhook": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Respond to Webhook1",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Domain_Availability_Checker": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - AI 聊天机器人, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
我的工作流 7
基于Google Gemini与WHMCS的虚拟主机AI客服聊天解决方案
Webhook
Agent
Http Request Tool
+5
15 节点Muhammad Omer Fayyaz
AI RAG 检索增强
基于Google Gemini、Notion和Telegram的统一业务编排器(CEO专用)
基于Google Gemini、Notion和Telegram的统一业务编排器(CEO专用)
Set
Notion
Switch
+18
93 节点YungCEO
AI 聊天机器人
AI 驱动的聊天机器人,用于自动创建 WHMCS 支持工单
使用 Gemini AI 聊天机器人自动化 WHMCS 支持工单创建
Agent
Http Request Tool
Chat Trigger
+2
6 节点Muhammad Omer Fayyaz
AI 聊天机器人
使用FatSecret API根据食材生成AI食谱
基于Gemini AI和FatSecret API的WhatsApp食材食谱建议
Whats App
Agent
Http Request Tool
+3
6 节点Muhammad Omer Fayyaz
AI 聊天机器人
聊天机器人Webhook
基于AI的Gmail和日历助手,集成Gemini聊天界面
Set
Webhook
Gmail Tool
+7
19 节点Praneel S
杂项
构建带记忆、Google套件和多AI研究成像的WhatsApp助手
构建带记忆、Google套件和多AI研究成像的WhatsApp助手
If
Set
Code
+27
71 节点Iniyavan JC
AI 聊天机器人