Get started with Quick BI ChatBI

更新时间:
复制 MD 格式

This tutorial uses Quick BI Professional Edition to demonstrate how to quickly start using ChatBI, a feature of Intelligent Q for conversational data analysis.

Important

ChatBI is a value-added module that must be purchased separately. It is available only for Quick BI Advanced and Professional editions and is not supported in the Personal edition.

Background

Imagine you are a sales operations specialist at a retail company. You receive an urgent request from your sales manager to analyze the net profit for the China division in December 2024, with a one-hour deadline. A data developer informs you that a lightweight sales summary table already exists, aggregated by day, region, and product category. However, there is no pre-built Quick BI dashboard with a fixed analysis path for this data. The developer can only export the data as an Excel file.

You plan to use either a Quick BI dashboard or the ChatBI feature to complete this task. After comparing the two methods based on target users, analytical flexibility, operational complexity, and depth of analysis, you decide to use ChatBI for this task.

Comparison dimension

Traditional dashboard

ChatBI

Target users

Requires data analysis skills

Lets business users analyze data using natural language

Analytical flexibility

Requires fixed analytical paths and pre-selected visualizations during the design phase

Supports dynamic, ad-hoc analysis requirements without predefined questions

Operational complexity

Requires configuring components, filters, and interactions during setup

Lets users ask questions directly without technical configuration

Depth of analysis

Relies on predefined analytical logic during the analysis phase

Enables deeper analysis through follow-up questions

ChatBI workflow

Analyzing data with ChatBI involves these main steps:

Step 1: Initialize your ChatBI account

An organization administrator creates the necessary organization roles for ChatBI and assigns them to your account.

Step 2: Set data permissions for ChatBI

A user with both workspace developer and Q&A configurator roles creates a dataset, enables ChatBI for it, and grants you query permissions.

Step 3: Analyze business data with ChatBI

You start a new conversation with a dataset for which you have ChatBI permissions and begin your analysis.

Step 4: (Optional) Tune ChatBI performance

If you encounter inaccurate results, you can tune your questions, the dataset, or the knowledge base to improve query accuracy.

ChatBI prerequisites

  1. Create and complete your account.

    You must have a registered and real-name verified Alibaba Cloud account. For more information, see Account Registration (PC).

  2. Activate Quick BI.

    You must have purchased Quick BI or applied for a free trial. For more information, see One-month Free Trial Description.

  3. (Optional) Prepare a data source.

ChatBI procedure

Step 1: Initialize your ChatBI account

Before you can use ChatBI for analysis, a Quick BI organization administrator must handle permission management. This includes creating ChatBI-related organization roles and assigning them to you.

Note
  • Only the Professional Edition supports custom roles for function permission management.

  • If you are using the Advanced Edition, custom roles are not supported. Only an organization administrator can configure ChatBI permissions.

  1. The organization administrator logs in to the Quick BI console.

  2. In the Quick BI console, the organization administrator creates the required ChatBI roles, as shown below.

    1. Navigate to System Settings > User Management > Role Management > Function Permissions to access the role creation page.

    2. Click Create Role, name the new ChatBI-related organization role, and save it.image.png

    3. Select the newly created organization role and configure its ChatBI permissions.

    4. The ChatBI-related organization roles are as follows:

      Organization role

      Created by

      ChatBI-related permissions

      organization administrator

      System-defined

      Adds users to the Quick BI organization, creates ChatBI-related organization roles, and assigns users to these roles.

      Standard user

      System-defined

      Can use the ChatBI feature on datasets for which they have permissions.

      Q&A configurator

      Custom role created by an organization administrator

      Configures ChatBI for owned datasets. By default, can use ChatBI on datasets for which they have permissions.

      Q&A administrator

      Custom role created by an organization administrator

      Manages all ChatBI resources and authorizations, including resource management and data permission management. By default, has permissions for dataset configuration and analysis.

  3. After creating the roles, the organization administrator assigns the appropriate ChatBI role to you.

    1. If you are a new Quick BI user, the organization administrator assigns the role when adding you to the organization under **User Management** > **Member Management** > **Add User**.image

  1. If you are an existing Quick BI user, the organization administrator adds the ChatBI role to your account under **User Management** > **Role Management** > **Role User**.

