Get your AI agent live on your website in two steps.
Go to the Ornymo Dashboard, configure your agent, and complete the setup. Once it's ready, integrate it into your website with the Ornymo JavaScript widget.
Replace YOUR_BUSINESS_NAME with the business name you configured in your dashboard.
<script src="https://www.ornymo.com/widget.js" data-business-Name="YOUR_BUSINESS_NAME"> </script>
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<h1>My Website</h1>
<script
src="https://www.ornymo.com/widget.js"
data-business-Name="YOUR_BUSINESS_NAME">
</script>
</body>
</html>Once the script is added, the Ornymo widget loads automatically.
If you're using React, inject the script programmatically instead:
import { useEffect } from "react";
export default function OrnymoWidget() {
useEffect(() => {
const script = document.createElement("script");
script.src = "https://www.ornymo.com/widget.js";
script.dataset.business-Name = "YOUR_BUSINESS_NAME";
document.body.appendChild(script);
return () => {
document.body.removeChild(script);
};
}, []);
return (
<div>
<h1>My Website</h1>
<p>Ornymo widget will load automatically.</p>
</div>
);
}