We use cookies to enhance your experience

We use essential cookies for site functionality and optional cookies like Google Analytics to understand how you use our site. You can customize your preferences at any time. Learn more

Core Concepts

Understanding the fundamental concepts behind ChatWidgetPro will help you create better chat experiences for your users.

Widget Types

ChatWidgetPro supports three widget types, each designed for different use cases. Choose the one that best fits your application's needs.

Floating Widget

A chat bubble anchored to the corner of your page. Clicking opens a chat window.

Best For:

  • Corporate websites
  • E-commerce stores
  • SaaS applications
  • Marketing pages
Preview
Need help?

Inline Widget

Embedded directly into your page content. Always visible without needing a click.

Best For:

  • Help centers
  • Product demos
  • Interactive tutorials
  • Contact pages
Preview
Chat Support

Fullscreen Widget

Takes up the entire viewport for an immersive, focused chat experience.

Best For:

  • Chat applications
  • Kiosk interfaces
  • Mobile-first experiences
  • AI assistants
Preview

Integration Modes

ChatWidgetPro offers two integration modes that determine how your widget communicates with your backend. Each has its own advantages.

Direct Mode

Browser communicates directly with your webhook. Simple setup, zero latency overhead.

Simple setup
No proxy overhead
Free tier compatible

Managed Mode

Requests proxied through our secure servers. Webhook URL stays private.

URL protection
Rate limiting
Enhanced analytics

Direct Mode

Free Tier

Widget communicates directly with your webhook from the browser. Simple and fast.

Zero latency overhead
Simple one-step setup
Works with any public webhook

Note

Webhook URL is visible in browser network requests.

Managed Mode

Pro Plan

Requests proxy through our secure servers. Webhook URL stays completely private.

URL protection & security
Built-in rate limiting
Enhanced analytics & logging

Recommended

Best for production deployments and sensitive integrations.

Key Terminology

Familiarize yourself with these terms to better understand the documentation.

Widget

The complete chat interface including bubble, tooltip, chat window, and all interactive elements.

Bubble

The circular button users click to open the chat window (in floating widget mode).

Tooltip

A small message that appears near the bubble to encourage users to start chatting.

Header

The top section of the chat window displaying branding, status, and controls.

Footer

The bottom section displaying powered-by branding and optional links.

Session

A unique conversation instance. Sessions track individual user interactions for analytics.

Webhook URL

The endpoint that receives user messages and returns bot responses. Can be an n8n workflow or custom API.

Embed Code

The JavaScript snippet you add to your website to display the widget.

Widget Lifecycle

Understanding the widget lifecycle helps you design better user experiences and troubleshoot issues more effectively.

Widget Lifecycle

Widget Loads
Init & render
Session Starts
User interaction
Message Sent
To webhook
Response
Display to user
1

Widget Loads

The embed code loads the widget configuration and initializes the UI components.

2

Session Starts

When the user first interacts, a unique session ID is generated and stored.

3

User Sends Message

Message is sent to the webhook URL along with session context and metadata.

4

Response Received

Bot response is displayed in the chat window with typing animation effects.

5

Analytics Tracked

Session data and engagement metrics are recorded for reporting.

Session Persistence

Sessions are stored in the browser's localStorage by default. This allows conversations to persist even if the user refreshes the page or returns later.

Architecture Overview

Here's how the different parts of ChatWidgetPro connect together.

System Architecture

Your Website
Embed Code
ChatWidgetPro
n8n / Webhook
Your Backend

Data Flow Summary

  1. 1User visits your website with the embedded widget code
  2. 2Widget loads your configuration from ChatWidgetPro
  3. 3User messages are sent to your webhook (n8n or custom API)
  4. 4Your backend processes the message and returns a response
  5. 5Response is displayed in the widget with optional streaming
Hi and welcome! How can ChatWidgetPro help you ?