Skip to main content

Embeddable Widget

The Senda Widget is a Web Component (<senda-chat>) that adds an AI chat interface to any website. It uses Shadow DOM for complete CSS isolation — it won't affect or be affected by your site's styles.

Installation​

Add two lines to your HTML:

<script src="https://senda.telar.ai/widget/v1/senda.js"></script>
<senda-chat
api-key="sk_live_YOUR_KEY"
space="soporte"
></senda-chat>

Attributes​

AttributeRequiredDefaultDescription
api-key✅—Your Senda API key
base-url❌Auto-detectedAPI base URL
space❌First spaceSpace code or ID
position❌bottom-rightbottom-right or bottom-left
title❌Senda AIHeader title text

How It Works​

  1. A floating action button (FAB) appears in the specified corner
  2. Clicking it opens a chat panel with a welcome message
  3. Messages stream in real-time via SSE through the /v1/chat/completions API
  4. The widget supports typing indicators and auto-scrolling

Bundle Size​

MetricValue
Raw12.2 kB
Gzipped4 kB
DependenciesZero

Browser Support​

Chrome 90+, Firefox 90+, Safari 15+, Edge 90+. No IE11 support (Shadow DOM required).