Next.js · AI Tema
In Next.js App Router, place script loading in a shared layout. next/script loads the widget after hydration and avoids reloading it across routes in that layout. Keep your existing page structure.
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.
app/components/AitemaChat.jsx
Enter your ID to generate code for your website.
import Script from 'next/script';
export default function AitemaChat() {
return (
<Script
id="aitema-chat"
src="https://api.aitema.cloud/api/v1/chat/widget.js"
data-account="ACCOUNT_ID"
strategy="afterInteractive"
/>
);
}Render the same next/script component once in pages/_app.jsx or _app.tsx. Do not install a second script in individual pages.
Yes. Put the component in the public route group’s shared layout instead of the application root layout.
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.
↗src/AitemaChat.jsxInstall AI Tema in React with a ready useEffect component, single SDK loading and unmount cleanup. Add SPA chat without duplicate launchers.
↗