The API and embed URL examples use
<customer>.wisdom.ai as a placeholder. Replace it with the base URL of your WisdomAI tenant, the same domain you use to log in. Both wisdom.ai and askwisdom.ai are valid depending on your deployment.Steps at a glance
Embedding a Live App takes four steps. The sections that follow cover how to construct the embed URL, control edit permissions with RBAC, and validate the result.- Provision the embedded user and assign a role. See Embeddings Overview.
- Generate a JWT for that user with
impersonateUser. The token expires after 1 hour. See Session Management for how to refresh it. - Construct the embed URL and add it to an
<iframe>, as described below. - Use the Viewer role to hide edit controls. See Controlling edit permissions with RBAC.
Construct the embed URL
Construct the embed URL for your Live App and append the JWT you generated in the authentication stage.- Take your original Live App URL and insert
/embed/before the app’s name and ID. - Append the JWT as a
tokenquery parameter. The URL should look like the following:- Original URL:
https://<customer>.wisdom.ai/apps/name-id - Final embed URL:
https://<customer>.wisdom.ai/apps/embed/name-id?token=<JWT>
- Original URL:
- Use this URL as the
srcfor an<iframe>in your application:
allow attribute enables voice input, camera, and clipboard features in the embedded interface. See Embedding Modes for details.
Controlling edit permissions with RBAC
Embedded Live Apps reflect the user’s RBAC role. To hide edit controls and prevent modifications in your embedded view, assign the user the Viewer role when creating them. There is no separate embed-specific parameter for this. See RBAC for Embedded Users for instructions on assigning roles and a full breakdown of what each role controls in the embedded interface.Sharing and access
For how access to a Live App is granted, see Share a Live App and Manage Access.Validation
To validate that the process worked, open the final embed URL in your browser. The Live App should load without prompting for a login. If you encounter an error, see Error Handling.Next steps
Embed a Dashboard
Learn how to embed interactive dashboards and visualizations
Impersonate User API
Detailed documentation for the authentication API