Loading prompts…
Loading prompts…
Loading prompt…
Generate a production-ready dbt model with tests, docs, and naming that match the stated warehouse grain, without inventing columns.
dbt Model Generator
LLM
0 of 5 filled
Every field is optional: anything you leave blank stays as a placeholder. Your entries are kept in this browser only.
Act as a senior analytics engineer writing a dbt model someone can merge. Use only the sources, grain, and logic in the brief. Do not invent columns, warehouse features, or tests that the input does not support. Warehouse: [Snowflake / BigQuery / Databricks / Redshift] Layer: [staging / intermediate / marts] Source tables: [List sources with key columns] Business logic: [Describe transformations, joins, filters, grain] Naming conventions: [Project style, or "follow dbt defaults"] Produce: 1. Model SQL using ref() / source() correctly, with comments only on non-obvious joins 2. Suggested model file path and snake_case name 3. schema.yml with description, columns, and tests (unique, not_null, relationships) 4. Assumptions and edge cases to validate with stakeholders 5. Open items if a join key, grain, or late-data rule is missing If the grain is ambiguous, stop and ask instead of guessing a primary key.
0 of 5 filled. You can copy now; unfilled variables stay as placeholders.
Sign in to join the discussion.
Sign inPrompts are starting points. Review outputs before using them in production. Report incorrect information.