dbt
Jump-start your experience with Qluent and continue managing Qluent via your dbt project.
By importing your dbt project into Qluent, you avoid duplicating work and continue to reap the benefits of dbt. You can manage context and data enabled in Qluent directly from your dbt source files.
To connect your dbt project, you'll need the following:
- The region where your subscription is hosted
- The Discovery API URL (See guidance)
- A service token with "Metadata Only" permissions
- The environment ID — we recommend using a production environment unless Qluent is intended for non-production testing
For testing, you may use a personal token. However, we recommend service tokens for live projects.
Getting Your dbt Credentials
- Log in to your dbt Cloud dashboard
- In the side panel, choose the account to connect and go to Account settings
- The region is listed under Account information
- Under Access URLs, copy the Discovery API URL, you will need to include
/graphql
to the end i.e.https://qh274.metadata.us1.dbt.com/graphql
- In the side panel, navigate to API tokens > Service tokens (requires Account Admin access)
- Create a new token named "Qluent" or a name of your choice
- Click Add permission and choose Metadata Only
- Save and copy the access token (starts with
dbtc_
ordbtu_
) - Go to Deploy > Environments
- Choose the desired environment (e.g., Production)
- Copy the environment ID from the URL, e.g.,
70471823443111
from:
https://qh274.us1.dbt.com/deploy/70471823457711/projects/70471823465011/environments/70471823443111
- If you haven't yet created a Qluent project, enter these details at app.qluent.com and click Next
Create a Webhook
To automatically update Qluent from dbt, create a webhook:
- Log in to your dbt Cloud dashboard
- In the side panel, go to Account settings
- Click Webhooks
- Click Create webhook
- Set a name and description (e.g., "Qluent" / "Automatically syncs metadata to Qluent project")
- Select Run completed under Events
- Leave Jobs as-is
- Paste the webhook URL provided by Qluent into the Endpoint field
- Click Save
- Copy the generated secret key back into Qluent at app.qluent.com and continue
The sync process
When you run dbt build
on your project Qluent receives a notification when the run completes and applies the changes if it was successful.
Enabling models
If you want certain models to automatically become enabled within Qluent you can do so by annotating the model yaml with a "qluent" tags
# ~/models/marts/fct_orders.yml
version: 2
models:
- name: fct_orders
description: Shopify orders from 2020 to 2025 containing x, y and z
config:
tags:
- "qluent"
columns:
- name: order_id
description: The Shopify order id
...
You can simplify this further by applying tags to entire model directories. See https://docs.getdbt.com/reference/resource-configs/tags