Add the AI Workers widget to your website in minutes
The simplest way to add AI Workers to your website is with a single script tag. Add this code just before the closing </body> tag:
<script src="https://aiworkers.vip/widget.js?clientId=YOUR_API_KEY"></script>
Important: Replace YOUR_API_KEY with your actual API key from your dashboard.
theme.liquid</body> tagAdd to your _app.tsx or layout.tsx:
import Script from 'next/script'
export default function Layout({ children }) {
return (
<>
{children}
<Script
src="https://aiworkers.vip/widget.js?clientId=YOUR_API_KEY"
strategy="afterInteractive"
/>
</>
)
}Simply add the script tag before the closing body tag in your HTML files:
<!DOCTYPE html> <html> <head> <title>My Website</title> </head> <body> <!-- Your content here --> <script src="https://aiworkers.vip/widget.js?clientId=YOUR_API_KEY"></script> </body> </html>
After adding the script, visit your website and look for the chat widget in the bottom-right corner (or your configured position). Click it to test that it's working correctly.