Skip to main content
WordPress takes the SmartAlex widget as one script tag, with no SmartAlex plugin. Paste it into a footer scripts plugin to show it on every page, or into a Custom HTML block to show it on one page. The same tag works on classic themes, block themes, Elementor and Divi.
In the app: Agent Settings → Widget → Install → Install code, and switch on Show widget on my website in the same place.
Any WordPress directory plugin that claims to be an official SmartAlex plugin is not ours, so use this page’s script tag, the supported route.

How do I get my snippet?

Create an agent with the Create a new agent card on Home. Then open Agent Settings → Widget → Install → Install code and press Copy. Your data-tenant-id is already filled in, and you can also press Send to developer or ask a connected AI app for it.
The tag is the same for every style, and you set colour, layout and agent in Agent Settings → Widget. Restyling never means editing WordPress again.

How do I add it to every page?

Use a headers and footers scripts plugin such as WPCode, Insert Headers and Footers or Header Footer Code Manager.
1

Install a scripts plugin

In your WordPress dashboard go to Plugins → Add New, then install and activate one.
2

Paste into the footer

Open the plugin’s settings, find the Footer field and paste the tag.
3

Save and clear caches

Save. If you use a caching or CDN plugin, purge the cache so visitors get the new page.
On a classic theme you can add the tag before </body> in your child theme’s footer.php, and a child theme stops an update overwriting it. Block themes have no footer.php, so use the plugin.

How do I add it to one page only?

1

Add a Custom HTML block

Edit the page, click the plus, search for Custom HTML and insert it.
2

Paste the tag

Paste the script tag into the block.
3

Update and view the live page

Click Update, then open the live page, not the editor.
The diagram shows how the widget loads.

How do I check it is live?

Open your published site in a normal tab, not the editor, and hard refresh. If the widget is missing:
  • Check the tenant ID is your real one, with no stray quotes or spaces.
  • Purge every cache, both the page cache plugin and the CDN.
  • Check a security plugin has not stripped the tag, and allow api.getsmartalex.com if needed.
  • Check Show widget on my website is on, and that your site is in Allowed websites if you set that list.
More fixes are in Installing the widget.

How do I make the agent do more?

Custom HTTP Tools let your agent call your own endpoints during a call. They need the Power Tools add-on (add-ons and prices), and you can also run the whole account from an AI app over MCP.

Questions people ask

No. There is no official SmartAlex plugin in the WordPress directory, and you do not need one when you paste one script tag.
Yes. The same script tag works on classic themes, block themes and page builders, because it is one async script.
Purge your page cache and CDN first, because stale pages are the most common cause. Then check that no security plugin removed the tag and that the tenant ID is correct.
Yes. Put the script tag in a Custom HTML block on that page, or use a footer scripts plugin for the whole site.

Installing the widget

The full install guide and fixes.

Widgets

The five styles, colours and limits.

Build overview

Every builder and AI app SmartAlex works with.

MCP overview

Run your account from an AI app.
Last modified on November 27, 2026