Using Omni's CLI to add AI context from external sources

Kylee Schroth · Friday Demos · February 20, 2026 · 4:34

An end-to-end demo of building data model + AI context via Cursor and Omni CLI. This means folks can bring help docs from external sources like Notion to instant build context into Omni.

Try it yourselfThe full week on docsaiclimodelingworkflows

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Hello, I'm Kylie. I am an SE at Omni and I'm going to be walking through how you can add context to Omni's AI models programmatically and with the help of AI, especially when that context lives outside of the data warehouse and maybe is not in the same structured manner that your data warehouse tables are. So, I'm going to kick off this process in cursor so that we can let this run um before I explain what this is doing behind the scenes.

  2. So, what I'm asking for here is for it to pull information that I have stored in notion and bring that AI context into a series of views and then also my topic. So, going to kick this off in cursor. Um, what I'm doing here is using Omni's CLI in order to um edit my Omni files outside of Omni.

  3. And the reason I want to use the CLI for this is because it includes things like validation, um, error checking, linting to ensure that, you know, I'm not making a whole bunch of changes that aren't actually going to run when I bring them back to Omni. The reason I also wanted to use an IDE like cursor that also has, you know, an LLM agent within it is so that it can um create a script for me that grabs all of the files that I've given it access to within an external tool like notion um and can programmatically add that to my Omnimodel files um without it needing to be in the exact structure that Omni accepts.

  4. So, here is a look into our MPM package. The CLI and the benefits of it are outlined a little bit more somewhere at the top here. Um, and then I'll also go into notion which is where these external sources are living for me. So, I have a um demo hub here. A lot of times, you know, our customers have um knowledge bases context that lives either in a data dictionary somewhere in Google Docs and sheets in a tool like notion.

  5. And a lot of times this isn't structured in the same way that these fields in the database are structured. So, you know, we have specific brand guidelines for, you know, our top brands in our e-commerce site here. Um, and so something like this is going to be managed in the brand field, whereas all these other things are at individual field levels.

  6. So, we want to be able to turn this into valuable context to make the AI model do better when we ask questions on our data. I'll also highlight some specific distribution center use cases here that I've outlined similarly in a unstructured way here. We also have some rules that we will bake in as well. So, I'm going to pop back over into cursor and see what it's been able to accomplish for me here.

  7. So I can just kind of go through these files and I get to see, you know, the individual um edits it's made and accept those. Um so we can see a whole bunch of context being put into our topic file. Um I'm going to accept these changes here. Um this is going to be a best the best way to add this unstructured context, you know, just in a text form here.

  8. But we'll also want some of this information at the field level for these fields that will actually need to be queried. And that's what will be in these individual view files. So, we have some information um on all of our fields that we've defined within here, as well as additional context on how this time to ship field is used and how it's used differently across our different distribution centers.

  9. If we jump into the distribution center view, we can see our name field, which contains, you know, all of our different centers here, is highlighting the different centers and what they're used for across the different brands that we have in our catalog. I'll lastly just kind of show um what has been added in the products table which is specifically around you know our premium brands here and how all of these fields should be used based on the information in notion.

  10. So what I can do from here is accept these changes. And once I tell Omni to sync my branch or I should say tell cursor to sync my branch, it's going to merge these changes with the branch that I already have open in Omni which is called my AI context branch. And so once I've asked the CLI agent to merge my changes into the branch that I have open, I can then play around with those in the form of, you know, dashboards, asking AI questions off of those and testing the results as well as making changes directly within the UI if I'd like to make any improvements.

  11. Um, and then I can go ahead and merge that once I'm ready for that to be in production and my testing is complete. So, I hope this gives a good overview into how to bring external sources to provide context into your Omni models that you have today.