Universal Asynchronous JavaScript Snippet for Any Web Server or Static Site
Deploy Rajlav AI across any website architecture. Whether you are running plain static HTML, Apache, NGINX, Hugo, Jekyll, or custom PHP backends, one line of code unlocks full conversational automation.
<!-- Rajlav AI Universal Smart Connect Widget -->
<script
src="https://staging.rajlav.co.in/widget/smart-connect.js"
data-business-id="YOUR_BUSINESS_ID"
data-position="bottom-right"
async
></script>Engineered for Performance & Scalability
Zero Dependencies
Vanilla JavaScript requiring no jQuery, React, or external third-party libraries.
Universal Compatibility
Works on any web server: PHP, Python/Django, Ruby on Rails, Node.js, or static CDN.
Sub-50KB Payload
Gzipped payload loads in milliseconds from edge locations worldwide.
Full HTTPS Security
Served strictly over TLS 1.3 with automated Content Security Policy (CSP) friendliness.
How to Connect Custom HTML & JavaScript in 4 Steps
Copy Your Embed Tag
Copy the single-line `<script>` tag from your Rajlav AI dashboard.
Open Your HTML File
Open your master HTML template or index file in any code editor.
Paste Before </body>
Paste the script tag directly before the closing `</body>` tag.
Upload & Verify
Upload changes to your web server; refresh your browser to view the active widget.
Compatible Rajlav AI Modules
Frequently Asked Questions
Will this conflict with existing JavaScript libraries on my page?
No! The Smart Connect script runs in an isolated closure with encapsulated styles, preventing global namespace collisions.
What Content Security Policy (CSP) headers are required?
Simply allow `script-src https://staging.rajlav.co.in` and `connect-src https://api-staging.rajlav.co.in` in your server CSP headers.
Can I host the script on my own CDN?
For standard accounts, the script is served directly from our optimized global edge CDN to guarantee real-time updates and security patches.
