Documentation
aEye quickstart
Create a bot, train it with your content, and deploy the widget on your site.
01
Create a bot
- Open Dashboard > Bots > Create bot
- Complete the setup questionnaire
- Save to generate a botId
02
Find your botId
- Dashboard > Bots > select your bot
- botId is shown in the summary card
- Use it in the widget snippet and API calls
03
Add your OpenAI key
- Dashboard > Settings
- Paste your key, test connection, then save
- Keys are encrypted server-side and never exposed to the client
04
Install the widget
- Copy the snippet below into your site before </body>
- Customize launcher colors in the dashboard
- Verify chat loads on your page
HTML snippet
<script src="https://cdn.aeye.lk/widget.js" data-bot-id="your-bot-id" data-base-url="https://app.aeye.lk" ></script>
React snippet
import { useEffect } from "react";
useEffect(() => {
window.AEyeWidget?.init({
botId: "your-bot-id",
baseUrl: "https://app.aeye.lk",
theme: {
primaryColor: "#7c3aed",
position: "right",
},
});
}, []);