Skip to content

Developers

Samantha, anywhere on the web.

Add an expert conversation to any website with a single snippet, then make it your own with a few lines of code.

Embeds

Built to drop in

  • One snippet

    Paste once and the button appears on every page. No build step, no framework required.

  • Your own buttons

    Open Samantha from any element so she fits your design and your page flow.

  • Partner credit carries over

    Visitors who arrive through a partner link keep their attribution when they talk to Samantha.

  • Mobile friendly

    The panel adapts to small screens and asks for microphone access only when a visitor starts talking.

Quick start

  1. Create a workspace and copy your workspace key and embed snippet.
  2. Paste the snippet before the closing </body> tag on your site.
  3. Reload your page. The “Talk to Samantha” button appears in the corner.

The snippet loads asynchronously, so your page keeps loading while Samantha gets ready.

index.html
<script>
  (function(w,d,s,o,f,js,fjs){
    w['smeai']=o;w[o]=w[o]||function(){(w[o].q=w[o].q||[]).push(arguments)};
    js=d.createElement(s);fjs=d.getElementsByTagName(s)[0];
    js.id=o;js.src=f;js.async=1;fjs.parentNode.insertBefore(js,fjs);
  }(window,document,'sma','https://smeai.scaleai.markets/widget.js'));
  sma('init', 'YOUR_WORKSPACE_KEY');
</script>

Commands

sma('init', key)
Adds the floating “Talk to Samantha” button and connects it to your workspace.
sma('open')
Opens the conversation panel. Use it from your own buttons and links.
sma('close')
Closes the conversation panel.
custom-button.html
<!-- Open Samantha from any element on your page -->
<button type="button" onclick="sma('open')">Talk to Samantha</button>

<!-- Close the panel from your own code, e.g. on Escape -->
<script>
  document.addEventListener('keydown', function (e) {
    if (e.key === 'Escape') sma('close')
  })
</script>

Not every touchpoint is a website. Partners receive personal affiliate links and call links they can place in posts, emails, messages and bios. Anyone who follows one can talk to Samantha in their browser, and the partner is credited automatically. Find your links in the partner portal.

Building something more involved? Tell us about it through the contact page and choose “Partnerships”.

Put Samantha on your site today.

It takes about five minutes. Your visitors will notice the difference right away.