framework · Embed guide
AI chatbot for Next.js sites
Use next/script in your root layout so ChatSupplies loads on every page without blocking hydration.
How to add ChatSupplies to Next.js
- 1
Copy chatbot id / embed details from ChatSupplies.
- 2
In app/layout.tsx (or _document), add a next/script tag pointing at the ChatSupplies widget URL with your chatbot id.
- 3
Deploy and test production + localhost.
- 4
Confirm leads land in the dashboard.
Next.js chatbot FAQ
Should I use beforeInteractive or afterInteractive?
Prefer afterInteractive (or lazyOnload) so the ChatSupplies widget does not compete with critical page JS.
Why teams pick ChatSupplies for Next.js
- AI receptionist that answers FAQs 24/7
- CRM-ready lead capture — not just chat logs
- One embed script; free to build before you pay
- Starter from $29/mo when you go live