Install the web widget
The widget is added to your site with a small loader tag. Open Setup in the panel, copy the site-specific public key and current snippet, then place it before the closing body tag.
<script src="https://dolphydesk.com/widget/v1.js" data-site-key="KEY_FROM_THE_PANEL"></script>The public key is visible in the browser and is not a password. Access is bounded by the server validating the key together with the request origin, so adding the key alone is not the full setup.
Allowed origins
Add your production origin in the panel. Scheme, hostname and port are evaluated together. https://example.com and https://www.example.com are different origins; add both if both serve the widget. For development, list an explicit address such as http://localhost:3000 instead of opening a wildcard to the internet.
Starting state
By default the widget shows its welcome card while closed. If the card covers content on your page, add data-start to the snippet to start the widget in its smallest form: a strip with the assistant portrait and a write button, plus a call button when the voice channel is on.
<script src="https://dolphydesk.com/widget/v1.js" data-site-key="KEY_FROM_THE_PANEL" data-start="strip"></script>data-start="strip": opens as the strip on every screen and returns to it when the panel closes.data-start="strip-mobile": the strip only on screens 640 pixels wide and below, the card on wider screens.
This setting lives in the page's snippet, not in the panel, so different pages of the same site can use different values. The design stays the same; only the starting state changes.
Opening it from your own button
Once loaded, the widget adds a small window.Dolphy object to the page. Use it to wire a button or link on your site to the chat:
Dolphy.open(); // opens the panel
Dolphy.ask("What are your prices?"); // opens the panel and sends the question for the visitor (up to 500 characters)
Dolphy.call(); // opens the panel and starts a voice callWhen the voice channel is off, Dolphy.call() only opens the panel. If your page already has a variable named window.Dolphy, the widget does not overwrite it, and these calls are then unavailable. A call made before the widget has loaded does nothing.
What a visitor can send
Besides text, a visitor can send an image: pick a file with the paperclip in the composer, or paste a screenshot from the clipboard. The image goes out together with the text when Send is pressed; text is optional.
- 1 image per message, 5 per conversation
- The image is resized in the browser (long edge at most 1600 pixels, at most 2 MB); embedded data such as location is dropped in the process
- A message is at most 2,000 characters
How an image is used in the answer is covered on the answer engine page.
Session and rate limit
A widget session is valid for 6 hours and renews itself when it expires; the visitor does not need to reload the page. A visitor who sends messages too quickly is told so, rather than shown a connection error.
Verify the installation
Open the page in a private window and check that:
- The widget launcher appears without blocking the page.
- A first message creates a conversation in the inbox.
- A known question is answered and an unknown one is not invented.
- The composer remains usable when the mobile keyboard opens.
If the widget does not appear, check the browser console for origin or key errors first. Then confirm the loader runs, the site's content security policy permits it, and the exact origin—including its protocol—has been registered.