flowhelp flowhelp Documentation Search the docs

Add the widget to your site

You add the widget with one <script> tag placed before </body>. The key comes from your dashboard, and the chat works only on the domains you put on the list.

On this page

Before you start

  • The assistant has at least one source read in Knowledge. If you finish setup without knowledge, the assistant stays unpublished. Publish it in Settings → Installation → “Publish assistant”.
  • Your site runs on an https:// address.
  • You can paste code into the site, or you know someone who can.

Step 1. Copy the code from the dashboard

In the dashboard open Settings → Installation. In the “Snippet” card click Copy.

HTML
<script async src="https://cdn.flowhelp.ai/loader.js" data-key="pk_live_…"></script>

The public key is meant to be visible in your page source. It is protected by the list of allowed domains and by limits, not by secrecy.

Someone else pastes the code? The same tab has “Send to a developer”. We email the snippet and a link to the guide to the address you enter.

Step 2. Paste the code into your site

Any website

Paste the tag right before the closing </body>, on every page where the chat should appear.

HTML
  …page content…
  <script async src="https://cdn.flowhelp.ai/loader.js" data-key="pk_live_…"></script>
</body>

WordPress

Put the snippet in the page footer (wp_footer), for example with a custom-code plugin. Tested with Elementor. Step by step: WordPress and WooCommerce.

PrestaShop

  1. Download the module from flowhelp.ai/prestashop.
  2. In the PrestaShop back office open Modules → Module Manager and click “Upload a module”.
  3. Choose the downloaded zip file, and after “Module installed!” click “Configure”.
  4. Paste the line from the flowhelp dashboard, or just the key that starts with pk_live_, and save.

More about the module: PrestaShop.

AI assistant

Working with Claude, ChatGPT, Cursor or another AI assistant? Copy the ready prompt. It has the snippet and the rules, so the assistant adds the tag for you.

Step 3. Add your domain to the list

The widget works only on domains entered in the dashboard: Settings → Installation → “Allowed domains”.

  • https://example.com means exactly this domain.
  • *.example.com means every subdomain (www., blog.), but not the bare domain. Enter the bare domain separately.
  • Addresses with http:// do not work.
Settings → Installation: the list of domains where the widget is allowed to run.

Local addresses do not work. The dashboard will not save localhost, 127.0.0.1, private networks or names ending in .local and .test. Test on your real domain or on a test subdomain, for example https://test.example.com.

Step 4. Check that it works

Open the page with the pasted tag. The chat button should appear in the corner. The dashboard shows the same in the “Widget status” card.

“Live” means the widget has loaded on your site.

If the button is missing

Look at the browser console. The error says which of these causes stopped the widget.

Cause What to do
The domain is not on the list Add it under “Allowed domains” (step 3).
Your CSP blocks the widget Add the two sources from the section below.
The assistant is unpublished or paused Publish it: Settings → Installation → “Publish assistant”.
The page was opened from disk Open it at its address on the web. A file opened from disk does not start the widget.

Every cause with its console message: The widget doesn't show up.

Sites with a Content-Security-Policy

If your site has a CSP, you need exactly two sources.

CSP
script-src  … https://cdn.flowhelp.ai;
connect-src … https://app.flowhelp.ai;

The widget's styles live in Shadow DOM, so style-src stays as it is. If you set the assistant's avatar to an address of your own and your policy has img-src, add that image host too. More: Content-Security-Policy.

Tag attributes

Attribute Required Meaning
data-key yes The assistant's public key from the dashboard.
data-locale no Forces the window language: en, pl, de, fr or it. Without it the dashboard setting applies, then the browser language.

See also

Last changed: November 24, 2026 View Markdown
Ask about this page ChatGPTClaude
↑ ↓ to choose, Enter to open, Esc to close