Custom domain

Serve your DGbot widget and chat interface from your own domain for a fully white-labelled experience.

~15 minutes Starter

Overview

By default, the DGbot widget loads from dgbot.dgtech.co.in. On the Starter plan and above, you can configure a custom subdomain so the widget loads from chat.yourdomain.com or support.yourdomain.com.

This is useful when:

  • Your website has a strict Content Security Policy that must allowlist script sources
  • You want a fully white-labelled experience with no mention of DGbot in the browser network tab
  • You're embedding the full-page chat via iframe and want the iframe source to be your own domain
What 'custom domain' covers
Custom domain covers the script and API origin — not the admin panel URL. The admin panel always runs on dgbot.dgtech.co.in/admin/.

Steps

1
Choose a subdomain

Pick a subdomain you control. Common choices: chat.yourdomain.com, support.yourdomain.com, help.yourdomain.com.

2
Open Domain settings in the admin panel

Go to Deploy → Custom domain.

Open Custom domain settings
deploy/custom-domain-settings Screenshot needed — save as: _assets/images/deploy/custom-domain-settings.png

Custom domain settings. Enter your subdomain and follow the DNS instructions.

3
Add a CNAME record in your DNS

In your domain registrar or DNS provider, add a CNAME record:

NameTypeValue
chat (or your chosen subdomain prefix)CNAMEdgbot.dgtech.co.in

DNS changes can take up to 24 hours to propagate, though most providers update within minutes.

4
Enter the subdomain in the admin and verify

Type your full subdomain (chat.yourdomain.com) in the Custom domain field and click Verify DNS. DGbot checks your DNS record and issues an SSL certificate automatically.

deploy/custom-domain-verified Screenshot needed — save as: _assets/images/deploy/custom-domain-verified.png

A green Verified badge appears when DNS is confirmed and SSL is active.

5
Update your embed snippet

Once verified, copy the updated embed snippet from the page. It now uses your custom domain:

html
<script
  src="https://chat.yourdomain.com/widget.js"
  data-chatbot-id="YOUR_CHATBOT_ID"
  defer
></script>

Replace your existing snippet on your website.


Verify

Visit your website and open the browser network tab. The widget script should load from chat.yourdomain.com, not from dgbot.dgtech.co.in.