All Products
Search
Document Center

Hologres:Build a ChatBI app with Dify and Hologres

Last Updated:Jul 16, 2026

Connect your Hologres data warehouse to Dify's hologres_text2data plugin to let business users query data in plain language — no SQL required. For example, a sales manager can ask "What were the top 5 products by revenue last quarter?" and receive a direct answer from your Hologres data. This guide walks you through the full setup: installing the plugin, configuring a model provider, importing a pre-built workflow, and connecting it to your Hologres instance.

What you'll accomplish:

  • Install the hologres_text2data plugin and a Qwen model provider in Dify

  • Import a ready-to-use ChatBI workflow via DSL file

  • Configure the workflow to connect to your Hologres database

  • Publish and run the ChatBI application

This guide uses a pre-built DSL file to get you started quickly. To build a custom workflow instead, see the hologres_text2data source code on GitHub.

Prerequisites

Before you begin, ensure that you have:

Usage notes

Dify runs all queries against Hologres using the credentials you configure. Because a single set of credentials is shared across all user queries, apply the following controls before you proceed:

  • Resource isolation: Use Serverless Computing to isolate query resources and prevent ChatBI queries from competing with other workloads on the instance.

  • Permission isolation: Grant only SELECT permissions to the Dify user, not write or admin permissions. This limits the blast radius if the user account is misused. For access control details specific to ChatBI, see the Configure plugin permissions in the Dify documentation.

Set up a ChatBI application

Step 1: Install the Hologres and model plugins

  1. In the Dify console, click Plugins and then click Explore Marketplace.

  2. Search and install hologres_text2data.

  3. Search and install Tongyi.

image

The hologres_text2data plugin is also available in the Dify Marketplace. Its source code is open source on GitHub.

Step 2: Configure a model provider

  1. In the Dify console, click your account avatar and select Settings.

    image

  2. In the left navigation pane, click Model Provider.

  3. In the Tongyi card, click Add API Key. In the dialog box, enter your API key. To get an API key, click Get your API key from Alicloud. See First API call to Qwen for details.

  4. Click Save.

Step 3: Import the workflow DSL file

  1. In the Dify console, select Studio from the top menu bar, then click Import DSL file.

    image

  2. In the dialog box, upload the DSL file: Hologres ChatBI with Holo Plugin-250422-v1.yml.

  3. Click Create.

After the upload completes, Dify generates the following workflow. It uses the qwen-max-latest model from Alibaba Cloud Model Studio by default. For available models, see Recommended models.

Step 4: Configure Hologres connection parameters

On the Orchestrate page of the workflow, click the HOLOGRES_TEXT2DATA node and the HOLOGRES_EXCUTE_SQL node. Configure the following parameters for each node:

Parameter

Description

Database ip/host

The endpoint of your Hologres instance. Example: hgpost-sg-xxxk3ovx003-ap-southeast-5.hologres.aliyuncs.com. To find the endpoint, log on to the Hologres console, go to Instances, click the instance ID, and find the Network Information section on the Instance Details page. See Endpoints for connecting to Hologres.

Database port

The port number. Default value: 80.

Database name

The name of the database you created. To find the database name, log on to the Hologres console, go to Instances, click the instance ID, then click Database Management. The database name is listed on the Database Authorization page.

Username

The name of the Hologres user. Format: BASIC$<name>. To find the username, log on to the Hologres console, go to Instances, click the instance ID, then click Account Management. The username is listed on the Users page. See User management.

Password

The password for the Hologres user.

Step 5: Publish and run

  1. In the upper-right corner, click Publish > Publish Update.

  2. After publishing completes, click Publish > Run to open the application and start querying your data in natural language.

What's next