Skip to content
AI agents

Put a Chat on Your WordPress, Shopify or Wix Site in 5 Minutes

One line of code, a list of allowed websites, and a check that it works

The Where it shows screen with the allowed websites list, the Code seen column and the embed code with a Copy code button

Before you start

You need a website agent that is built and tested in SaleFlowPoint (WhatsApp & AI Agents > AI agents > Agents), and access to your website's theme or code settings. If someone else looks after your website, SaleFlowPoint can email them the instructions; see the last step.

The example is Quill & Thread Stationers, an invented shop in Bath, UK, whose website is at www.quillandthread.example. Its agent already answers questions about paper weights, engraving and delivery.

Step 1: allow your website

Open the agent, then Where it shows, and tick Show this chat on my other websites. Under Allowed websites, type your website's address without https:// and without a page path, for example quillandthread.example, then Save.

  • You can list up to 10 websites.
  • The www. version of an address is included automatically. Any other subdomain, such as shop.quillandthread.example, must be added on its own line.
  • The chat does not open on any website that is not in the list, so nobody can copy your code onto their own site and spend your tokens.

Step 2: copy the code

After saving, the embed box shows one line of code with your agent's own key. Press Copy code. It looks like this, with your key in place of the dots:

Embed code (your key replaces wk_...)
<script src="https://chat.saleflowpoint.app/widget.js" data-key="wk_..." async></script>

The key in this line is public and safe to put in a web page; it only says which agent to show. It is not a password.

Step 3: paste it before </body>

Paste the line just before the closing </body> tag on every page where the chat should appear. Putting it in your theme's shared footer adds it to every page at once.

  • WordPress: add it to your theme's footer, or use a plugin that adds code to the header and footer of every page. If you use a block theme, a code snippet plugin is usually the simplest route.
  • Shopify: in your theme's code editor, open the main layout file and paste the line just above </body>. Duplicate your theme first, so you can go back.
  • Wix: add it as custom code under your site's settings, placed at the end of the body on all pages. Check Wix's own help pages for which site plans allow custom code.
An invented stationery shop website with the Chat with us button in the bottom right corner
The chat button on the shop's own website.

Step 4: check that it shows

Open your website in a new private window and look for the chat button in the corner you chose. Open it and send a test question. Then go back to Where it shows in SaleFlowPoint: the Code seen column shows when a chat was last started from each allowed website. Not seen yet means no chat has opened there so far.

No button? The usual causes are an address that is not in the list (check for a missing subdomain), a page cache that still serves the old page (clear it), or a strict security policy, below.

If your site has a Content Security Policy

Some sites send a Content-Security-Policy header that lists which other addresses may load scripts and frames. If yours does, add https://chat.saleflowpoint.app to script-src (for widget.js) and to frame-src (the chat window opens in a frame from that address). Without it, the browser blocks the chat and shows a message in its developer console.

Example additions to an existing policy
script-src 'self' https://chat.saleflowpoint.app;
frame-src https://chat.saleflowpoint.app;

Step 5: or send it to your developer

Under the embed code, type your developer's email and press Send. They get the code and these steps by email, and you can watch the Code seen column to know when it is live. The chat itself adds no cookies to your website and reads nothing from your pages except their address.

Start free today

One shop and one till free, with no time limit and no card to sign up.

Loading SaleFlowPoint…