Chat Bot for Website
Install aEye on your site
Add the chat widget to any website in one line, customize its look, or call the Chat API directly.
01
Quickstart
Three steps to a live chat widget on your site.
Create a bot
- Sign in to the dashboard
- Click Bots → New bot
- Give it a name and save
Add knowledge
- Open Knowledge
- Paste a URL or text content
- Save to train your bot
Install widget
- Copy the snippet below
- Paste before </body>
- Reload your site
Minimal install
<script src="https://app.aeye.lk/widget.js" data-bot-id="YOUR_BOT_ID" ></script>
Replace YOUR_BOT_ID with the ID shown on your bot's detail page in the dashboard.
02
Install on WordPress
The easiest way is our official plugin: it adds the chat widget and auto-imports your AI blog posts, all from one settings page. Prefer to do it by hand? The snippet options are below.
aEye for WordPress plugin
Chat widget + automatic blog import, configured from one settings page. No code required.
Option A: aEye plugin (easiest)
- Download aeye-for-wordpress.zip using the button above.
- In WordPress admin, go to Plugins → Add New → Upload Plugin.
- Choose the zip, click Install Now, then Activate.
- Open Settings → aEye. Tick "Enable chat widget" and paste your Bot ID. Save.
- To auto-publish blog posts, see the Blog Post Automation guide.
Option B: Header & Footer plugin
- Install the free plugin WPCode or Insert Headers and Footers from the WordPress plugin directory.
- Open the plugin's settings, find the "Footer" or "Before </body>" box.
- Paste the widget snippet above. Save.
- Reload your site. The chat launcher should appear in the bottom-right corner.
Option C: Edit your theme's footer directly
- Go to Appearance → Theme File Editor.
- Open
footer.php. - Paste the widget snippet just before the closing
</body>tag. - Click Update File.
Note: theme updates can overwrite this file. Option A is safer in the long run.
Option D: functions.php hook (for developers)
functions.php
<?php
// Append to your theme's functions.php
add_action('wp_footer', function() { ?>
<script
src="<?php echo esc_url('https://app.aeye.lk/widget.js'); ?>"
data-bot-id="YOUR_BOT_ID"
></script>
<?php });03
Install on other platforms
Shopify
- Admin → Online Store → Themes
- Click ⋯ next to your active theme → Edit code
- Open Layout / theme.liquid
- Paste the snippet before </body>
Wix
- Site Settings → Custom Code
- Add Custom Code → paste the snippet
- Set "Add Code to Pages": All pages, Body end
- Apply
Squarespace
- Settings → Advanced → Code Injection
- Paste the snippet in the Footer box
- Save
Raw HTML / Webflow
- Open the HTML file or template
- Paste the snippet before </body>
- Save and republish
04
Widget customization
Configure the widget by adding data attributes to the script tag.
Customized install
<script src="https://app.aeye.lk/widget.js" data-bot-id="YOUR_BOT_ID" data-color="#7c3aed" data-position="right" data-title="Chat with us" data-greeting="Hi! How can I help today?" ></script>
| Attribute | Default | Description |
|---|---|---|
| data-bot-id | (required) | The bot ID from your dashboard. |
| data-color | #7c3aed | Primary color for the launcher and user messages. |
| data-position | right | "right" or "left" corner of the screen. |
| data-title | Chat with us | Title shown in the panel header. |
| data-greeting | Hi! How can I help you today? | First bot message when the panel opens. |
| data-base-url | (auto-detected) | Override the API base URL. Useful for self-hosted setups. |
05
Chat API
Send messages directly from your own app, mobile client, or backend. The same endpoint the widget uses.
/api/chat/widgetAuth: none. Only the botId is required. The bot's owner is identified server-side and their Claude key is used to generate the reply. Keep your botId reasonably private (anyone with it can chat against your bot using your token quota).
Request
curl -X POST https://app.aeye.lk/api/chat/widget \
-H "Content-Type: application/json" \
-d '{
"botId": "YOUR_BOT_ID",
"message": "What are your business hours?",
"sessionId": "optional-session-id"
}'Response
{
"reply": "We're open Monday to Friday, 9am to 6pm.",
"sessionId": "widget-abc123-xyz"
}Pass the returned sessionId back in the next request to keep the same conversation thread. Omit it to start a fresh conversation.
Stuck somewhere?
We'll help you set up your first bot for free during the public beta. Book a quick call or email us.