How to Embed a Widget in Help Scout Docs
Help Scout Docs provides a clean, minimalist knowledge base with built-in HTML editing support. You can embed interactive Embeddy widgets -- troubleshooters, calculators, product demos, decision trees -- directly inside Docs articles using the HTML editor. This guide covers three approaches: the inline HTML editor for article-level embedding, custom CSS/JS for site-wide code, and Beacon integration for in-chat widget access.
Help Scout Docs supports HTML including iframes
Help Scout's Docs editor allows you to switch to HTML mode and insert raw HTML including <iframe> tags. The HTML is preserved on save and rendered on the published Docs site. This makes embedding Embeddy widgets straightforward.
1. Prerequisites
- •An active Embeddy account with at least one published widget.
- •A Help Scout account with Docs enabled and a published Docs site.
- •Your Embeddy iframe embed code -- copy it from your widget's Embed tab in the dashboard.
- •Owner or Admin role in Help Scout to edit articles and site settings.
Your Embeddy iframe code:
<iframe src="https://embeddy.ai/webhost/WIDGET_ID?widget_props_id=PROPS_ID" width="100%" height="500" frameborder="0"> </iframe>
2. Method 1 -- HTML Editor in Docs (Recommended)
Help Scout's Docs article editor includes an HTML toggle that lets you insert raw HTML directly into an article. This is the quickest way to embed an interactive widget in a specific knowledge base article.
Best for: Embedding a troubleshooter in a "How to fix..." article, adding a product configurator to a setup guide, or placing a calculator alongside pricing documentation.
- 1
Open the article in Help Scout Docs
In Help Scout, go to Manage > Docs. Select your Docs site, navigate to the collection and article you want to edit, and click on it to open the editor.
- 2
Switch to HTML mode
In the article editor toolbar, click the HTML button (or the
</>icon). This toggles the editor to display the raw HTML source of the article. - 3
Paste your Embeddy iframe code
Position your cursor where you want the widget and paste the iframe code. Wrap it in a container div for clean spacing:
<!-- Embeddy Interactive Widget --> <div style="margin: 24px 0; max-width: 100%;"> <iframe src="https://embeddy.ai/webhost/WIDGET_ID?widget_props_id=PROPS_ID" width="100%" height="500" frameborder="0" allow="clipboard-write"> </iframe> </div> - 4
Switch back to the visual editor (optional)
Click the HTML button again to return to the visual editor. You should see a placeholder or rendered preview of the iframe in the article body.
- 5
Save the article
Click Save Article. If the article status is "Published," the widget will be live immediately. Visit your Docs site to confirm the widget appears correctly.
Tip: Help Scout preserves HTML across editor mode toggles. However, it is good practice to save from HTML mode when embedding iframes, to ensure nothing is accidentally reformatted by the visual editor.
3. Method 2 -- Custom CSS/JS in Docs Site
Help Scout Docs allows you to add custom CSS and JavaScript to your entire Docs site. This is useful for site-wide widget injection, such as adding a floating troubleshooter or interactive tool that appears on every article page.
Best for: Adding a floating interactive assistant, feedback widget, or persistent help tool that appears across all Docs pages, not just a single article.
- 1
Open Docs site settings
Go to Manage > Docs, click on your Docs site, then navigate to Site Settings (or Customize).
- 2
Find the Custom Code section
Look for the Custom Code, Custom Header/Footer, or Head/Body Code fields in the site settings. This is where you can inject HTML, CSS, and JavaScript.
- 3
Paste your widget injection script
Add the following script to inject a floating Embeddy widget on all Docs pages:
<!-- Embeddy Widget - Site-wide Help Scout Docs --> <script> document.addEventListener('DOMContentLoaded', function() { var iframe = document.createElement('iframe'); iframe.src = 'https://embeddy.ai/webhost/WIDGET_ID?widget_props_id=PROPS_ID'; iframe.style.cssText = 'position:fixed;bottom:20px;right:20px;width:380px;height:500px;border:none;z-index:9999;border-radius:12px;box-shadow:0 4px 24px rgba(0,0,0,0.15);'; document.body.appendChild(iframe); }); </script> - 4
Save the site settings
Click Save. The widget will now appear on every page of your Help Scout Docs site.
4. Method 3 -- Beacon Integration
Help Scout's Beacon is an embeddable support widget that provides live chat and Docs search. While you cannot directly embed an Embeddy widget inside Beacon, you can link to your widget from Beacon's custom content or use Beacon alongside your embedded widget for a layered support experience.
Note: This is a complementary approach. Beacon does not support custom iframes inside its panel. Instead, use Beacon to direct users to Docs articles that contain your embedded Embeddy widget, or run both tools side by side on your site.
- 1
Configure Beacon to surface Docs articles
In Manage > Beacons, configure your Beacon to show Docs suggestions. When users search in Beacon, they will find articles that contain your embedded widgets.
- 2
Add custom links in Beacon messages
Use Beacon's Messages feature to send targeted messages with links to your Docs articles that contain interactive widgets. For example: "Having trouble? Try our interactive troubleshooter."
- 3
Use JavaScript API to open specific articles
Use the Beacon JavaScript API to programmatically open a specific Docs article that contains your Embeddy widget:
<!-- Open a specific Docs article in Beacon --> <script> // Trigger Beacon to open an article with an embedded widget Beacon('article', 'ARTICLE_ID', { type: 'modal' }); </script>
5. Troubleshooting
Iframe is stripped after saving the article
Help Scout Docs generally preserves iframes, but if your HTML is being stripped, make sure you are using the HTML mode in the editor (not pasting into the visual editor directly). Save from HTML mode to ensure the iframe is retained.
Widget appears in the editor but not on the live site
Verify the article status is Published (not Draft). Also check that your Docs site is active and accessible. Open the Docs article URL directly in an incognito browser window to confirm the widget loads for anonymous visitors.
HTML button is missing from the editor toolbar
Ensure you are in the full article editor (not the inline edit mode on the Docs site). The HTML toggle is available when editing articles through Manage > Docs in the Help Scout dashboard.
Widget iframe shows a security error
If your Help Scout Docs site uses a custom domain, ensure the domain's CSP headers allow iframes from embeddy.ai. The default Help Scout Docs domain typically does not have restrictive CSP rules.
Custom JavaScript is not loading on the Docs site
Verify the code is in the correct field (header or footer code). Clear your cache and check the browser console for errors. Help Scout may cache Docs pages -- wait a few minutes and try again.
6. FAQ
Can I embed an interactive troubleshooter in a Help Scout Docs article?
Yes. Build your troubleshooter in Embeddy's no-code builder, then embed it in any Help Scout Docs article using the HTML editor (Method 1). Customers can use the troubleshooter directly in the article.
Does the widget work when articles are viewed inside Beacon?
Beacon displays a simplified version of Docs articles. Iframes may not render inside the Beacon panel. For the best experience, link users to the full Docs article URL where the widget will render completely.
Can I use different widgets in different Help Scout collections?
Yes. Each Embeddy widget has a unique embed code. You can create topic-specific widgets (e.g. a billing calculator, a setup troubleshooter) and embed each one in the relevant Docs article or collection.
Will the widget slow down my Docs site?
No. Iframes load asynchronously and do not block the main page. Your Help Scout Docs site will load at its normal speed, and the Embeddy widget loads independently in its own frame.
Can I embed a product demo or calculator in Help Scout?
Absolutely. Embeddy widgets are perfect for embedding interactive content in knowledge base articles. Build pricing calculators, product configurators, interactive demos, or decision trees and embed them directly in your Help Scout Docs.
Ready to embed in Help Scout?
Build interactive troubleshooters, calculators, and demos with Embeddy and embed them in your Help Scout Docs in minutes.
Start for Free