image.png

Step 2: Set data permissions for ChatBI

A workspace developer must first connect to a data source. Then, a user with both workspace developer and Q&A configurator roles needs to create a dataset, enable data preparation for it, and grant you permissions to query it.

  1. The workspace developer for the ChatBI workspace logs in to the Quick BI console.

  2. In the workspace where the ChatBI dataset will be created, the developer creates a data source.

    1. Method 1: If you already have analysis data, create a data source in Quick BI. For more information, see Create Database Data Source Overview or Create File Data Source.

    2. Method 2: If you do not have analysis data, you can use the demo data by uploading DEMO_Sales_Revenue_and_Profit.xlsx to the Exploration Space. The workspace developer navigates to the **Data Sources** page, selects the Exploration Space, and clicks **Upload File** to import the Excel file. Before clicking **Confirm and Upload**, verify that the field types are correct, especially for date and ID fields.

      1. Click **Data Sources** > **Exploration Space** > **Upload File**.

        image

      2. Upload the file.

        image

      3. Click **Confirm and Upload**.

        image

  3. The user with both workspace developer and Q&A configurator roles creates and saves a dataset, then enables its ChatBI configuration.

    1. From the **Data Sources** or **Datasets** page, the user selects the created data source to create, name, and save a new dataset. The following example starts from the **Data Sources** page:

      1. Click **Create Dataset**.

        image

      2. On the dataset editing page, click Done, Start Data Processing.

        image

      3. Click Save, enter a Dataset Name, select a Location, and click OK.

        image

    2. On the dataset editing page, go to advanced settings > Intelligent Q > ChatBI to enable the feature.

      image

    3. The ChatBI configuration involves three steps: entering basic information, assessing field quality, and setting quick questions.

      Step 1:

      Enter basic information

      image

      • Fill in basic information

        • Display Name: The dataset name is used by default but can be customized. This name appears to users in the ChatBI interface, for example, "Regional Category Sales Data".

        • Description: Add a brief description to make the dataset easier to find.

        • Dataset Type: The default is Detail Table. You can also choose other types like multi-metric periodic tables or key-value tables. The dataset type helps Intelligent Q understand the data structure and improves query accuracy. For this example's detail data, select Detail Table.

      • Click Start Learning.

      • Click Next to continue to the field quality assessment.

      Step 2:

      Assess field quality

      image

      • Field quality assessment

        • This step is optional. If you wish to skip this assessment or not apply the suggestions, click Next.

        • Field Quality: The system automatically assesses the quality of the dataset fields and provides intelligent suggestions for improvements to enhance query performance. You can choose to accept the recommendations and then click Apply and Relearn.

        • Assessment Time: The field quality assessment may take 1 to 2 minutes. You can proceed to the next steps, and a notification will appear when the assessment is complete.

      • Click Next to proceed to the quick questions page.

      Step 3:

      Set quick questions

      image

      • Quick Question:

        • Display Location: To help users get started, quick questions are displayed in the data preview window of the ChatBI interface. They can also be triggered by typing a forward slash (/) in the input box.

        • System Recommended Mode: This is the default mode, where the system automatically generates a list of suggested questions for the dataset.

        • Expert Custom Mode: This mode allows you to define a custom list of questions for the dataset.

      • Click Confirm and Enable to complete the ChatBI configuration for the dataset.

  4. The user with both workspace developer and Q&A configurator roles grants you ChatBI permissions for the dataset.

    1. On the dataset editing page, navigate to advanced settings > Intelligent Q > ChatBI Permissions and grant query permission for this dataset, setting an expiration date if necessary.

      image

    2. Different users have different needs, as shown in the table below:

      User permission requirement

      Required roles

      Dataset configuration

      Business operations staff only need to perform ChatBI analysis on a dataset.

      (Standard user, Workspace analyst)

      Enable ChatBI for the dataset and grant ChatBI permissions to the business operations staff.

      Data analysts need to configure and analyze datasets they own.

      (Q&A configurator, workspace developer)

      Enable ChatBI configuration for the dataset and grant ChatBI permissions to themselves.

      Data analysts need to configure and analyze datasets they do not own.

      (organization administrator, workspace developer)

      Enable ChatBI configuration for the dataset and grant ChatBI permissions to themselves.

      Data administrators need to manage ChatBI resources and permissions for datasets.

      (Q&A administrator, Workspace administrator)

      Enable ChatBI configuration for the dataset.

