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-keyYour Senda API key
base-urlAuto-detectedAPI base URL
spaceFirst spaceSpace code or ID
positionbottom-rightbottom-right or bottom-left
titleSenda 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).