Skip to main content
You can add SmartAlex to an app you build with AI in two ways. Connect an AI app over MCP to create and run voice agents, or paste one script tag so visitors can talk to your agent. Use either alone. Most builders end up using both.
In the app: Agent Settings → Widget → Install → Install code for the widget code. For MCP, sign in to SmartAlex when your AI app asks and press Approve.

Which path should I pick?

The diagram shows the two paths.

How do I connect an AI app?

Your AI app connects to the hosted MCP server at https://mcp.getsmartalex.com, where you sign in to SmartAlex in the browser and press Approve. The app then acts as you, with your role, in the workspace you last opened in SmartAlex.
The server offers more than 100 tools, plus read-only resources and ready-made prompts. Tools that spend money, contact people or delete something for good ask you first, and Security and permissions and MCP getting started explain how.

How do I add the widget to a generated app?

Paste this just before the closing </body> tag, with your own tenant ID.
React and Next.js apps load the same script from the root layout. This is what v0, Lovable and Bolt usually generate.
The widget reads its style, colours and agent from SmartAlex each time the page loads. You restyle it in Agent Settings → Widget without touching your site. Turn it on with Show widget on my website. See Widgets and Installing the widget.

Which guide is for my tool?

Questions people ask

No. AI apps connect to the SmartAlex MCP server by signing in to SmartAlex in the browser and pressing Approve. The website widget needs only your tenant ID. It is not a secret key. Owners and admins can also create read-only API keys with the Power Tools add-on. See add-ons and prices.
Use MCP when you want an AI app to build and run agents, campaigns and contacts for you. Use the widget when you want visitors to talk or type to your agent on a site or app, and most builders use both.
Yes. It is one external script, so static output takes the script tag and React or Next.js output injects the same script from the root layout.
In the app, open Agent Settings → Widget → Install → Install code. The code is shown with your data-tenant-id filled in, and a Copy button. A connected AI app can also fetch it for you.

MCP overview

What an AI app can do with SmartAlex, and how to connect.

Widgets

The five widget styles and how to set them up.

REST API

Read your workspace data from your own code.

Add-ons and prices

What Power Tools and the other add-ons include.
Last modified on November 27, 2026