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.

1

Create a bot

  • Sign in to the dashboard
  • Click Bots → New bot
  • Give it a name and save
2

Add knowledge

  • Open Knowledge
  • Paste a URL or text content
  • Save to train your bot
3

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.

Download plugin (.zip)

Option A: aEye plugin (easiest)

  1. Download aeye-for-wordpress.zip using the button above.
  2. In WordPress admin, go to Plugins → Add New → Upload Plugin.
  3. Choose the zip, click Install Now, then Activate.
  4. Open Settings → aEye. Tick "Enable chat widget" and paste your Bot ID. Save.
  5. To auto-publish blog posts, see the Blog Post Automation guide.

Option B: Header & Footer plugin

  1. Install the free plugin WPCode or Insert Headers and Footers from the WordPress plugin directory.
  2. Open the plugin's settings, find the "Footer" or "Before </body>" box.
  3. Paste the widget snippet above. Save.
  4. Reload your site. The chat launcher should appear in the bottom-right corner.

Option C: Edit your theme's footer directly

  1. Go to Appearance → Theme File Editor.
  2. Open footer.php.
  3. Paste the widget snippet just before the closing </body> tag.
  4. 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

  1. Admin → Online Store → Themes
  2. Click ⋯ next to your active theme → Edit code
  3. Open Layout / theme.liquid
  4. Paste the snippet before </body>

Wix

  1. Site Settings → Custom Code
  2. Add Custom Code → paste the snippet
  3. Set "Add Code to Pages": All pages, Body end
  4. Apply

Squarespace

  1. Settings → Advanced → Code Injection
  2. Paste the snippet in the Footer box
  3. Save

Raw HTML / Webflow

  1. Open the HTML file or template
  2. Paste the snippet before </body>
  3. 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>
AttributeDefaultDescription
data-bot-id(required)The bot ID from your dashboard.
data-color#7c3aedPrimary color for the launcher and user messages.
data-positionright"right" or "left" corner of the screen.
data-titleChat with usTitle shown in the panel header.
data-greetingHi! 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.

POST/api/chat/widget

Auth: 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.