Webchat Widget
The Webchat Widget in Settings › Channels › Channels (/settings/channels on the Webchat tab, opening widget details at /settings/channels/webchat/[id]) lets you build a live chat launcher for your website or mobile app complete with a real-time Live Preview and nine configuration tabs.
Before you start
Section titled “Before you start”- Your account has channel management permissions (
channel:readandchannel:manage). - Prepare the list of website domains where the widget will be embedded (for example
example.co.id,app.example.co.id).
Steps: Create a new Webchat Widget
Section titled “Steps: Create a new Webchat Widget”- Open Settings › Channels › Channels (
/settings/channels) and select the Webchat tab. - Click Create Widget.
- In the Create Webchat Widget dialog, enter the widget Name (for example
Customer Support Chat) and your allowed website domains. - Save the dialog to open the widget configuration page (
/settings/channels/webchat/[id]). - Customize the settings across the 9 tabs below while checking the Live Preview pane, then click Save Changes (Widget settings saved).
Reference: the 9 Webchat Widget configuration tabs
Section titled “Reference: the 9 Webchat Widget configuration tabs”On the widget detail page (/settings/channels/webchat/[id]), you can configure nine areas:
| Portal Tab | Key Settings |
|---|---|
| 1. Appearance | Configures header title, subtitle, primary brand color, launcher position on screen (bottom-left or bottom-right), welcome greeting, and brand logo upload (Logo uploaded). |
| 2. Pre-chat Form | Enables a pre-chat form to collect visitor name, email, phone number, or custom fields, including a Consent & Privacy (PDP Law) checkbox (Require consent checkbox, Indonesian & English consent copy, and consent version string). |
| 3. Behaviour | Configures office hours and the offline message form outside business hours, visitor file attachments, proactive auto-open triggers (by URL or time on page), and post-chat CSAT surveys. |
| 4. WhatsApp | Enables the Continue on WhatsApp button inside the widget so visitors can move an active webchat session to WhatsApp while keeping conversation context (see Continue Webchat on WhatsApp). |
| 5. Transcripts | Allows visitors to request an email copy of the chat transcript when the conversation ends. |
| 6. Analytics | Displays widget engagement metrics (launcher impressions, chats started, and pre-chat form completion) and optional event forwarding to your site analytics. |
| 7. Visitor Identity | Manages the HMAC/JWT signing secret used to verify signed-in users (external_id, name, email, phone) and provides visitor data erasure (Visitor data deleted: purges sessions and conversations by external_id or visitor_id). |
| 8. Security | Restricts allowed origin domains (CORS / frame-ancestors), configures per-visitor message rate limits, and blocks abusive IPs or sessions. |
| 9. Install & API | Provides the <script> embed snippet to paste before </body> on your site, a direct share link (standalone PWA chat page), and integration guides for the JavaScript SDK and mobile WebViews. |
Embed the widget on a website, mobile app, or standalone link
Section titled “Embed the widget on a website, mobile app, or standalone link”- Open the Install & API tab on your widget.
- Click Copy on the
<script>snippet and paste it into your website’s HTML template. - To control the widget programmatically from your web app or embed it inside an Android/iOS app, see:
- Webchat JavaScript API for
open(),close(),identify(), and event listeners. - Webchat in Mobile Apps (WebView) for iOS and Android WebView embedding.
- Standalone Webchat (PWA & Direct Chat Links) for sharing direct chat URLs without embedding a script on a site.
- Webchat JavaScript API for
Result
Section titled “Result”The Webchat launcher appears on the domains listed in your Security tab, and every visitor message arrives in Conversations enriched with the visitor’s Pre-chat Form answers or verified Visitor Identity token.
Next steps
Section titled “Next steps”- Inbox Teams & Channel Routing to route the Webchat channel to the right agent team.
- Continue Webchat on WhatsApp to configure seamless handover from Webchat to your WhatsApp Business number.
If something goes wrong
Section titled “If something goes wrong”- The widget launcher does not appear on your website: Check the Security tab of your widget and verify that the host domain is included in the allowed origins list.
- Existing user tokens fail after rotating the secret in Visitor Identity: When Signing secret updated appears, copy the new secret immediately and update your backend token signer—the new secret is displayed only once.