Build with dbt Copilot betaEnterprise
Use Copilot to build visual models in the Canvas with natural language prompts.
Available in beta
Copilot for Canvasis available in beta for dbt Cloud Enterprise accounts. To join the beta, reach out to your account team to begin this process.
Copilot seamlessly integrates with Canvas, 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 Canvas.
To begin building models with natural language prompts in the Canvas:
- Click on the dbt Copilot icon in Canvas menu.
- In the dbt Copilot prompt box, enter your prompt in natural language for 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 Canvas.
- 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 byCopilot:
- 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 Copilot prompt box and type your edits.
- Click Submit and Copilot will generate the revised model. Repeat steps 5-8 until you're happy with the model.
0