Block 1 - Webhook
- Type / Role
- n8n-nodes-base.webhook - webhook
- Config choices
- Version 2.1
This workflow is provided as-is. Please review and test before using in production.
n8n Graphical Input Template AI Agent Interface A beautiful, ready to use HTML interface for n8n workflows that allows your users to interact with AI agents through a clean web UI. No frontend skil...
n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Hugo.
Original n8n.io sourceA beautiful, ready-to-use HTML interface for n8n workflows that allows your users to interact with AI agents through a clean web UI. No frontend skills required!
Perfect for:
Create a 3-node workflow to show the UI:
Webhook (GET) β Code Node β Respond to Webhook
Configuration:
Webhook Node (GET):
/your-interface (e.g., /ai-chat)Code Node:
main.jsRespond to Webhook:
dataCreate a separate workflow to handle AI processing:
Webhook (POST) β Switch β AI Agents β Code Node β Respond to Webhook
Configuration:
Webhook Node (POST):
/webhook-endpointSwitch Node - Route by agent type:
{{ $json.body.agent_type }} equals general{{ $json.body.agent_type }} equals database{{ $json.body.agent_type }} equals web{{ $json.body.agent_type }} equals ragAI Agent Nodes (4 nodes, one per agent type):
Code Node - Format the response:
const webhookData = $('Webhook').first().json.body;
const aiResponse = $input.first().json;
return [{
json: {
response: aiResponse.output || aiResponse.text || aiResponse.response,
agent_type: webhookData.agent_type,
user_message: webhookData.message,
timestamp: new Date().toISOString()
}
}];
Line 847 - Update webhook URL to match your n8n path:
const WEBHOOK_URL = '/webhook/webhook-endpoint';
Line 20 - Customize project name:
const projectName = "AI Assistant Hub";
Lines 34-56 - Change colors (optional):
:root {
--primary: #6366f1; /* Main accent color */
--primary-hover: #4f46e5; /* Hover state */
--background: #ffffff; /* Background */
}
User visits /your-interface
β
Sees the chat interface
β
Types message + clicks agent button
β
POST to /webhook/webhook-endpoint
{
"message": "Find users in database",
"agent_type": "database",
"timestamp": "2025-10-19T..."
}
β
Switch routes to Database AI Agent
β
AI Agent processes with tools/memory
β
Code Node formats response
β
Returns { "response": "Found 10 users..." }
β
Interface displays response with badge + animation
Copy an agent card (lines ~700-730) and modify:
<div>
<div>
<i></i>
</div>
<div>Custom AI Agent</div>
<div>
Specialized in your custom task.
</div>
</div>
Then add CSS for the new agent type:
.agent-card.custom-agent::before { background: #f59e0b; }
.agent-card.custom-agent:hover { border-color: #f59e0b; }
.agent-icon.custom-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.response-agent-badge.custom-badge {
background: rgba(245, 158, 11, 0.1);
color: #f59e0b;
}
And update the Switch node to handle the new agent type!
Lines ~705, ~717, ~729 - Update the description text for each agent.
response fieldmain.js matches your n8n webhook pathgeneral, database, web, ragThis template is designed to be simple and self-explanatory. The code structure:
Feel free to modify and adapt to your needs!
Free to use and modify for your n8n workflows. No attribution required.
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.
| Workflow | Beautiful web UI for GPT-4 multi-agent chat with specialized assistants |
|---|---|
| Complexity | advanced |
| Nodes | 24 |
| Categories | Support Chatbot, AI Chatbot |
| Author | Hugo |
| Published | 19 Oct 2025 |
Use the JSON export at /data/workflows/9901/9901.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
n8n Graphical Input Template AI Agent Interface A beautiful, ready to use HTML interface for n8n workflows that allows your users to interact with AI agents through a clean web UI. No frontend skil...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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.