Back to Documentation

Embed Mentoros

Integrate the AI assistant into any website with a single script tag.

Direct Integration

The recommended way to embed Mentoros is by using our lightweight vanilla JS SDK. It has zero dependencies and a minimal footprint (~12KB gzipped).

<!-- 1. Container for the widget -->
<div id="chatbot-container"></div>

<!-- 2. Include Assets -->
<link rel="stylesheet" href="https://sdk.mentoros.gr/latest/chatbot.min.css">
<script src="https://sdk.mentoros.gr/latest/chatbot.min.js"></script>

<!-- 3. Initialize -->
<script>
  const bot = new SecureLightChatbot({
    clientToken: 'your-client-token',
    appId: 'your-app-id',
    baseUrl: 'https://api.mentoros.gr',
    encrypted: true
  });

  // Mount to container
  bot.init('#chatbot-container');
</script>

Configuration Options

OptionDescription
clientTokenYour unique API key for authentication.
appIdThe unique identifier for your business account.
baseUrlThe URL of the Mentoros API service.
encryptedEnable enterprise-grade encryption for all traffic.

Was this article helpful?