Build with dbt Copilot betaenterprise
Use dbt Copilot to build visual models in the Visual Editor with natural language prompts.
Available in beta
dbt Copilot for Visual Editor is available in beta for dbt Cloud Enterprise accounts. To join the beta, reach out to your account team to begin this process.
dbt Copilot seamlessly integrates with the Visual Editor, a drag-and-drop experience that helps you with build your visual models using natural language prompts. Before you begin, make sure you can access the Visual Editor.
To begin building models with natural language prompts in the Visual Editor:
- Click on the dbt Copilot icon in Visual Editor menu.
- In the dbt Copilot prompt box, enter your prompt in natural language for dbt Copilot to build the model(s) you want. You can also reference existing models using the
@
symbol. For example, to build a model that calculates the total price of orders, you can enter@orders
in the prompt and it'll pull in and reference theorders
model. - Click Generate and dbt Copilot generates a summary of the model(s) you want to build.
- To start over, click on the + icon. To close the prompt box, click X.
- Click Apply to generate the model(s) in the Visual Editor.
- dbt Copilot displays a visual "diff" view to help you compare the proposed changes with your existing code. Review the diff view in the canvas to see the generated operators built by dbt Copilot:
- White: Located in the top of the canvas and means existing set up or blank canvas that will be removed or replaced by the suggested changes.
- Green: Located in the bottom of the canvas and means new code that will be added if you accept the suggestion.
- Reject or accept the suggestions
- In the generated operator box, click the play icon to preview the data
- Confirm the results or continue building your model.
- To edit the generated model, open dbt Copilot prompt box and type your edits.
- Click Submit and dbt Copilot will generate the revised model. Repeat steps 5-8 until you're happy with the model.
0