Step 2: Create Data App and Embed ID
In this section, we will create a data app that will include the configurations that are needed to embed dashboard.
Last updated
In this section, we will create a data app that will include the configurations that are needed to embed dashboard.
Last updated
Navigate to the "Data" section in your app.
Look for the "Data Apps" option and select it.
Click on "New Data App" button. Provide the required information including naming it and configuring basic settings.
Access Control is crucial for managing what users can do within your Data App. Navigate to the "Access Control" tab within your created Data App.
Look for options related to "Metric Creation" and "Chat Mode".
Enable the setting that allows users to create metrics and select chat mode.
Select the Data Mart and provide the client column for each table.
Click on "Save" to save the settings.
Once access control settings are configured, click on "Embed Info" tab in the sidebar.
Refer to "Dashboard ID" for generating embed ID and refer "API TOKEN" for generating api token that will be used to generate "guest token" later.
Once API Token is generated, create "guest token" with "client ID".
Guest tokens are used for allowing temporary, limited access to your Data App.
Go to postman or any other API platform.
Set the URL as https://api.usedatabrain.com/api/v2/guest-token/create.
In the Authorization tab, select type as "Bearer Token" and in token field add the "API token" that you created in your data app.
You'll need to specify a Client ID, which is a unique identifier for the client or user you're creating the token for and the data app name that you created above in the body.
Click on "Send". The generated guest token will be associated with the provided Client ID and data app.
Use the guest token and the embed ID to test your embed.
Click on "Chat Data" button and start analyzing your data.
To verify your response, got to "Data" tab in your app, select "Semantic Layer" in the side bar, and click on the "Lab" button next to the datamart that you chose to create your data app.
Inside the semantic layer for you datamart, click on "Logs" tab. There you will see your response.