Setup Webchat Interface
Embedding Webchat
Explains embedding the Stubber Webchat component on a website. Useful for adding floating, embedded, or manually placed chat interfaces.
Basic Implementation
Step 1: Add Script Tag
Include this script tag in the <head> of your HTML document to initialize the Stubber Webchat module:
Step 2: Add HTML Tag
Add the Webchat component where you want the chat window to appear:
Replace the profile_uuid with the UUID of your Webchat profile.
Note: To avoid overlay issues, place the Webchat tag within the
<body>tag.
Display Modes
Webchat offers several display modes to suit different website integration needs.
Default Mode
Adds a floating button in the bottom right corner that opens a chat window when clicked. The standard support or assistant widget for a site.
Inline Mode
Places the chat UI inside a custom location on your page. The webchat grows to fit any div it is placed in, making it ideal for in-page assistants, portals, and app layouts.
Manual Mode
Positions the chat window freely within your page layout. Rather than being fixed to the bottom right, the webchat grows to fit any div you place it in.
Advanced Configuration
Passing Custom Data
To pass custom data from the Webchat to your stub, add the pass_through_data attribute to the stubber-webchat tag:
This data is available in your stub at:
Using Stubref Instead of Profile UUID
If you've configured webchat via stub.data, you can use the stubref instead of a profile UUID: