Develop with AI in the Studio IDE StarterEnterpriseEnterprise +
Leverage AI to develop dbt projects in the Studio IDE.
dbt Wizard in Studio IDE is the new and recommended way to develop governed dbt projects with AI. It uses your project context to help you develop governed dbt changes faster. Think of it like a smart AI agent that has a map of your project: instead of reading through each file to understand context, it can answer questions and help you develop and validate changes faster.
dbt also supports dbt Copilot, a separate inline AI assistance experience for single-click generation of SQL, documentation, tests, and semantic models in Studio IDE, Canvas, and Insights.
Prerequisites
- A Starter, Enterprise, or Enterprise+ plan
- A dbt account and Developer seat license.
- A development environment and credentials set up in the Studio IDE.
- Enabled AI features for your account.
dbt Wizard in Studio IDE PreviewStarterEnterpriseEnterprise +
Use dbt Wizard for autonomous model generation, refactoring, and multi-step workflows in the Studio IDE. It's grounded in dbt's native metadata engine — a structured index of your project's lineage, tests, model health, and semantic definitions — so it knows your data, not just your code.
dbt Wizard is accessible from the sidebar panel or in the Console section of the Studio IDE.
Availability and considerations
- Where it runs: Supported in the Studio IDE only, all deployment types. Not supported in VS Code or the dbt CLI.
- Engines: Works with dbt Fusion engine and dbt Core.
- Conversations: In the conversation list, open More actions menu (three dots) of the conversation you want to delete, then click Delete to remove one thread. Deleting the open thread clears the panel.
- Sessions: Refreshing the same browser tab keeps your active session. A new tab, or returning after closing the tab, starts empty.
- Chat history: Retained for 90 days only. Chat history isn't supported yet on single-tenant deployments, so save anything important before closing.
- Plan mode: Not supported yet. The agent doesn't show a separate plan before applying changes, however you can use the Ask for approval mode to approve each file.
- New chat: Click Start new dbt Wizard chat (top right of the dbt Wizard panel) to begin a new session.
Using dbt Wizard
Use the dbt Wizard panel to generate resources with quick actions, or use the agent to build and refactor models end-to-end with natural language prompts.
To use the dbt Wizard, follow these steps:
- Open your dbt project in the Studio IDE, then click dbt Wizard in the command palette.
- Start a prompt in several ways in the dbt Wizard panel:
- Quick actions: Use quick-action resource generation at the top of the panel to generate documentation, tests, semantic models, and metrics.
- Plain text: Type directly into the text field to describe what you want to build or change.
- Model context: Type
@to select a model as context. This scopes the agent's changes to that resource.
- Select the Agent mode button to specify the mode for the dbt Wizard. Available modes are Ask for approval (default) and Edit files automatically.
- Review the agent's suggestions and approve or reject the changes. You can also use the Start new dbt Wizard chat button to start a new chat session.
- Approve dbt commands when the dbt Wizard requests to run commands like
dbt compileordbt build. - Repeat the process to build or change more models.
- Commit the changes to your dbt project and open a pull request.
For more details on the dbt Wizard and how it works, expand the following sections to open additional information.
Bringing your own skills
You can extend dbt Wizard with custom skills to encode your team's SQL conventions, naming rules, and modeling workflows — so you don't repeat them in every prompt. See Skills for the full reference, including how to create, structure, and invoke skills.
Debug job failures
The dbt Wizard can investigate and troubleshoot dbt job and run failures directly from the Studio IDE. This capability is powered by the troubleshooting-dbt-job-errors dbt Agent Skill, which comes pre-configured with the agent — no setup required.
You can ask the agent questions and issue commands like:
- "What jobs have failed recently?"
- "What is the root cause of the job failure?"
- "How can I fix the recent job failure?"
- "Fix the job failure."
The agent notes when your local project state may differ from the job — for example, if you're on a different branch or have uncommitted changes — so you have full context before acting on any suggested fixes.
Timeout handling
When a dbt command run by dbt Wizard runs for more than 5 minutes, the agent automatically attempts to stop the command on the server before returning control to you.
Instead of hanging or showing a generic error, the agent returns a clear message that explains the command timed out and was aborted. The message also tells you whether the cancellation request succeeded. If cancellation fails, it's possible the command may still be running on the server.
You can then choose whether to retry the command, narrow the request, or take another action.
Fusion migration workflow
If you have access to dbt Wizard with AI features enabled, you can use the Fusion migration workflow skill. This skill can help you fix compatibility errors directly from the Studio IDE using dbt Wizard — no manual log investigation needed. It classifies every error, applies validated fixes automatically, and surfaces what's blocked.
The Fusion migration workflow is accessible through the dbt Wizard in the Studio IDE. If you're using VS Code or the dbt CLI, use the autofix tool instead.
- From the job list, click the Review job button for a job with a successful run.
- If you don't see the Review job button, enable the Show Fusion eligibility toggle in the job list.
- In the Fusion eligibility unknown for this job pop-up, click Debug in Studio with dbt Wizard.
- dbt redirects you to the Studio IDE and sets your personal development environment to Fusion.
- dbt Wizard opens and automatically triggers the Fusion migration skill with this prompt:
I need help fixing Fusion compatibility issues in this project. Please investigate and resolve any deprecation warnings or incompatibilities. Please use the migrating-dbt-core-to-fusion skill to guide this. - Review and approve dbt Wizard's permission requests so it can run the commands it needs.
- The dbt Wizard iteratively runs
dbt compile, reads the results, and applies fixes until it reaches a successful compile or encounters an error it can't resolve. If it gets blocked, it exits cleanly, explains what it could not fix, and creates and links to a markdown file summarizing all changes made. - When the project compiles with no warnings or errors, commit and publish your changes.
- After you merge the changes, wait for the job to run again or run it manually on Fusion.
The Developer Agent's fusion migration workflow triaging and fixing Fusion compatibility errors in the Studio IDE.For more on how to prepare your project for Fusion and what to do when you hit compatibility errors, see the Fusion readiness checklist and the Upgrade to Fusion guides.
Writing effective prompts
Good prompts include the scope (which models or area of the project), the intent (the transformation or business logic you want), and any constraints (naming conventions, materialization, tests). Here are a few examples:
For detailed guidance, patterns, and more examples across SQL, documentation, tests, and semantic models, see the Prompt cookbook.
dbt Copilot in Studio IDE
dbt Copilot provides single-click generation of SQL, documentation, tests, and semantic models in Studio IDE, Canvas, and Insights.
- Navigate to the Studio IDE and select a SQL model file under the File Explorer.
- In the Console section, click the dbt Copilot button to view the available AI options.
- Select the available options to generate resources such as using the quick-action buttons to generate documentation, tests, semantic models, or metrics.
The following sections describe how to use dbt Copilot in the Studio IDE.
Generate resources
To generate resources with dbt Copilot, follow these steps:
Generate documentation, tests, metrics, and semantic models resources with the click-of-a-button in the Studio IDE using dbt Copilot, saving you time. To access and use this AI feature:
-
Navigate to the Studio IDE and select a SQL model file under the File Explorer.
-
In the Console section (under the File Editor), click dbt Copilot to view the available AI options.
-
Select the available options to generate the YAML config: Generate Documentation, Generate Tests, Generate Semantic Model, or Generate Metrics. To generate multiple YAML configs for the same model, click each option separately. dbt Copilot intelligently saves the YAML config in the same file.
notedbt Copilot doesn't yet support generating semantic models with the latest YAML spec.
- To generate metrics, you need to first have semantic models defined.
- Once defined, click dbt Copilot and select Generate Metrics.
- Write a prompt describing the metrics you want to generate and press enter.
- Accept or Reject the generated code.
-
Verify the AI-generated code. You can update or fix the code as needed.
-
Click Save As. You should see the file changes under the Version control section.
Inline SQL editing
dbt Copilot supports a quick inline prompt window for targeted SQL edits directly in the editor. Press Cmd+B (Mac) or Ctrl+B (Windows) to open the prompt window within a model file, describe what you want to generate or change, and dbt Copilot displays a diff of the proposed changes — click Accept to apply or Reject to discard.
This is useful for scoped edits within a single SQL file. For larger or multi-step changes — like building a new model, refactoring across files, or generating YAML, review how dbt Wizard can help instead.
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


