Next.js

AI support for Next.js apps

Integrate an AI chatbot into your Next.js application. Works with App Router and Pages.

How to Add a Chatbot to Next.js

1

Create your chatbot

Sign up and configure your chatbot settings.

2

Get the embed code

Copy the script from your dashboard.

3

Add to Next.js

Use next/script in your layout or _app.js file.

4

Deploy

Works on Vercel, Netlify, or any host.

Your Embed Code

Copy this code and paste it into your Next.js site. Replace YOUR_EMBED_KEY with your actual key from the dashboard.

<script src="https://sitesupport.ai/widget.js" data-key="YOUR_EMBED_KEY"></script>

Where do I find my embed key? After signing up, you'll see your embed key in the dashboard. It looks like this: sk_abc123xyz...

Why Use SiteSupport with Next.js?

Works with App Router
Works with Pages Router
next/script integration
TypeScript compatible
Edge runtime safe

Frequently Asked Questions

How do I add it to App Router?

Add <Script src="..." strategy="lazyOnload" /> in your root layout.tsx file.

Does it work with SSR?

Yes! Use the lazyOnload strategy to ensure it only runs client-side.

Any conflicts with Vercel?

None. It's a simple external script that loads independently.

💬

Need Help Installing?

Our support team can help you get set up. We typically respond in under an hour.

Ready to add AI support to your Next.js site?

Set up in under 5 minutes. No credit card required.

Get Started Free