đŸ› ī¸
Developer docs
Start BuildingGuides
  • ✨Getting Started
  • đŸŽ›ī¸Self Hosted Config
  • âœī¸SSO Login
    • Saml Identity Provider (Idp)
    • Oidc Identity Provider (Idp)
  • đŸŽžī¸Framework Specific Guide
    • âš›ī¸Reactjs
    • âš›ī¸Nextjs
    • âš›ī¸Vuejs
    • âš›ī¸Angular
    • âš›ī¸Svelte
    • âš›ī¸Solid
    • âš›ī¸Vanilla JS
  • â„šī¸Token
  • â„šī¸How to embed?
  • đŸ›ī¸Multi-Tenant Access Control
  • Embed using iFrame (Not Recommended approach)
  • 🔑License Key Validation for Self-Hosted App
  • Test
  • 👩‍đŸ’ģHelpers
    • âœŗī¸Token Body
    • ✅Options
      • Custom Fiscal Year filter setup in DataBrain
    • đŸˆ‚ī¸Server Event
    • Embed Functions
    • Override Language
    • âœˆī¸Embedding Architecture
    • âœˆī¸LLM Architecture
    • ✨LLM Connectors
      • Open AI
      • Claude AI
      • Azure Open AI
      • Llama
      • Mixtral
    • 🆔Workspace Name
    • 🆔Dashboard ID
    • 🆔Metric ID
    • 🆔API Token
    • 🆔End User Metric Creation
    • Embedding APIs
      • Sync Datasource
  • Metric App Filter
  • Dashboard App Filter
  • Chat Mode
    • Step 1: Create Datamart and Workspace
    • Step 2: Create Data App and Embed ID
  • ✨Solutions Alchemy
    • Dashboards for Client Groups
    • Dashboard for Multiple Clients
    • Embedding: Role based Dashboard Filtering
    • Localized Currency Symbols
    • Manage Metrics
Powered by GitBook
On this page
  1. Chat Mode

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.

PreviousStep 1: Create Datamart and WorkspaceNextDashboards for Client Groups

Last updated 8 months ago

  • 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.

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.

Refer to "" for generating embed ID and refer "" for generating api token that will be used to generate "guest token" later.

Dashboard ID
API TOKEN