Skip to content

About

Embeddable Chat widget for n8n - Deployed on Dokploy

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

19 Commits

Folders and files

Repository files navigation

πŸ’¬ Simple Chat Widget

Professional chat widget for n8n - Easy to integrate, fully customizable, production-ready.

Live Demo License: MIT Deployed on Dokploy


πŸš€ Quick Start

CDN (Recommended)

<link href="https://chat-widget.coderaai.com/widget.css" rel="stylesheet" />
<script src="https://chat-widget.coderaai.com/chat-widget-simple.js"></script>
<script>
    createChat({
        webhookUrl: 'YOUR_N8N_WEBHOOK_URL',
        botName: 'Ω…Ψ³Ψ§ΨΉΨ― Ψ°ΩƒΩŠ',
        botAvatar: 'πŸ€–',
        placeholder: 'Ψ§ΩƒΨͺΨ¨ Ψ±Ψ³Ψ§Ω„ΨͺΩƒ...',
        initialMessages: [
            'Ω…Ψ±Ψ­Ψ¨Ψ§Ω‹! πŸ‘‹',
            'ΩƒΩŠΩ ΩŠΩ…ΩƒΩ†Ω†ΩŠ Ω…Ψ³Ψ§ΨΉΨ―ΨͺΩƒΨŸ'
        ]
    });
</script>

That's it! The widget appears in the bottom-right corner. βœ…


πŸ“š Documentation


✨ Features

  • ⚑ Lightning Fast - Lightweight, no dependencies
  • 🎨 Fully Customizable - Colors, text, icons
  • πŸ”Œ n8n Integration - Works with n8n webhooks
  • πŸ“± Responsive - Mobile, tablet, desktop
  • 🌐 CDN Ready - Fast global delivery
  • πŸš€ Production Ready - Battle-tested

🎯 Configuration

Basic

createChat({
    webhookUrl: 'https://your-n8n.com/webhook/id',
    botName: 'Support Bot',
    botAvatar: 'πŸ€–',
    placeholder: 'Type your message...',
    initialMessages: [
        'Hello! πŸ‘‹',
        'How can I help you?'
    ]
});

All Options

Option Type Default Description
webhookUrl string required Your n8n webhook URL
botName string 'Smart Assistant' Bot name in header
botAvatar string 'πŸ€–' Bot icon (emoji)
userAvatar string 'πŸ‘€' User icon (emoji)
placeholder string 'Type your message...' Input placeholder
initialMessages array [] Opening messages

🎨 Customization

Colors

<style>
.chat-widget-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}
</style>

πŸ“ WordPress Integration

Using WPCode Plugin (Recommended)

  1. Install WPCode plugin
  2. Go to Code Snippets β†’ + Add Snippet
  3. Paste the CDN code above
  4. Settings:
    • Code Type: HTML Snippet
    • Location: Site Wide Footer
    • Status: Active
  5. Save!

πŸ› οΈ Development

Prerequisites

  • Bun (recommended) or Node.js 14+

Setup

# Clone
git clone https://github.com/yourusername/simple-chat-widget.git
cd simple-chat-widget

# Install
bun install

# Dev
bun run dev
# Opens http://localhost:4321

Commands

bun run dev              # Dev server
bun run build            # Build widget + docs
bun run deploy           # Deploy to Netlify

πŸ“ Project Structure

simple-chat-widget/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ chat-widget-simple.js    # Widget source
β”‚   └── widget.css                # Widget styles
β”œβ”€β”€ docs/                         # Astro documentation site
β”‚   └── src/
β”‚       β”œβ”€β”€ pages/
β”‚       β”œβ”€β”€ layouts/
β”‚       └── components/
β”œβ”€β”€ dist/                         # Build output (CDN files)
β”œβ”€β”€ examples/                     # Usage examples
└── wordpress/                    # WordPress plugin

🌐 CDN Files

  • Widget JS: https://chat-widget.coderaai.com/chat-widget-simple.js
  • Widget CSS: https://chat-widget.coderaai.com/widget.css
  • Demo Page: https://chat-widget.coderaai.com/

πŸš€ Deployment

This project is deployed on Dokploy with Docker + Nginx.

Deploy to Dokploy

See docs-deployment/DOKPLOY_DEPLOYMENT.md for complete instructions.

Quick Deploy:

  1. Fork this repository
  2. Connect to Dokploy
  3. Set build type to Dockerfile
  4. Deploy!

Deploy to Other Platforms


πŸ“„ License

MIT License - see LICENSE


🀝 Contributing

Contributions welcome! Please open an issue or PR.


πŸ“§ Support


Made with ❀️ | Compatible with n8n β€’ CDN Ready β€’ Production Ready

About

Embeddable Chat widget for n8n - Deployed on Dokploy

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages