React · AI Tema
In React, connect the widget to a component lifecycle. The example creates one launcher outside the React tree, reuses the SDK and destroys its own instance when the component leaves the page.
Instructions checked:
Every platform uses the same lightweight AI Tema widget. It runs your workflows and does not automatically access orders, CMS data or personal data from your website.
src/AitemaChat.jsx
Enter your ID to generate code for your website.
import { useEffect } from 'react';
const ACCOUNT_ID = 'ACCOUNT_ID';
export default function AitemaChat() {
useEffect(() => {
let active = true;
let widget;
let owned = false;
const mount = (sdk) => {
if (!active) return;
const existing = sdk.get(ACCOUNT_ID);
widget = existing || sdk.mount({ account: ACCOUNT_ID });
owned = !existing;
};
if (window.Aitema?.version) {
mount(window.Aitema);
} else {
window.Aitema = window.Aitema || { q: [] };
window.Aitema.q.push(mount);
if (!document.querySelector('script[data-aitema-sdk], script[src="https://api.aitema.cloud/api/v1/chat/widget.js"]')) {
const script = document.createElement('script');
script.src = 'https://api.aitema.cloud/api/v1/chat/widget.js';
script.dataset.aitemaSdk = '';
script.async = true;
script.addEventListener('error', () => script.remove(), { once: true });
document.body.append(script);
}
}
return () => {
active = false;
if (owned) widget?.destroy();
};
}, []);
return null;
}No. The example handles repeated setup/cleanup without creating a second launcher. Keep the check enabled.
Use the separate Next.js guide with next/script. It places loading in a layout and covers application routing.
Install AI Tema chat on WordPress with ready-to-use PHP and HTML. Includes child-theme setup, WordPress.com requirements and lead verification.
↗HEADAdd AI Tema chat to Tilda through site HEAD settings or a T123 block. Includes a ready script, publishing steps and lead collection checks.
↗layout/theme.liquidConnect AI Tema to a Shopify storefront with ready theme.liquid code, installation steps, domain checks and checkout limitations.
↗Custom CodeAdd AI Tema to Wix with a ready script, Body end placement, site-wide loading and published-domain checks through Custom Code.
↗Footer codeConnect AI Tema chat to Webflow with a ready Footer code snippet. Covers site settings, publishing and Webflow plan requirements.
↗/local/templates/…/footer.phpInstall AI Tema on 1C-Bitrix through footer.php. Ready widget code, active-template selection and lead checks without a marketplace module.
↗HEADAdd AI Tema to Bitrix24 Sites through custom HTML. Ready HEAD code, page-level settings and plan requirements for a published website.
↗Custom Code → Before </body>Add AI Tema to TapTop with a script before body. Includes project-wide and page-level installation, publishing and custom-code requirements.
↗Settings → General → HTMLConnect AI Tema to Taplink through Settings → General → HTML code. Ready script, insertion scope and mobile chat verification.
↗Códigos externos → Para la TiendaInstall AI Tema in Tiendanube through Códigos externos. Ready storefront code, a Google Tag Manager alternative and checkout limitations.
↗Сайт → Счётчики и коды → bodyAdd AI Tema to InSales without editing your theme. Ready HTML script, shared body insertion and conversation checks for your online store.
↗Instant Site → Custom JavaScript codeAdd AI Tema to Ecwid Instant Site through Custom JavaScript code. Ready script, supported plans and guidance for stores embedded in another CMS.
↗Custom Code → Add ScriptInstall AI Tema in Framer through Custom Code and Add Script. Ready HTML, Once execution, page selection and navigation verification.
↗Custom HTML → DOM ReadyAdd AI Tema with a Custom HTML tag in Google Tag Manager. Duplicate-safe script, DOM Ready trigger, Preview checks and container publishing.
↗index.htmlAdd AI Tema to a plain HTML website with one script. Covers body placement, shared templates, allowed domains and installation checks.
↗app/components/AitemaChat.jsxAdd AI Tema to Next.js App Router with a ready next/script component, afterInteractive loading and a shared layout without duplicate downloads.
↗