Who can use this?
- Gallabox users with channel management permissions.
- Roles: Owners and Admins
- Plans: Available on all Gallabox plans.
Plan Availability
Available on all Gallabox plans.What is Web Chat?
Web Chat is a chat widget you embed on your website. Visitors can message your business directly from the website, and you can review those conversations in the Web Agent’s chat logs. They appear in the shared Inbox only after a WhatsApp handoff. Unlike WhatsApp and Instagram (which are Meta platforms), Web Chat is fully controlled by Gallabox — meaning:- No 24-hour window restriction — there’s no time-based gating on when you can reply to a visitor (unlike WhatsApp/Instagram)
- No Meta Business verification needed — just add the code and it’s live
- Built-in visitor presence — see which visitors are currently online with the widget loaded
- Auto-open greeting — the widget can auto-open after a set time (using the Trigger Widget Timer), but the visitor must still initiate the conversation — Gallabox cannot proactively send outbound messages to visitors
Prerequisites
Before starting, make sure you have:- Admin access to your website — you’ll need to add a JavaScript snippet to your site’s HTML.
- A Gallabox account with Web Chat available on your plan.
- A web developer or CMS access — if you’re using a CMS like WordPress, Shopify, or Webflow, you may need to use their specific widget/embed code injection method.
Web Chat is available on all plans, including the free trial. You can set it up before connecting WhatsApp or Instagram.
How to Set Up
1
Create a Web Chat widget in Gallabox
- Go to AI Agents and Bots in the left navigation of Gallabox.
- Click Create New → Chat AI Agent and select Web as the channel, then open Settings → Web Widget Settings.
- Fill in the widget details:
- Click Save.
2
Copy the embed code
- In AI Agents and Bots → [Your Agent] → Settings → Web Widget Settings, find the widget you just created.
- Click Embed Script to open the embed code modal.
- Copy the JavaScript snippet shown there — it comes pre-filled with your widget token and SDK URL, so always copy it from the modal rather than hand-editing a template.
3
Add the code to your website
Paste the embed snippet into your website’s HTML — right before the closing
</body> tag on every page where you want the widget to appear.For specific pages only: If you only want the widget on certain pages (e.g., your pricing page or support page), add the code only to those page templates.Pro tip: Test on a single page first — your homepage or a test/staging environment — before deploying site-wide. This lets you catch any issues before they affect all visitors.
Content Security Policy (CSP) — If Your Site Has Strict CSP
If your website has a Content Security Policy (CSP) header configured, the Gallabox widget may be blocked. You’ll need to add Gallabox’s domain to your CSP allowlist. Add these directives to your CSP header:Common Website Platforms
- WordPress
- Shopify
- Webflow
- Wix
- Squarespace
Go to Appearance → Theme Editor → footer.php and paste the code before
</body>. Or use a plugin like WPCode to inject the snippet without editing theme files.Testing Your Setup
- Visit the page where you added the embed code.
- Look for the chat widget icon (usually bottom-right corner).
- Click it to open the chat window.
- Send a test message. It should appear under AI Agents and Bots → [Your Web Agent] → View Chat Logs.
- If using a Chat AI Agent, the agent should respond automatically.
- Check the browser console for errors (F12 → Console).
- Verify the embed code was copied completely (no truncation).
- Confirm the Website URL in Gallabox matches the URL where the widget is installed (including
https://).
Multiple Widgets
You can create multiple Web Chat widgets — one per website or per section of your site. Each widget has its own:- Embed code
- Chat history
Example
Scenario: You run a SaaS company with three websites — a main marketing site (acme.com), a help center (help.acme.com), and a pricing page (acme.com/pricing). You want the chat widget on all three, but with different configurations:
- Main site: your branding colors and a sales-focused greeting
- Help center: a “Browse our docs first” ice-breaker
- Pricing page: Chat with a “Talk to Sales” CTA and aggressive handoff to WhatsApp
- Create 3 separate widgets in Gallabox — one for each site/section.
- For the main site: configure branding and set the greeting message.
- For the help center: enable ice-breakers with FAQ questions.
- For the pricing page: enable WhatsApp handoff and add a CTA button linking to your booking link.
- Copy each widget’s unique embed code and add it to the respective website section.
- Each widget’s conversations appear in your Gallabox inbox.
FAQs
The widget is not showing on my website — how do I debug?
The widget is not showing on my website — how do I debug?
- Open your browser’s developer console (F12 → Console tab).
- Look for any
Refused to load scripterrors — if you seecdn.gallabox.comblocked, your site has a CSP that needs to allowlist Gallabox. - Check the Network tab for failed requests to
cdn.gallabox.com— if they’re red, the request is being blocked. - Verify the embed code is complete — try copying it from Gallabox again and re-pasting.
- Make sure the Website URL in Gallabox exactly matches the page URL (including
https://and no trailing slash mismatch). - Clear your browser cache and try an incognito/private window.
Can I add the widget to only specific pages on my site?
Can I add the widget to only specific pages on my site?
Yes. Add the embed code only to the page templates or specific pages where you want it. Don’t add it to your global footer if you only want it on certain pages. Each CMS has a different way to add page-specific code — check your CMS documentation or ask your developer.
Do I need HTTPS for the widget to work?
Do I need HTTPS for the widget to work?
Yes. Your website must be served over HTTPS for the Gallabox widget to load. If your site is on HTTP (no SSL), the widget will be blocked by the browser. Get a free SSL certificate from your hosting provider (Let’s Encrypt is the standard option).
Can visitors chat without giving their name or email?
Can visitors chat without giving their name or email?
Yes — enable Allow Anonymous Chat in the widget settings. Visitors can chat without entering any contact information. However, you’ll only see their messages, not their name or email, until they provide it voluntarily.
Can I customize the widget's appearance beyond colors and logo?
Can I customize the widget's appearance beyond colors and logo?
Yes — go to AI Agents and Bots → [Your Agent] → Settings → Web Widget Settings to change fonts, button styles, chat bubble appearance, and more. For advanced customisation (CSS overrides, custom launcher button), contact Gallabox support.
Related Articles
- Web Chat Widget Customisation — Colors, fonts, branding options
- Web Chat Ice-breakers and CTAs — Pre-set questions and call-to-action buttons
- Web Chat Visitor Tracking — How visitor data is captured and used
- Omnichannel Inbox — Continue a Web Chat conversation through WhatsApp handoff