Requirements
To follow the steps in this guide, you’ll need:- An Omni connection with a configured dbt integration
Creating new dbt models from Omni queries
- In a workbook, open the query you want to use to create the model.
- Click Model > Convert to dbt model.
- Omni will convert the query to dbt SQL. Use the SQL editor to build the model, periodically running the query to check that the data is as you expect.
- When finished, click Model > Push to dbt repo.
- In the Push to dbt dialog, modify the dbt file name, git branch, and commit message as needed, clicking Push when finished.
- You’ll be prompted to create a pull request in the dbt git repository. Complete the pull request process, following your organization’s process.
Editing dbt models
Connection Admin permissions are required to edit a dbt model using the steps in this section.
- Click Develop.
- In the list of Omni models, click the model you want to edit. The IDE will open.
-
In the left navigation, click the dbt icon:

- The dbt IDE will open. Use the file picker to select the dbt model you want to edit.
-
Once the model is open, click the Open in workbook button near the top right corner of the page:

- The model will open in a new workbook. From here, you can the SQL editor to iterate on the model.
- When finished, click Model > Push to dbt repo.
- In the Push to dbt dialog, modify the dbt file name, git branch, and commit message as needed, clicking Push when finished.