⚛️ React

AI support for your React app

Integrate an AI chatbot into your React application. Simple script or npm package.

How to Add a Chatbot to React

1

Create your chatbot

Sign up and configure your chatbot in the dashboard.

2

Choose integration method

Use the script tag or import directly into your React app.

3

Add to your app

Include in your index.html or main layout component.

4

Deploy

Chatbot works in development and production.

Your Embed Code

Copy this code and paste it into your React 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 React?

Script tag or component import
Works with Create React App
Vite compatible
TypeScript support
No bundle size impact (async load)

Frequently Asked Questions

Is there a React component?

You can use the script tag in your index.html, or dynamically load it in a useEffect hook.

Does it work with SSR?

Yes! The script loads client-side only, so it's SSR-safe.

Will it increase my bundle size?

No. The script loads asynchronously and isn't part of your bundle.

💬

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 React site?

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

Get Started Free