Skip to main content
This guide outlines the process for embedding a WisdomAI Live App into your application. Before proceeding, make sure you’ve reviewed the Embeddings Overview for authentication setup and security requirements.
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.
  1. Provision the embedded user and assign a role. See Embeddings Overview.
  2. Generate a JWT for that user with impersonateUser. The token expires after 1 hour. See Session Management for how to refresh it.
  3. Construct the embed URL and add it to an <iframe>, as described below.
  4. 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.
  1. Take your original Live App URL and insert /embed/ before the app’s name and ID.
  2. Append the JWT as a token query 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>
  3. Use this URL as the src for an <iframe> in your application:
The 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