Skip to main content

Chrome Extension

The Senda Chrome Extension adds a persistent AI copilot sidebar to any webpage. It reads page context (URL, title, selected text) and sends it to the agent for contextual assistance.

Installation​

  1. Download from the Chrome Web Store (coming soon) or load as unpacked extension from senda-extension/
  2. Click the Senda icon in the toolbar
  3. Enter your API Key, API URL, and optional space in the popup
  4. Click "Guardar ConfiguraciΓ³n"

Features​

FeatureDescription
Side PanelPersistent chat that stays open across tabs
Context AwarenessAutomatically reads page URL, title, and selected text
SPA DetectionMutationObserver tracks URL changes in single-page apps
StreamingReal-time SSE streaming responses
Secure StorageAPI key stored in chrome.storage.sync (encrypted by Chrome)

How Context Works​

When you navigate to a page or select text:

  1. The content script reads { url, title, selectedText } from the page
  2. It sends this to the background service worker
  3. The service worker stores it in chrome.storage.session
  4. The side panel reads the context and includes it in the chat message

The agent receives context like:

[Page Context: Jira Ticket PROJ-142 | Selected text: "Error 500 on login"]

How do I fix this issue?

Development​

To load the extension for development:

# 1. Open Chrome β†’ chrome://extensions
# 2. Enable "Developer mode"
# 3. Click "Load unpacked"
# 4. Select the senda-extension/ directory

Architecture​

manifest.json (Manifest V3)
β”œβ”€β”€ background.js β€” Service worker: auth, context relay
β”œβ”€β”€ content-script.js β€” Page reader: URL, title, selected text
β”œβ”€β”€ popup/popup.html β€” Config: API key, URL, space
└── sidepanel/index.html β€” Chat UI with streaming