Website Widget
Embed an AI chat widget on your website with one line of code.
Overview
The website widget lets you add AI-powered chat to any website. Visitors can get instant help without leaving your site, and all conversations are handled by your trained agent.
Easy Install
One script tag
Customizable
Match your brand
Configurable
Position, triggers
Quick Install
Add this code snippet before the closing </body> tag on your website:
<script src="https://agent-rush.com/widget/v1/chat.js" data-agent="YOUR_AGENT_API_KEY"></script>Replace YOUR_AGENT_ID with your actual agent ID from the dashboard.
Customization Options
Customize the widget appearance using data attributes:
<script
src="https://agent-rush.com/widget/v1/chat.js"
data-agent="YOUR_AGENT_API_KEY"
data-color="#f97316"
data-position="bottom-right">
</script>data-agentYour agent API key (required)
data-colorPrimary color for button and header (default: #f97316)
data-positionWidget position: bottom-right or bottom-left (default: bottom-right)
Features
Widget remembers returning visitors across sessions
Fully responsive design works on all devices
Shows when the AI is preparing a response
Match your website colors and branding
Framework Guides
React / Next.js
Add to your _app.js or layout component using next/script with strategy="lazyOnload"
WordPress
Add via theme footer or use our official WordPress plugin
Shopify
Add to theme.liquid before the closing body tag
Webflow
Add via Project Settings → Custom Code → Footer