We just launched on Product Hunt. Come say hi →
Agentmatica

Get started

Deploy the widget

Single script tag, any site. Loads asynchronously and doesn't block render. The Deploy page also holds allowed domains, page visibility rules, and the hosted chat page.

Copy the snippet

The tag loads a tiny loader.js that fetches the real widget bundle named in data-widget-src. That lets us ship widget updates without you touching the snippet again.

Open your agent in the dashboard, go to Deploy → Install Widget, and copy the snippet (don't retype it — the src URL and agent ID are pre-filled for you). It looks like:

<script
  src="https://agentmatica.com/loader.js"
  data-widget-src="https://agentmatica.com/widget.js"
  data-bot-id="YOUR_BOT_ID"
  id="agentmatica-widget-script"
  defer
></script>
Deploy page with the Install Widget snippet, Copy code button, and platform-specific instructions
Agent → Deploy. The snippet is pre-filled with your agent ID.

Where to paste it

Anywhere before </body>. Most teams put it in the site's root layout so it loads on every page.

Shopify

Use the app embed. Install the Agentmatica app, then in Shopify admin go to Online Store → Themes → Customize → App embeds and switch on Agentmatica Chat. The Deploy page has a button that opens the theme editor with it already switched on. See Shopify integration.

If you can't use the app embed, paste this Liquid snippet into theme.liquid just before </body>. It recognizes signed-in customers, so they don't have to re-enter order details. Don't use both, or two copies of the chat load:

<script
  src="https://agentmatica.com/loader.js"
  data-widget-src="https://agentmatica.com/widget.js"
  data-bot-id="YOUR_BOT_ID"
  id="agentmatica-widget-script"
  data-amk-logged-in="{% if customer %}1{% else %}0{% endif %}"
  data-amk-customer-token-url="/apps/agentmatica/customer-token"
  defer
></script>

Requires Connect Shopify (OAuth) on the agent and the Agentmatica App Proxy (see Shopify integration). Classic customer accounts only for logged-in identity.

WordPress

Use any “custom code” plugin (e.g. WPCode), or paste into your theme's footer.php. Once the Agentmatica for WordPress plugin is connected, the Deploy page shows a PHP variant instead that also identifies logged-in customers for order lookup and post-purchase support. See WordPress integration.

Next.js / React

Use next/script with strategy afterInteractive:

import Script from "next/script";

<Script
  src="https://agentmatica.com/loader.js"
  data-widget-src="https://agentmatica.com/widget.js"
  data-bot-id="YOUR_BOT_ID"
  strategy="afterInteractive"
/>

Plain HTML / static sites

Drop the snippet anywhere. The defer attribute means order doesn't matter for FCP.

Wix, Squarespace, Webflow and other platforms

On these platforms the same snippet goes into the site's custom code settings. The chat answers from your pages, collects leads and hands off to your team. Order lookup and the in-chat cart work on Shopify and WooCommerce today. The Deploy page shows these steps too, under Other platforms.

Wix

Wix only allows custom code on published sites with a connected domain, which usually means a Premium plan.

  1. In your site dashboard, open Settings, then Custom Code (under Advanced).
  2. Click Add Custom Code and paste the snippet.
  3. Name it Agentmatica, choose All pages, and set it to load once per visit.
  4. Under Place Code in, choose Body - end, then click Apply.

Custom code doesn't run in the Wix editor preview. Check on your live site.

Squarespace

Code Injection isn't on the entry-level plans (Basic or legacy Personal).

  1. In the Pages panel, click Custom Code, then Code Injection. On version 7.0 sites it's under Website Tools.
  2. Paste the snippet into the Footer box.
  3. Click Save.

Webflow

Custom code needs a paid Site plan or a paid Workspace plan.

  1. Open Site settings, then the Custom code tab.
  2. Paste the snippet into Footer code (it goes before </body>).
  3. Click Save, then publish the site.

Custom code only runs on the published site, not in the Designer.

BigCommerce

Script Manager works on Stencil themes.

  1. In your control panel, open Storefront, then Script Manager, then Create a Script.
  2. Name it Agentmatica. Set Placement to Footer and Location to All pages.
  3. Set Script category to Essential and Script type to Script.
  4. Paste the snippet into Script contents and click Save.

BigCommerce's All pages option skips checkout and order confirmation pages.

Magento / Adobe Commerce

  1. In the admin, open Content, then Design, then Configuration.
  2. Click Edit on your store view (or Global for every store view).
  3. Under Other Settings, expand HTML Head and paste the snippet into Scripts and Style Sheets.
  4. Click Save Configuration, then flush the cache under System, then Cache Management.

If your store sets a strict Content Security Policy, allow agentmatica.com for scripts and connections.

PrestaShop

  1. PrestaShop has no built-in field for scripts. Install a module that adds custom code to the footer, or ask your developer.
  2. With a module: paste the snippet into its footer or before </body> field, on all pages.
  3. With a theme edit: add the snippet to your theme's footer template, just before </body>, then clear the cache under Advanced Parameters, then Performance.

Salesforce Commerce Cloud

  1. There's no admin field for scripts, so this goes through your developer or agency.
  2. Send them the snippet and ask for it on every storefront page, before </body>. On SFRA that's the page template in a cartridge. On PWA Kit it's the app's document template.
  3. Add your storefront domain under Security on this page once it's live.

Google Tag Manager

  1. In your container, open Tags, then New, then Tag Configuration, then Custom HTML.
  2. Paste the snippet.
  3. Under Triggering, choose All Pages.
  4. Save, check it in Preview mode, then Submit to publish.

If an ad blocker or cookie banner stops Tag Manager from loading, the chat won't load either. Pasting the snippet into the site itself avoids that.

Security: allowed embed domains

The Security card lists the domains the widget may run on. Your agent's website URL and Agentmatica's own share and playground pages are always allowed; add staging hosts or a second site here. A widget loaded from any other origin is refused a session token and stays silent — see REST API for how session tokens work.

Visibility: hide the widget on some pages

The Visibility card has two controls:

  • Show widget on embedded pages — the master switch. Turn it off to take the widget down everywhere without touching your site's code. The hosted chat page is unaffected.
  • Excluded page URLs — one absolute URL per line. The widget stays hidden on those pages. Useful for checkout, account, or legal pages where a chat launcher gets in the way.

To have the chat open itself on checkout hesitation or a cart add, see Behavioral intercept. For inline typing prompts inside your content, see Intercept nodes. For a row of questions that open the chat already asked, create a set under Starter questions and paste its embed snippet on the page.

Visibility card with the master switch and excluded URLs, and the Hosted Share Link card
Visibility and Hosted Share Link cards further down the Deploy page.

No site yet? Use the hosted chat page

The Hosted Share Link card can give your agent a public URL — visitors chat in a full-page UI with no embed, no setup, and no account. Toggle on Hosted chat page and pick a slug (lowercase letters, numbers, and hyphens; 3–48 characters). The page always uses the Spotlight layout. Handy for DMing a prospect or testing on a phone before the widget ships.

Customizing appearance

Layout, bubble position, logo, colors, welcome copy, and suggested prompts live in Agent → Chat appearance with a live preview — see Chat appearance. Changes propagate within a minute; the widget fetches its config live, not at build time.

Verifying it works

  • Open your site in an incognito window.
  • You'll see the launcher in the bottom-right by default (or the Spotlight prompt, depending on display mode).
  • Open it and ask any question your indexed content covers.
  • Watch the new conversation appear in Agent → Conversations in the dashboard.
  • The Widget status indicator on the Deploy page flips from “We haven't seen the widget yet” to confirmed once the script loads on your domain.
Not seeing the bubble? Check the browser console for load errors — most issues come from Content Security Policy (CSP) blocking the script, or the page's origin missing from the allowed embed domains. Add agentmatica.com to your script-src directive and confirm the domain under Security.
Start free

Turn the questions shoppers
ask into orders.

Add your store, ask it what your shoppers ask, and watch it answer from your pages, show the right products and build the cart. Put it on your site when you’re ready. Nothing goes live until then.

Start free · Try it before it goes live · No credit card