Step 3: Analyze business data with ChatBI

After an organization administrator assigns you a ChatBI role and a developer grants you dataset permissions, you can start a new conversation in the ChatBI interface to perform Q&A analysis.

  1. Log in to the Quick BI console.

  2. In the Quick BI console, navigate to **Intelligent Q** > **ChatBI**, select the dataset you want to analyze, and start a new conversation.

    image

  3. In the conversation, analyze the net profit for the China division using the "Regional Category Sales Data" dataset.

    Ad-hoc questions

    Instant answers

    • Examine the growth performance of the China division

      • Ask: net profit of China division in December 2024

      • Follow-up: month-over-month growth

      • Follow-up: year-over-year growth

    • Business Conclusion

      • In December 2024, the net profit for the China division was 192.2 million, a decrease of 45.62% month-over-month and 2.58% year-over-year.

    • Next Analytical Step

      • Compare this performance to the entire company.

    image.png

    image.png

    image.png

    • Compare against the company's overall growth

      • Ask: company net profit in December 2024

      • Follow-up: month-over-month growth

      • Follow-up: year-over-year growth

    • Business Conclusion

      • In December 2024, the company's total net profit was 1.413 billion, a decrease of 5.11% year-over-year but an increase of 23.01% month-over-month. In contrast, the China division's profit decreased by 45.62% month-over-month.

    • Next Analytical Step

      • Determine if the decline in the China division is an anomaly or part of a normal cyclical trend by examining the division's data trends.

    image.png

    image.png

    image.png

    • Analyze the growth trend of the China division

      • Ask: monthly net profit trend for China division from 2023 to 2024

    • Business Conclusion

      • The trend chart and data interpretation reveal a cyclical pattern in the China division's net profit. The profit figures for December 2024 are comparable to December 2023, with both months showing a significant month-over-month decline. The trend forecast suggests that net profit will recover in early 2025. Therefore, the decline in December 2024 is consistent with a cyclical fluctuation.

    • Next Analytical Step

      • Analyze the reasons for this cyclical fluctuation.

      • Click the fluctuation analysis feature on the trend chart to discover that the cycle can be attributed to specific product sub-categories.

    image.png

    image.png

    image.png

    image.png

    • Attribute the net profit decline in the China division

      • Ask: net profit share of each product sub-category in China division in December 2024

      • Ask: month-over-month net profit ranking of product sub-categories in China division in December 2024

      • Ask: details of Brand A Enjoy series in China division in December 2024

    • Business Conclusion

      • The analysis of product sub-categories shows that the net profit decline in the China division in December 2024 was mainly caused by the Brand A Enjoy series. This series accounted for 59.05% of the net profit and decreased by 49.02% month-over-month, corresponding to a drop of 110 million in net profit.

    image.png

    image.png

    image.png

  4. ChatBI feature highlights.

    Feature

    Description

    Icon

    Voice input

    Supports using voice input to ask questions.

    image.png

    Natural language parsing

    When providing an answer, ChatBI can show or hide the analysis process, including the dataset, relevant fields, knowledge base entries, and user intent.

    image.png

    SQL self-service query

    When providing an answer, you can view the SQL pseudocode used by ChatBI to understand the data processing logic.

    image.png

    Chart-based results

    When providing an answer, ChatBI displays dimension and measure filters, selects appropriate charts to visualize the results, and allows you to customize the chart type.

    image.png

    Follow-up questions

    After receiving an answer, you can ask follow-up questions. ChatBI automatically applies the context from the previous query, including dimensions and measures, to parse the new query, retrieve data, and visualize the result.

    image.png

    Trend analysis

    When answering, ChatBI can recognize a user's request to see a trend and displays the data in a trend chart by default.

    Trend forecasting

    After a trend analysis, you can request a forecast. ChatBI uses existing data and statistical models to predict short-term data trends with high accuracy.

    image.png

    Fluctuation analysis

    After a trend analysis, you can perform fluctuation analysis. You can configure the comparison period and business dimensions to analyze the factors contributing to changes in net sales profit.

    image.png

    Data interpretation

    When providing an answer, you can choose from different large language models for data interpretation. ChatBI can interpret the results and provide data findings, conclusions, and suggestions.

    image.png

    Proportion analysis

    When answering, ChatBI can recognize a request to see a proportional distribution and displays the data in a pie chart by default.

    Ranking analysis

    When answering, ChatBI can recognize a request to see a ranking and displays the data in a leaderboard chart by default.

    View data details

    When answering, ChatBI can recognize a request to see detailed data and displays it in a detail table by default.

