offdataai
dbt

AI dbt project generator

Describe your domain in plain English. Ship a complete dbt project — sources, staging, marts, schema tests, and seeds — for every major cloud warehouse.

  • From $1/month
  • 8 SQL targets
  • 174 templates
dbt build · freshcartRunning
src.orderssrc.customerssrc.productsstg_ordersstg_customersstg_productsdim_customerdim_productfct_order_linesnap_customerSOURCESSTAGINGMARTSsnapshot keeps SCD2 historyCompleted successfully · PASS=7$ dbt build · 0/7
Sources, staging, marts and an SCD2 snapshot, built in dependency order with schema tests on every model.
Watch the demo

See it in action

A narrated walkthrough, recorded in the real app.

The difference

dbt by hand, or generated

By hand

  • ○Write a staging model per source table
  • ○Decide materializations and incremental logic
  • ○Add snapshots and tests one model at a time
  • ○Invent sample data to see anything run

With offdataai

  • Staging, marts and snapshots generated together
  • Incremental facts keyed on their grain
  • Tests on every key and relationship
  • Seeds bundled, so dbt build runs day one
Your workflow

Where offdataai fits in your dbt stack

1

Validate the model

Grain, keys and SCD history are settled before any SQL is written.

2

Generate the project

dbt_project.yml, profiles example, sources, staging, marts, snapshots, seeds.

3

Pick the adapter

Snowflake, BigQuery, Databricks, Redshift, Postgres, Synapse, Fabric or DuckDB.

4

Push to Git

Commit to GitHub, GitLab or Bitbucket, optionally as a pull request.

Built for dbt

What offdataai writes for dbt

Staging models with light castingsql
1{{ config(
2 materialized = 'view',
3 tags = ['staging', 'raw__dim_customer']
4) }}
5
6with source as (
7 select * from {{ ref('raw_dim_customer') }}
8),
9renamed as (
10 select
11 cast(customer_key as bigint) as customer_key,
12 cast(email as varchar) as email,
Quality

Checks that guard the model

Tests that guard the model

Every key carries not_null and unique tests and every foreign key a relationships test, so a broken join fails dbt test instead of reaching a dashboard. Seed rows keep foreign keys valid, so the tests pass on the first run.

1$ dbt seed # load the bundled placeholder rows
2$ dbt run # build staging and marts
3$ dbt snapshot # start SCD2 history
4$ dbt test # run schema + relationships tests

Incremental

Facts, keyed on their grain

Snapshots

For every SCD2 dimension

Tests

not_null, unique, relationships

Seeds

Bundled, so dbt build runs day one

Capabilities

What offdataai generates

  • Sources, staging, and marts

    Lightweight staging models (one per table, explicit casts), mart models for facts and dimensions, and a sources file with freshness rules for your real raw tables.

  • SCD2 snapshots, incremental facts

    Dimensions marked SCD2 get a dbt snapshot. Facts are incremental models with a unique_key.

  • Schema tests included

    Every project ships with unique, not_null and relationships tests covering primary and foreign keys.

  • Runs before your sources exist

    Seed CSVs with placeholder rows that keep foreign keys valid (Pro and above), so dbt build passes without a source connection.

Overview

Why teams choose offdataai

app.offdataai.com
Platform-native DDL, ready to copy, download or push to Git

Platform-native DDL, ready to copy, download or push to Git

  1. 01

    offdataai generates a complete dbt project from your model.

  2. 02

    You get dbt_project.yml, a profiles.yml example for your adapter, naming-consistent staging models, mart models for dimensions and facts (facts are incremental), snapshots for SCD2 dimensions, schema tests covering uniqueness and referential integrity, and seed CSVs.

  3. 03

    Staging reads the bundled seeds, so the project passes dbt build on the first run; a sources file with freshness rules is ready for when your raw tables land.

Real output

The code it writes, not a sketch

This is the shape of what offdataai generates here, straight from the validated model. Copy it, download it, or push it to Git.

  • Sources, staging, and marts
  • SCD2 snapshots, incremental facts
  • Schema tests included
dbt project structuretree
1dbt_project.yml
2packages.yml
3profiles.yml.example
4README.md
5seeds/
6├── properties.yml
7├── raw_customer.csv
8└── raw_usage_event.csv
9models/
10├── staging/raw/
11│ ├── _stg_raw__sources.yml
12│ ├── _stg_raw__models.yml # tests
13│ ├── stg_raw__customer.sql # reads ref('raw_customer')
14│ └── stg_raw__usage_event.sql
15└── marts/core/
16 ├── _core__models.yml # unique / not_null / relationships
17 ├── dim_customer.sql # current rows of the snapshot
18 └── fct_usage_event.sql # incremental
19snapshots/
20└── dim_customer_snapshot.sql # SCD2

Generates native SQL and dbt for 8 platforms · connects live to Snowflake, Databricks, BigQuery, Redshift and Postgres

SnowflakeBigQueryDatabricksRedshiftPostgreSQLSynapseFabricDuckDBdbtSnowflakeBigQueryDatabricksRedshiftPostgreSQLSynapseFabricDuckDBdbt
FAQ

Frequently asked questions

Can offdataai generate a complete dbt project from plain English?
Yes. From a paragraph describing your domain, offdataai generates a full dbt project: dbt_project.yml, source YAML, staging models, mart models (dimensions and facts), snapshots for SCD2 dimensions, schema tests, and seed CSVs. Staging models read the bundled seeds, so the project passes dbt build on the first run.
Which warehouses are supported in the generated dbt project?
The project targets the adapter for your platform: Snowflake, Google BigQuery, Databricks, Amazon Redshift, PostgreSQL, DuckDB, Microsoft Synapse or Microsoft Fabric. The README and profiles.yml.example name the adapter; the models themselves are portable SQL with no platform-specific configs.
Does it generate SCD2 models?
Yes. Each SCD2 dimension gets a dbt snapshot (check strategy, keyed on the business key), and the dimension model selects the current rows from it. Data Vault hubs, links and satellites get hash keys and hash diffs through dbt_utils.generate_surrogate_key.
Does it generate schema tests?
Yes. The model YAML files carry unique and not_null tests on keys and relationships tests on foreign keys, pointed at the column each foreign key holds.
Does it generate seed data?
Yes. Every project includes a seed CSV per table, which the staging models read on day one. On Pro and above each seed holds placeholder rows (five per table) loaded in dependency order so foreign keys and relationships tests pass; below Pro the CSVs carry the header only. When your real raw tables land, switch staging to the sources file.

Part of the offdataai platform

The business context behind accurate AI answers, built from the data model up.

See all six stages →
  1. 01DesignLogical, physical and dimensional models.
  2. 02GenerateSQL, dbt, documentation and migrations.
  3. 03DefineBusiness metrics, semantic models and ontology.
  4. 04ConnectReal warehouse schemas and metadata.
  5. 05GovernDrift, impact analysis, tests and approvals.
  6. 06ActivateMake trusted context available to AI agents.

This page covers Generate. Every stage works on the same model, so what you design here carries through to the rest.

Accuracy starts with context

Give your AI agents context they can trust.

Design the model, define what your metrics mean, and serve that context to every agent and BI tool, on the warehouse you already run.

Book a demoGet started

Self-serve plans available