Build with MemorieAI

Everything you need to add a voice-powered guide to your website in under 5 minutes.

Documentation

MemorieAI drops a voice-powered AI guide onto any website via a single script tag. The assistant reads the live DOM, navigates pages, highlights elements, and completes tasks on behalf of the user — in real time.

Quickstart

Paste this tag before </body> on any page:

HTML <script src="https://cdn.memorie.ai/embed.js" data-key="YOUR_API_KEY"></script>

That's it. The MemorieAI bubble appears in the bottom-right corner. Your users can click it, speak or type, and the assistant will guide them through your site.

ℹ️

Don't have an API key yet? Request early access and we'll set you up within 24 hours.

How It Works

When the page loads, embed.js injects a small floating bubble and panel into your DOM. When the user activates it:

  1. The script builds a semantic map of the current page — every button, link, heading, form field, and section — by reading the live DOM.
  2. That map is injected into the AI's context so it knows what's on screen right now.
  3. The user speaks or types. The AI understands intent and selects the right browser tool to act.
  4. Tools execute on the page: navigate, highlight, click, fill, scroll, or read.
  5. After any navigation the map is rebuilt for the new page automatically.

Configuration

Script Tag

HTML <script src="https://cdn.memorie.ai/embed.js" data-key="YOUR_API_KEY" data-lang="en" data-position="bottom-right" data-theme="auto" ></script>

Data Attributes

AttributeDefaultDescription
data-keyYour MemorieAI API key. Required.
data-langautoForce a language (en, es). Default detects from browser.
data-positionbottom-rightBubble position: bottom-right, bottom-left.
data-themeautoColor theme: light, dark, auto.
data-color#004488Primary accent color (hex). Applies to button and highlight.
data-labelMemorieAIName shown in the panel header.

Custom Prompt (Pro+)

Pro and Enterprise customers can define a custom system prompt per site from the dashboard. The prompt receives the current page map automatically — you only need to describe your site's structure, workflows, and personality.

💡

Include exact URL paths for your most common tasks. The AI will navigate directly to them when user intent matches — no vague descriptions needed.

PROMPT EXAMPLE You are the digital guide for Acme Corp. Help users navigate our app. KEY PAGES: - Dashboard: /dashboard - Billing: /settings/billing - Invite team: /settings/team/invite - API keys: /settings/api WORKFLOWS: 1. CONNECT STRIPE → Settings → Billing → "Connect Stripe" button 2. INVITE USER → Settings → Team → fill email field → Send Invite

Browser Tools

MemorieAI has six tools it can call on any page. Selectors used by the AI are always drawn from the live page map — it never invents IDs.

ToolParametersWhat it does
highlight_elementselectorPlaces a glowing animated border on the element so the user sees exactly where to look.
click_elementselectorProgrammatically clicks a button, link, or any interactive element.
fill_fieldselector, textTypes text into an input, textarea, or contenteditable field.
scroll_toselectorSmoothly scrolls the page so the element is in view.
read_contentselectorReads the text content of an element aloud to the user.

Multi-Tenant Architecture

Each customer gets their own data-key. The key is validated server-side against the requesting domain — so a key registered for acme.com will not work on evil.com.

FLOW Browser loads embed.js with data-key → POST /v1/auth { key, domain } → Server validates key + domain → Returns { vapiKey, assistantId } (never stored in browser) → Vapi session starts

The Vapi API key and assistant ID are never exposed to the browser. They live only on the MemorieAI backend and are returned as short-lived session tokens.

Domain Locking

From your dashboard, register the domains each key is allowed on. Requests from unlisted domains are rejected with a 403 domain_not_allowed error before any Vapi session is created.

⚠️

localhost and 127.0.0.1 are always allowed for development — no need to register them.

Languages

MemorieAI detects the user's language automatically from their browser locale and from the language they speak or type. The assistant responds in the same language. Currently well-tested: