Install it your way.

Three ways to put the chat somewhere, guides for twelve stacks, and SDKs for apps. Your workspace gives you each snippet with your own address and chat name filled in.

Three ways to install. Same chat in each.

Script tag

The chat button appears in the corner of every page that has this tag. Put it in your shared layout, just before the closing body tag.

<script
  defer
  src="https://YOUR-APP-ADDRESS/widget.js"
  data-slug="your-chat"
  data-api="https://YOUR-APP-ADDRESS"
></script>

Iframe

The chat sits inside a page, at the place and size you give it.

<iframe
  src="https://YOUR-APP-ADDRESS/embed/your-chat"
  style="border:0;width:100%;height:600px"
  title="Chat"
></iframe>

Full page

The chat is a page of its own. Link to it from a button, an email or a QR code.

https://YOUR-APP-ADDRESS/c/your-chat

Replace YOUR-APP-ADDRESS and your-chat with the values from your workspace, or copy the finished snippet from the Integration page there.

Guides for your stack. Where the script tag goes.

HTML

Any site where you can edit the page markup: static sites, server-rendered templates, PHP, Rails, Django, Laravel.

  1. Paste the tag just before the closing body tag.
  2. Put it in the shared layout, not on one page, so the chat button follows visitors around the site.

React

Single-page apps built with Vite, Create React App or any React setup.

  1. Simplest: add the tag to the HTML shell, index.html.
  2. Or load it from a small component and render that once, near the root of the app.

Next.js

App Router or Pages Router, using the built-in next/script component.

  1. App Router: add a Script with the afterInteractive strategy to the root layout.
  2. Pages Router: add the same Script to the custom App.

Vue and Nuxt

Vue 3 single-page apps and Nuxt 3 sites.

  1. Vue with Vite: add the tag to the HTML shell, index.html.
  2. Nuxt: declare the script in the app head in nuxt.config.ts, placed at the end of the body.

Angular

Angular CLI projects.

  1. Add the tag to the application shell, src/index.html. Angular removes script tags from component templates.
  2. Rebuild. The tag needs no other configuration.

SvelteKit

SvelteKit sites, and plain Svelte apps built with Vite.

  1. Add the tag to the page template, src/app.html, after the body placeholder.
  2. Plain Svelte with Vite: use index.html the same way.

WordPress

Self-hosted WordPress, with a plugin or from a child theme.

  1. Without code: install a header-and-footer plugin such as WPCode, paste the tag into its Footer box and save.
  2. Or add it from a child theme’s functions.php, so a theme update does not remove it.

Shopify

Online Store themes.

  1. In the Shopify admin go to Online Store, Themes, and choose Edit code on your live theme.
  2. Paste the tag before the closing body tag of the layout.
  3. Save and check the storefront.

Webflow

Site-wide custom code. Needs a paid site plan.

  1. Open Site settings, Custom code.
  2. Paste the tag into Footer code.
  3. Save and publish. Custom code does not run inside the Designer.

Wix

Site-wide custom code from the dashboard. Needs a premium plan with a connected domain.

  1. In the site dashboard go to Settings, Custom code, then Add Custom Code.
  2. Paste the tag.
  3. Choose All pages, load code once, and place it at the end of the body.

Squarespace

Site-wide code injection. Your plan must include code injection.

  1. Open Settings, Advanced, Code Injection.
  2. Paste the tag into Footer and save.

Google Tag Manager

Sites that already load tags through a GTM container.

  1. Create a Custom HTML tag and paste the tag into it.
  2. Trigger it on All Pages.
  3. Preview, then submit to publish the container.

Web SDK

For web apps that want the chat as part of their own interface instead of a button in the corner. You can turn on voice: visitors speak a question, and replies can be read aloud.

npm install @webfinancedirect/ai-chat-web

React Native SDK

For iOS and Android apps built with React Native. Your app mounts one component and the chat runs inside it. Voice works here too: visitors speak a question, and replies can be read aloud.

npm install @webfinancedirect/ai-chat-react-native

Allowed sites

The script tag and the iframe work only on the websites you list for that chat, so nobody else can put your chat on their site. The full page has nothing to allow: its link works from anywhere.

Put your website’s answers where your visitors ask.