
AI Explo-to-Omni conversion tooling
The former Explo team shows off a bunch of new tooling to bring dashboards and reports from Explo instantly into Omni, of course with lots of Clauding behind the scenes.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Hello hello. Hello. All right, I'll start the intro while Gary sent us this up. Um, okay. Should be quick, but quick introcontext. So, Gary and I joined from the expo team. Thank you. Thank you. Um, so as part of that, we're migrating over 100 customers from the Xflow embed platform to Omnimbbed and so we're building some migration scripts.
Um there's really a few pieces to it. So one is moving the data model over. Xflow is all SQL based so it's basically pulling all the uh queries making uh Omni Yaml files and then it's actually going to try to create um what we call the report builder in Expo which is essentially the same as Omni's create mode.
Um, as you can imagine, our customers customers are making custom reports. There's hundreds, thousands of those. So, trying to see if AI can actually just make those for us. So, with that, nice. So, this is the uh Excel report builder. So, you can kind of see this looks almost like a an Omni workbook. There's tabs. It's at the top, it's at the bottom, and then the config is basically on the right hand side.
and just to sort of map it over. So essentially want to make that into a create mode workbook. So something like this. So yeah, convert this to an Omni create mode report. All right. So a little bit more context. So this is basically explos uh what we call a data library. So you can think of this as the equivalent of a shared data model.
Again, everything is just straight up SQL. So you'll see all these queries and we have our own sort of syntax here which is basically like variables. Um so we'll map these over to access filters or um attribute filters and then hopefully create the query views if needed and also topic files. And then this is the actual example that Gary's going to try to have Claude do in a second.
So step one is sorry I have a bunch of tabs here. Um, okay. So, this is not actually pulling down the SQL files. I'm not going to show that cuz it's kind of boring. Basically, we're writing all of the explo data sets into SQL files. So, pretty straightforward. Two examples here of two SQL files. And this is cursor, but you'll see a two.
Um, so one is pretty straightforward. It's just going to be models customer select star from that. Um, the second one has this sort of window function here. So we're actually going to try to create a query view and then reference that in the topic. So I have the script I'm just going to run takes about a second.
So in this case what it did was it output I'll show you here. So first off for this end customers SQL file it just made a topic and then for this latest report file it actually created the query view and then the topic on top of that and hopefully it worked. Okay, so this is the uh end customers topic file and then this is the actual query file and then topic.
So it actually did work pretty well and you'll see that it does some conversion in terms of like syntax. So we had our own customer ID stuff makes some omni attributes and then does this sort of like is null or team ID thing. U I know this isn't recommended not to use an access filter but they sort of use this instead of access filter.
Cool. So once this is done um ideally we can just sort of upload it into the data model. Haven't gone there yet. Uh maybe through get integration but yeah we should have all the YAML files that we can just push into the shared model. Okay cool. So uh the goal now is to take an explo customer report as you can see here.
So this is like the end user is going into an creating these reports. Uh and we have to like migrate all of these over to Omni. Uh and so in this case we have one with six uh views as you can see here. Um we can tab through them. You can get a sense for what we have.
Uh and if the demo gods are with us, it'll migrate to this folder here uh that we have in the Xlo omni uh workspace. Um and so this script does take a second. So I will just let it run. Can't see it either. Okay, cool. So I'll explain what it's doing in a second. But like highle uh methodology is in every uh repository you can have like a clawed context file that's called like claw.md and you can provide a context about the project.
So we have you know some highle context about migrating things from explo report builders to omni workbook dashboards. Uh in addition to this, we supplied it with information about the report builder configuration. What are all the enumeration values that could exist in the config? And then we also did that the same for Omni's workbook dashboard. The reason why this is important is because maybe in Xlo we define a bar chart as like barcore chart, but in Omni it's baren chart, just a silly example.
And so it needs to know how to migrate from like that spec uh to the Omnispec. So we did that and then we also manually created an explo report and then correspondingly manually created what we thought the desired output dashboard should be. We downloaded both of those configs and we pro and we put that in the cloud context file too saying hey here's a successful example of like what a migration looks like and then we built like a handful of examples uh in the explo report builder and not in Omni.
We would run all of those in the script and try to see what the output uh config looks like that was generated. We would save what was generated. We would upload it and open it in Omni. There would obviously be errors. We would go manually fix the errors and then we would redownload the config again. And then we would show Claude, hey, you generated this, but we actually want this other thing.
Tell us why you didn't generate what we wanted. Um, and then it would tell us, it would bullet exactly what it learned. And then we're like, great. now put this in your own context file. So you're kind of like teaching yourself how to like reinforce uh this migration essentially. So if you'll see a little bit lower down here, if I can find it, there's like some parts where like Cloud's like teaching itself like what it needs to do.
Like here's some like migration rules that it's just enumerating for itself. Um when it comes to actually running the migration, what takes place is the first step is we actually fetch the Xflow report builder config. Thank you Jordan for helping us add this yesterday really quickly. Usually we just like go into uh the database the prod database and just like run some scripts to just like pull down the actual configs but this automates it.
Uh we generate an omni document uh and then we move it to the right folder that we want and then this is where the fun starts. So uh we have the actual shared model pulled down into this repo uh with like the the git repo that we have it connected to. So we actually load a lot of the shared model because that's actually really important to determine how to actually map the explo data sets to the omni topics.
Uh and so then we throw that all into cloud. Uh and then we output the config just to have just in case if we need it later. Um the most common mistakes that we actually see is migrating like column names from exploit to omni even though we try our best to kind of manage that. So we added an additional validation layer.
So like here it caught like it you know dashboard name should actually just be name. There were four references. It fixed that. Uh and then we published it by uh updating the document in Omni. And so uh if I refresh here we should see there's now the dashboard version history which was uh what we had here with six different views.
And so if I click in hopefully it worked. And now they are all here.