Skip to main content
You install the widget once, by pasting one script tag into your website’s <head>. Copy it from Agent Settings → Widget → Install, or click Send to developer to email it to whoever runs your site. After that, every change you make in SmartAlex reaches your site on its next page load.
In the app: Agent Settings → Widget → Install (/home?settings=widget); set the style and behaviour first in Website widget.

Install it

1

Open the Install tab

In the sidebar, click Agent Settings, then Widget, then the Install tab.
2

Copy the code

Open Install code and click Copy, with your workspace ID already filled in.
The Install tab with the install code and Copy buttonThe Install tab with the install code and Copy button

Copy your install code

3

Paste it into your site

Paste it into the <head> of every page, or into your site builder’s custom code box, and the guides below show where.
4

Publish your site

Save and publish your site, and the widget appears in the corner once Show widget on my website is on.
The code looks like this, with your own workspace ID:
It carries your workspace ID, not an agent ID. It shows your workspace’s live widget: the agent where you last clicked Save changes on the Widget tab. So you can change the style, colours or agent later without touching your site again.
Not the one who edits your website? Open Send to developer, type their email address and click Send, and SmartAlex emails them the code and these steps.

Where to paste it

With a plugin (easiest):
  1. Install and activate a headers-and-footers plugin, such as WPCode.
  2. Open the plugin’s header scripts box.
  3. Paste the widget code and save.
In the theme:
  1. Go to Appearance → Theme File Editor.
  2. Open header.php and paste the code just before </head>.
  3. Click Update File.
A theme update can overwrite header.php, so the plugin route lasts longer.

Check it works

  1. Open your website in a private window and wait for the page to load.
  2. Look for the widget in the corner of the page.
  3. Ask it a question, then try a voice call if your style offers one.
  4. With the Unified Inbox add-on, check the chat arrived in Inbox as a Website conversation.

Questions people ask

  • Check Show widget on my website is on under Agent Settings → Widget.
  • View your page source and search for smartalex-widget, and if it is missing, the code was not saved or the site was not published.
  • If you set Allowed websites, check your address is on the list, since changes take up to 5 minutes to reach your site.
  • Check your site’s own styles or a cookie banner are not covering the corner.
  • Your Daily limits may be used up for today, and they reset at midnight UTC.
  • Your free credits and wallet may both be empty, or your monthly spend cap reached. Check Settings → Billing.
  • The visitor’s browser must allow the microphone, so check the site permission in the address bar.
  • Try a private window to rule out extensions, and a second browser.
  • Check the agent is active and published.
No. The code points at your workspace, not at one agent or one style. To switch agent, open the new agent’s Agent Settings → Widget and click Save changes. The widget reads your settings each time a page loads.
Yes. Paste the same code on each site and add each address to Allowed websites, or leave that list empty to allow any website.
Yes. Ask Claude, ChatGPT or another connected app for your widget install code through the SmartAlex MCP server.

Website widget

Style, branding, behaviour, limits and cost.

Put the widget on your website

The whole job, start to finish.

Start free

Build an agent and talk to it in your browser in about a minute. No card needed.

Visit getsmartalex.com

See what SmartAlex does for your business, hear real agents and compare plans.
Last modified on November 27, 2026