AI Chatbot Website

    by Mounika Chappidi

    1

    Adds a responsive AI chat widget to any website using an n8n webhook and OpenRouter backend.

    Free

    Security scanned

    Works with the AI Agents you already use

    AI Chatbot Website

    Example session with this skill installed

    Add an educational assistant chatbot named "EduBot" to my landing page in the current directory. Use #4F46E5 as the primary color.

    • Read your context and instructions
    • Compiled the ai chatbot website
    • Generated the UI component

    I have added the chatbot interface to your landing page and prepared the backend configuration.

    Chatbot Implementation

    <!-- Chat Widget Markup added to index.html -->
    <div id="chat-widget-container">
        <div id="chat-header" style="background-color: #4F46E5;">
            <span>EduBot</span>
        </div>
        <div id="chat-messages"></div>
        <div id="chat-input-area">
            <input type="text" id="user-input" placeholder="Ask a question...">
            <button id="send-btn" disabled>Send</button>
        </div>
    </div>
    
    <style>
    /* Responsive Chat Styles */
    #chat-widget-container { position: fixed; bottom: 20px; right: 20px; width: 350px; height: 500px; display: flex; flex-direction: column; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-family: sans-serif; }
    #chat-header { padding: 15px; color: white; border-radius: 10px 10px 0 0; font-weight: bold; }
    #chat-messages { flex: 1; overflow-y: auto; padding: 15px; background: #f9fafb; }
    .message { margin-bottom: 10px; padding: 8px 12px; border-radius: 15px; max-width: 80%; }
    .user-msg { align-self: flex-end; background: #4F46E5; color: white; margin-left: auto; }
    .bot-msg { align-self: flex-start; background: #e5e7eb; color: black; }
    </style>
    
    <script>
    // Chat Logic
    const webhookUrl = 'YOUR_N8N_WEBHOOK_URL';
    const input = document.getElementById('user-input');
    const btn = document.getElementById('send-btn');
    
    input.addEventListener('input', () => {
        btn.disabled = !input.value.trim();
    });
    
    async function sendMessage() {
        const text = input.value.trim();
        if (!text) return;
        appendMessage(text, 'user-msg');
        input.value = '';
        btn.disabled = true;
        
        // Typing indicator
        const loading = appendMessage('...', 'bot-msg');
        
        const response = await fetch(webhookUrl, {
            method: 'POST',
            body: JSON.stringify({ message: text, type: 'educational' }),
            headers: { 'Content-Type': 'application/json' }
        });
        const data = await response.json();
        loading.remove();
        appendMessage(data.output, 'bot-msg');
    }
    </script>
    

    Next steps

    1. Import n8n/chatbot-workflow.json into your n8n instance.
    2. Add your OpenRouter API key to the n8n credential manager and activate the workflow.
    3. Copy the production webhook URL from n8n and replace YOUR_N8N_WEBHOOK_URL in your index.html.

    index.html

    TSX · React component

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Adding an AI chat widget to a site often involves wrestling with complex third-party embeds or writing custom WebSocket logic. This skill implements a lightweight, single-file chat interface that connects directly to an n8n webhook.

    What it does

    • Responsive UI implementation: Adds a clean HTML/CSS chat interface that works on mobile and desktop.
    • Workflow integration: Connects the frontend to an n8n workflow for backend logic and LLM processing.
    • OpenRouter connectivity: Facilitates LLM calls via OpenRouter within the n8n environment.
    • Interactive features: Includes a typing animation, auto-scrolling, and input validation to disable the send button when empty.
    • Thematic styling: Configures the chatbot name and primary brand colors during setup.

    How it works

    1. Provide the location of your website files and specify your chatbot use case and color scheme.
    2. The skill injects the necessary markup, styles, and JavaScript into your project.
    3. Import the provided .json workflow into your n8n instance and add your OpenRouter credentials.
    4. Replace the placeholder URL in the JavaScript with your n8n production webhook address.

    Frameworks & tools

    This skill uses standard HTML5, CSS3, and vanilla JavaScript for the frontend. The backend requires an n8n instance and an OpenRouter account for LLM access.

    Why this beats prompting it yourself

    Writing reliable frontend-to-webhook logic requires specific event handling and state management for chat bubbles. This skill provides a tested, single-file implementation that avoids the common pitfalls of API key exposure by routing all logic through n8n.

    Use cases

    • Deploy an educational assistant for student support.
    • Build a career guidance bot for a professional portfolio.
    • Add an AI learning assistant to a documentation site.
    • Create a general-purpose Q&A widget for a landing page.

    Known limitations

    The chat interface is a single-file implementation. Complex features like persistent chat history or file uploads are not supported out of the box.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    • Free with an Agensi account

    Permissions

    Network Access
    Listed8 days ago

    What's inside

    Creator

    Mounika Chappidi

    Mounika Chappidi

    Frequently Asked Questions

    The purchase includes the HTML, CSS, and vanilla JavaScript code for the frontend widget, as well as a pre-configured .json workflow file to import directly into your n8n instance.

    While the frontend is built with standard web technologies, the backend logic specifically requires an n8n instance and an OpenRouter account to handle the LLM processing.

    Yes, because the skill uses a backend webhook through n8n, your OpenRouter API keys remain securely on your server rather than being exposed in the website's source code.

    Absolutely; the setup process allows you to customize the chatbot's name and primary brand colors to ensure the widget matches your website's aesthetic.

    This skill provides a lightweight, single-session interface; it does not include built-in database integration for persistent chat history across different browser sessions.

    Installation is straightforward: you inject the provided code into your site, import the workflow into n8n, and update one URL in the JavaScript to point to your webhook.

    New in Workflow Automation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.

    Free