Step 4: (Optional) Tune ChatBI performance

If you receive inaccurate results, this may not be a product issue. You can often improve accuracy by tuning.

  1. Tuning scenarios, benefits, and methods:

    1. Common inaccuracies include deviations in intent parsing, errors in intent parsing, and incorrect metric retrieval logic.

    2. Tuning can improve semantic parsing accuracy, enhance complex query handling, and reduce response times.

    3. Tuning methods include question tuning, dataset tuning, and knowledge base tuning.

  2. Examples of tuning methods:

Tuning method

Example

Question tuning: clarify query intent

  • Before Tuning

    • Ask: net profit trend of Brand A Enjoy series in China division in 2024

image.png

  • Issue and Fix

    • Issue: The result is a daily trend chart, but a monthly trend was expected.

    • Fix: Adjust the question to "monthly net profit trend of Brand A Enjoy series in China division in 2024".

  • After Tuning

    • Ask: monthly net profit trend of Brand A Enjoy series in China division in 2024

    • Result: You get the desired monthly trend chart.

image.png

Dataset tuning: create new calculated fields

  • Before Tuning

    • Ask: sales profit margin for China division in December 2024

image.png

image.png

  • Issue and Fix

    • Issue: The dataset does not have a "sales profit margin" field. ChatBI automatically used the formula: Sales Profit Margin = Gross Profit / Net Sales Revenue. However, the intended logic was: Sales Profit Margin = Net Profit / Gross Profit.

    • Fix: In the dataset, create a new calculated field named "Sales Profit Margin" with the formula Net Profit / Gross Profit. Save and relearn the dataset.

image

  • After Tuning

    • Ask: sales profit margin for China division in December 2024

    • Result: The query now uses the correct logic for sales profit margin.

image.png

image.png

Knowledge base tuning: add business-specific terminology

  • Before Tuning

    • Ask: net profit for China region in December 2024

image.png

  • Issue and Fix

    • Issue: The data contains "China" in both the "major region" and "region" fields. ChatBI defaults to filtering by area = China Headquarters, but the intended filter was major region = China division.

    • Fix: On the dataset editing page, navigate to advanced settings > Intelligent Q > Knowledge Base Management and add an entry defining "China region" as "China division".

      • Business Definition: Defines a common business concept, such as "sales progress" or "fiscal year". Limited to 100 characters, must be globally unique. You can enter frequently used terms here.

      • Data Interpretation: Provides a detailed explanation of the business definition and associates it with data metrics to help the model recognize and understand different metrics. Limited to 300 characters.

      • Synonym: Defines different names for the business definition used within the enterprise to help the model recognize various phrasings. Separate multiple synonyms with a semicolon (;).

      • Force Rewrite: If enabled, any questions containing the "Business Definition" or "Synonym" will be rewritten as the "Data Interpretation" content. Use this option with caution.

image

  • After Tuning

    • Ask: net profit for China region in December 2024

    • Result: The query is now correctly filtered by major region = China division, ensuring accurate results.

image.png

More features

Dashboard Q&A

Quick BI supports a Dashboard Q&A feature. In the dashboard preview, you can use natural language to interact with data and get instant answers. This feature makes data analysis accessible to everyone and introduces a new way to consume data. Learn how to use Dashboard Q&A.

Mobile ChatBI

You can use ChatBI on your mobile device to preview and select datasets, ask questions directly or use quick questions in the input box, engage in multi-turn conversations, and view your ChatBI conversation history. Learn how to use mobile ChatBI.

Q-build

Q-build is a core capability of Intelligent Q that focuses on one-click report generation, conversational chart creation and configuration, one-click smart beautification, and intelligent insight attribution. It helps you build reports and analyze data more efficiently. Learn how to use Q-build.