Skip to main content

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:

  1. Click on the dbt Copilot icon in Canvas menu.
  2. 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 the orders model.
  3. 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.
    Enter a prompt in the dbt Copilot prompt box to build models using natural languageEnter a prompt in the dbt Copilot prompt box to build models using natural language
  4. Click Apply to generate the model(s) in the Canvas.
  5. 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.
    Visual diff view of proposed changesVisual diff view of proposed changes
  6. Reject or accept the suggestions
  7. In the generated operator box, click the play icon to preview the data
  8. Confirm the results or continue building your model.
    Use the generated operator with play icon to preview the dataUse the generated operator with play icon to preview the data
  9. To edit the generated model, open Copilot prompt box and type your edits.
  10. Click Submit and Copilot will generate the revised model. Repeat steps 5-8 until you're happy with the model.
0