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 athttps://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.
How do I add the widget to a generated app?
Paste this just before the closing</body> tag, with your own tenant ID.
Which guide is for my tool?
Questions people ask
Do I need an API key to build with SmartAlex?
Do I need an API key to build with SmartAlex?
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.
Which path should I pick, MCP or the widget?
Which path should I pick, MCP or the widget?
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.
Does the widget work in apps made by Lovable, v0, Bolt or Replit?
Does the widget work in apps made by Lovable, v0, Bolt or Replit?
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.
Where do I get my tenant ID?
Where do I get my tenant ID?
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.Related
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.

