ClarisTalk AI · the FileMaker AI podcast
Bonus Episode: Gabriel Woodger talks with Matt about amazing uses of AI and also JSON for 3D Rendering
Matt talks with Gabriel Woodger about a real-world example of AI to summarize complex invoices and projects so a customer can get a regular update of what's happening, and what is important. A great use case for sure. Also, and just as exciting, he shows incredible use of JSON for 3d rendering of kitchens, live and real-time in FileMaker. Check out his website: https://woodge.co.uk
Apple PodcastsSpotifyYouTubeAll episodes
Transcript
Transcribed by machine (whisper, large model), 7,994 words. Names and product terms are sometimes misheard; the audio is the record.
Claris Talk AI. We have a special episode of Claris Talk AI. I've got Gabriel Wujer. Welcome, sir. Hey. Hey. Good to be on the podcast. You and I met at a conference in Rome, I think, last year. Yeah, that's right. Yeah, Rome. I'm going to that conference again, and also Berlin. What are you going to this year? Yeah, I'm hoping to make it to either one or both of those. FM Rome was my first ever FileMaker conference experience, which for someone who's done FileMaker maybe as long as I have, it's maybe slightly unusual to not have been able to make one previously. No, it's actually pretty common, I think. I think there's a lot of people in the same boat as you. I invited you on really for two things.
One, you have an AI solution in production that I'm super curious about. And two, when I met you, you and I nerded out really heavily about JSON, which is one of my favorite things. Yeah. And you have an insanely cool use of JSON that I wanted to get into a little bit. Yeah, yeah, absolutely. Yeah, I definitely can get into the weeds with JSON and all the fun stuff you can kind of do with it. Let's start with your AI stuff, though. yeah so um i suppose a bit a little bit of background about what what i sort of do so i'm um sort of co-founder of a small sort of farm like a development shop and we have a vertical market solution which is for kitchen manufacturers so it's a kind of quite a big system that covers everything from clients crm through to a product catalog of different different kind of kitchen cabinets and bits and pieces. And we do sort of 3D visualization. We do exporting to CNC as well as all the kind of manufacture processes and finance and accounting and all that kind of sort of standard ERP stuff. So it's quite a big solution we've sort of been doing for a number of years. Yeah. So that part of it sounds like kind of a regular FileMaker solution. But the
other thing that you have, which I think is not usual, is the 3D visualization part. You can build a whole kitchen with hundreds of components and visualize it all the way down to the screw yeah and all of that is visual is is stored in a json object re-renderable when changes are made to the order and visible inside file maker yeah absolutely so so our whole thing is about like what we would call like parametrically sized cabinets so you so rather than it being just always being exactly the same size a kitchen tends to need to have things which are custom sized so that things fit in so as a result we don't really store the size of everything what we store is a calculation and everything is kind of refreshed kind of from there so as you create it on the fly there's probably per product there's probably thousands of calculations that have to happen to work out what the resulting size of that is because everything everything is is kind of it is kind of it's kind of um um dynamic so yeah i mean so like so if you've got like a space that's x wide and you've got uh you know four cabinets that have to fit in there um and then the customer changes it and they want five it has to measure the whole
exact width which might be like 2.62 meters and then redo the math to figure out yeah that kind of stuff yeah absolutely so you so you might say yeah so in in in in woodwork outside of the us everything is millimeters so we're yeah kind of down to the down down down to the millimeter but yeah everything needs to be dynamically sized which makes things a lot more complex and it makes filemaker a really great kind of tool so yeah i i can i can quickly give um a little sort of demo um if people want to see people who are on youtube um i can sort of give a quick um sort sort of visualizations, it might kind of help explain what's sort of happening. So yeah, this is our system.
Nice image made by Dali here, which might get into the AI conversation later, but I asked for a nice visualization of a piece of software for kitchen designers and it managed to bring all these bits and pieces kind of together. - Yeah, screen sharing stopped there. - Oh, are we on there, can you see? - I can't right now. - You can't. And then that stopped, I think. So people who are listening to the podcast, you can go to YouTube and search for Claris Talk AI, and you should find it and subscribe. There we go. I see it. There we go. Okay. So, yeah, this is the sort of dash. This is the dashboard kind of of the site. So, yeah, here's a nice AI-generated image. So I'm going to go into my catalog.
I'm going to have a look at a particular product. So here, this is maybe an 870-millimeter-wide sort of floor cabinet. So my kind of cabinet visualizer, I'm just going to wipe it up in here, and this is all sort of in real time. Yeah, so like a fraction of a second that loaded, and now you're dragging it around in real time. Yeah, so this is kind of loading, and actually what we can see, each of these elements, you can see a little 3D view. So this is a web viewer inside of a FileMaker Windows. These fields and buttons at the top are all FileMaker. at the bottom here and everything inside of this box in the middle is all drawn in a web viewer. It's done in a way that the user can't really tell.
But what we might see is we might see something like this panel on the side here. If we click this, this is driven by some calculations. This is the height of the product and then it's a calculated width. Right. The web viewer pops up a regular FileMaker card window kind of thing. Yeah. So the window in here, this is our FileMaker, these are portals and fields, and bits and pieces we might be expected to. But obviously, inside of here is all an entire 3D view. As you might in a 3D application, you can turn off different bits and pieces, we can rotate the model. Sweet. What we can actually do in here is if we look at the width, let's say we wanted to make this narrower, we'll change this to 500.
This is now going to think, Maybe a second and a half. Now, the doors are smaller. These are resized. We've got some elements in here which are just boxes, effectively. This is going to be a piece of wood, and some things like the handle in here. You can see the handles in here. They're actually a 3D model which is brought in and loaded into the model. How much Jason is this? This is probably, if we look at the total Jason, It's probably around two megabytes worth of JSON, which includes things like the textures, all the actual dimensions and other bits and pieces. So if I quit really quickly, if I load my script debugger and refresh, we'll have a look really quickly at what happens.
We load our web viewer, open a new window, go off and do it. And in here, we're calling, loading some information from the context around the size of the product. And then in here, we're actually then loading a custom function into here, which is loading in our actual kind of product JSON. So if we go down here and look at the kind of product JSON, you can see it here. Yeah, yeah, yeah. That's pages and pages of JSON. Yeah, this is. So it's with base64 encoded stuff too? yeah so so it's a combination you'll see at the top here is a kind of you know you might recognize there's an array of items inside of here we've got objects there's actually the 3d scene so this is actually a json object which in here yeah this is all base64 encoded kind of data so so for things like those 3d models that's coming in as base64 encode data some pieces like that and then we'll have some more items and some other um kind of bits and pieces down here we can see actually pharmaker is actually pretty decent at kind of rendering that up there we've got a couple of bits and pieces it loads into there and then it's going to write that out into the actual web viewer and set the kind of html content in here so actually when we look when we look at what's
happening inside of the actual web viewer itself if we're looking here at the source we can see we've got a bit of web code in here and then inside of here is all the data that has been written in by FileMaker so we might see this particular shape and it literally goes from moving a line moving a line moving a line extruding it by a particular amount applying a rotation applying the mesh onto it all those kind of bits and pieces yeah it looks like about three or four thousand lines of code and this is just for one cabinet right so you can also visualize an entire kitchen with many of these cabinets a bunch of different products like refrigerators and stuff like that okay cool so yeah yeah absolutely so so what we might look at this is just running in a web viewer just for kind of speed oh yeah yeah a whole room a whole room and actually in here what we might do is draw start a floor plan we're going to draw a room of a particular shape like this, which I'm drawing.
Mm, weird lines, normal. Yeah, we can resize this if we need to. And then in our 3D view, we're able then to see the new room I've drawn, take our actual kitchen products, drag them around. Zoom into the tile on the floor. This is cool. So where does the AI part of this come in? I guess we actually just covered the really sweet JSON stuff I was going to talk about later, but At the moment, I haven't found a way to do any cool stuff with this, with AI. I'm sure there is some useful stuff to be able to do with it. I think it'd be really cool if you could work out if things overlap each other, so if there's a problem with the calculations, if something's the wrong size, then giving it a big chunk of something and kind of been able to actually do it from that perspective would be quite useful.
But actually the AI part of this, where I kind of started with this was actually on our issue tracker. So we have an internal issue tracker where clients raise issues and other bits and pieces. But actually what I kind of thought is, okay, we've got an issue here which has been raised. Here's a bug. Here's a bunch of screenshots. here's some history that's happened across it, and here's some tasks that need to be done. Right. People might want to get an update about what's going to happening. If you try and put all of this into an e-mail, it's quite a lot of information and it's not super clear actually what's happened. One of the things I did is just the chat GTP integration, which have this just generate a summary of the issue.
So I'm basically taking all of the text, doing a sort of looking up the list of the history or whatever, sending it to chat GTP with a prompt template and say, can you give me a summary of what's happened on here? Yeah, so that's cool. So it's like all of the interactions with the customer, all of the responses you've had, and then it gives you like a one sentence or one paragraph summary. The support ticket initiated by admin for the client pertains to new test, bug currently in the internal testing, blah, blah, blah. - Okay, cool. - Yeah, so it's obviously, this is a, you know, it's a relatively sort of simple implementation where we're using kind of chat GTP.
So obviously it's not the most complex thing, but we can have a quick look at what happens in here. So obviously we kind of go off, get the stored version about the information. And the main thing in here is just this variable in here, which just says, get a prompt. I look at what the function is in here it basically says can you write me a summary of this and then we've got some fields which are referenced and we've got it in here and then basically I've got an execute sql which says right well get me all of the timestamps in here and kind of because we want it to sort of say activity who it was by in details there's a nice little hack you can do not a function of sql where you can kind of insert bits of text in between each of those values.
So we can say this bit is the activity, this bit is who it's by, and this bit is the comment to steer the model in terms of what's actually happening. Then we can see, we can provide a list of all the tasks, and then we can at least provide the file name and the description of the screenshots. This is one page of code. Yeah, exactly. This took me probably, I don't know, an hour and a half, two hours to implement and stuff like that. This actually, it then goes off, gets the response. Yeah, normal API response. It sends the whole query with all the data and then gets response. Okay. I think that's a use that a lot of people are going to find useful. Take all this data that I've got and Interpret it, summarize it, maybe even say, you know, what's the time frame?
What are the things we're missing? Compare this one to other things that we've done, stuff like that. So are there any other uses you've done so far? And what's next? Yeah, so in there, what that's generating, sorry. Live trying to do a code demo is never all good. Always, always fun. The prompt. So yeah, I mean, effectively, what I sort of found, I looked at various different ways of getting the data in a format that these language models are going to be quite good at kind of responding to. And I sort of found that actually, you know, having these keywords like activity and then the details and things like that is where I sort of had to kind of tweak it to try and get it to understand what information it's been given so that it can actually sort of summarize that.
So, rather than just listing the data, it was actually putting, "Well, this is a description. This is a status. This is a priority." And it's actually quite clever in terms of if info is missing. If you say like, "Release date," colon, and then a space, it goes, "Well, we're missing a release date. Maybe that's a piece of information we should actually have." So I sort of started with that, and it was kind of quite good at generating just a summary, which is what you might expect, you know, like summarized. It makes me think that that would actually be a pretty cool kind of a dashboard thing at the top level of the project or top level of the customer to say, these are the things that are missing.
You know, we usually frequently all hard code stuff like that and say, you know, put an alert if this bit of data is missing. But using ChatGPT or using some sort of a LLM integration, you could get a much more meaningful summary of what is going on, what might be going on. How do you consume that summary? Who's the target audience for that summarized text? So in this, the primary idea for this is an update email to say this is what's happening. we can say whenever something changes on um um on on an issue create a short create a kind of short summary so i have like an email update which is formatted and says here's the bug blah blah blah blah but they end up being really quite long and you have to there's there's not really an automated way to say well actually the most recent pieces of information are the are the most interesting ones the stuff that happened a certain amount of time ago isn't is not as is not as it is not useful so actually being able to do that so as a short little snippet that you can see right those issues that i have assigned to me or those issues that i've raised here's an update about
what's what's what's what has happened and what sort of has well you know that's cool kind of on there so that was the very kind of first thing i got into then then i sort of thought well actually that would be quite useful at an order level so that's a task with issues and other bits and pieces so um this is all sort of sample data so it's all sort of says testing the bits and pieces like that but actually on an order so this is one of the orders we have in our system we might have um yeah normal stuff line items products a bunch of line items We might have a bunch of files attached, we have some tasks that need doing, got some billing, other bits and pieces. We've got various sort of tasks that kind of happen in here.
Yeah. Quite involved. There's like eight tabs right there. Yeah. Yeah. There's a whole load and these may or may not, because as a vertical market solution, all our customers use this in quite a different way. They've got loads of different options and and they're very, very different, and their billing templates are different. So everything then becomes very, very hard to custom code anything for any one customer because you can't put the business logic into the system because otherwise it doesn't work from one company to another company, which is where I think AI is great because it can actually take that information you give it and rather than having to say, right, well, if one task is late, something else if this if these three things then that's important and if not that's important from that right yeah yeah so really kind of analysis of the status yeah so order insights that's the that's the feature that we're talking about here yeah so i've sort of kind of named it order insights as that's kind of is it sort of just sort of tell me what's happening with that with that order are there any issues is anything is anything that's kind of late so in here i'm kind of sending a bigger payload of data to the to to kind of chat gtp yeah because there's more things involved in
the order and that takes a little bit a while a little bit of time for that to be submitted and then and then kind of brought back i know chris would ask like the token size like how how close are you are you to the limits of what gpt can do and there's of course other models that handle like a million uh do you i don't know yeah yeah because because the more information you send it takes a little longer to get that response back well it also has a ceiling it can only take a certain amount of data yeah right now yeah absolutely and and on on an order in our system we might have maybe 30,000 records across different tables. So you can't really currently, it's not easy to send just all of that information.
So you have to be a bit kind of clever about what stuff you take out and you only send it stuff that may be relevant because if you send it. Well, yeah, let me summarize this for people listening. So it comes up with some bullet points, right? Based on the provided information for the order, these are the data inconsistencies, scheduled completion date for the order, and the delivery date are both in the past. Manufacture process scheduling, all manufacturing process have started. And so that's like something that's good. Completion status processes are marked as late with a completion percentage of 0%. Order status versus progress. This is really deep, you know.
um yeah this and it's and it's what i found with the chat gtp4 model over the maybe 3.5 version is that the 3.5 would sort of say this is missing a date that is here and it was a bit more it was a bit more parroting back what you told it was this is a bit a bit more actually insightful because it's sort of saying well actually there's no indication that anything's happened you know this this or this order even though the completion the overall completion is at five percent but none of the tasks are completed so something is wrong there and and it's kind of right in the yeah something is wrong actually if i look at my my it thinks my order is 5.4 but actually nothing hasn't been done yeah yeah yeah how many years of development you have in this in the overall system yeah this is system is probably seven years old i would say i think we've had it in in in in market sort of fall so as a result it's quite big there's quite a lot of kind of stuff in but actually be able to get in there and actually the fact it comes back and it's it's it sort of seems deaf but this is this is marked down so it comes down with like a bullet pointed list oh sure and bits and pieces in here and it just makes it really nice really nice and really simple to kind
of actually highlight that um that that that that kind of information because yeah actually one of things i want to do next with it and that works great for an individual order is then say well actually given all of those order summaries which ones need the most attention give me the top three that have something wrong so taking that individual you know kind of issue feeding that in and then saying right you know what i'm the production manager i'm the ceo i want to see a dashboard right what stuff needs my attention first and i think that's a kind of a way of using multiple steps to kind of get a whole load of information that's too much for one human to look at yeah down to a snapshot of picking things that you know that's inconsistent that's not right but then i actually tell me overall which of my orders are going to cause me a problem because you know they're massively over over overlaid right yeah i could see that i could see the huge value that this would give to your customers uh yeah and then you can have them just like have it just all run on like at night or whatever they can just run uh i would guess that they do they have their own api key or if they share yours and you build them for it so so at the moment they use they use ours
but there's there's also the kind of the commercial aspect of it which is obviously every query you do to open AI costs an amount of money. For these of this sort of size, it's maybe four pence, around maybe six cents in terms of U.S. dollars, which isn't that much individually. But if you've got $500 on a system and you want to run those every single day, all of a sudden that starts adding up to actually a significant amount of actual cost for that. obviously for the customers they need to see the return on investment they sort of you know you can either eat that cost yourself as a supplier and say well as part of the overall system yeah but someone could sit there and press that refresh button you know oh yeah yeah exactly or you could have an algorithm to say hey you know have it tuned to not spend a certain too much money you know yeah yeah exactly it's yeah it is one of those things and obviously the with the context window the more data you're sending the more expensive each of those each of those calls are if it's a short one if it's a few sentences then it's not that many it's not that many tokens and not long tokens forwards and backwards but yeah i think there's almost a line where using
like a an off-the-shelf model like like like chat gtb is probably the more expensive way of doing it probably using an open source one and training it yourself a little bit more would be better for scale i think yeah and then running like your own aws server to process all that for all the clients kind of a thing yeah yeah exactly and then being able to train that model yourself based on well actually most of our clients we there's a whole load of that model 99.999 of the information in there is not relevant to us at all so right there's no value to us you know being able to ask what the sports result is for something well yeah but i mean like like chris talks about it's you don't you don't ask chat gpt for the fast facts about your data you're using the engine to process um and and put it in language that's clear and to be able to know what to summarize but all of the facts are in your data so it's only looking at that it's not looking at at sports scores and other stuff like that for to know what is true yeah yeah absolutely because i think where i'm at is i sort of feel like i'm just dipping my toe in the pond a little bit with
this like these are these are probably some of the maybe simpler things to do in terms of doing a an insight to say right of this data what's you know what's kind of important obviously yeah well i mean the thing i really see with this is this is going to be super useful to like so many people to do that level of stuff and such great utility to solutions. Yeah, absolutely. Yeah, I mean, and all that kind of vectorized search as soon as we're able to look at actually, well, these tasks and these queries and being able to do that inside of FileMaker. Obviously, sort of at the moment, the tools I've found within FileMaker to make it work are, you know, execute SQL is quite good because I don't have to write a custom script to go off to layout one and do this, layout two and layout three and do that.
Also, what I've done is those prompt templates are customer specific. So I've had to put in a load of the commands at the front that says, it doesn't matter if this happens at the same time as this. It's not a problem that the tasks happen before this because otherwise, what it comes back is it doesn't really have a lot of context for that. They're obviously specific per customer. So it's kind of, there's a bit of prompt engineering in there per customer to make the queries kind of return information that actually is, would be something they would be concerned about. And that's that kind of tweaking per, per, per, per kind of customer. And obviously FileMaker is great for that in terms of being able to have, you know, a bunch of text in a field, which gets evaluated as a calculation.
And then you can say, right, well, actually this customer doesn't use this part of the system. So let's just not ever pass that to it, because then we won't get any information back about that. And that, which allows you to then sort of get that signal to noise, you know, level at the right level, where it's providing a useful kind of amount of information to the customer, but it's not telling them stuff they don't want to know about. Yeah, yeah, cool. Yeah, it's, and it's also one of the things I found is, it's quite difficult to make it say there's no problems. Because you're saying, what, what are the issues any, you'll just find smaller and smaller as it gets better.
Okay. Yeah. Yeah. Because because my first thought was, oh, you can keep on doing it until it says there's no issues. Right. That's gonna work. And that was a kind of when it initially pitched it with the clients, and we talked about it, it was like, oh, yeah, it'll highlight issues until there's none left. Which is why of pivoted it to talking about insights rather than maybe issues, because actually, if nothing's late, it will say, well, this process is currently on time, but it might be late in the future. Because it's looking for something to return. And I think that's kind of almost something we need to do an arse over the FileMaker thing is, if you keep asking questions, it's always going to provide you an answer yeah so you have to sort of train it on what are the what's important and what's less important for issues that are going on so i can like highlight things in red like you know a really really key date was missed or something like that yeah i also love the idea of like summarizing this and using it for emails it's pretty sweet um so what's next what are your next areas that you think you're going to be using it for yeah so one of the things i want to kind of really get to is if for us setting up product catalogs is very time consuming and a very kind of
you know laborious processes if you think about you know a manufacturer may sell 500 types of cabinet that are all slightly different and we need to make a work out all the information for where they what's the calculation for what size they are and with a lot of companies you sort of as you probably know, you go in and you say, right, well, what products do you sell? And they go, oh, we've got these 100. Okay, great. Yeah, we'll do this. And then you sort of go, and then they come back in about six months later and they go, oh, well actually there's this other spreadsheet over here that's got a whole lot of stuff that we didn't really think about. And actually being able to tailor those tools to actually saying, well, here's what we need to get into our system to get it kind of configured, but actually using the AI on that side, if I think is where there's going to to be a huge amount of power because we can sort of say well here's what here's the information we have and here's an example of what one product on the data should look like yeah yeah yeah so if i if i if i understand this is like taking a look at vendor data right so like for your customers uh who are building these custom kitchens if you will um they have many different vendors who sell different things so eight of them might have you know high-end refrigerators three
of them might have a really good tile six of them might make cabinets blah blah blah so you could use an ai engine to sort of collate and compare all of those things together and recommend a set of them that's the ideal set for for what would work for a project is that where you're yeah yeah kind of like that where you're looking at here's what they sell but a lot of it is working out the calculations because a lot of our system is about working out what is the height width and depth of every single bit that needs to be cut for this which you know can be foul you know tens of thousands of individual pieces for a kitchen oh yeah which across which across lots of orders and all of those have to be kind of correct and at the moment there's not really a way other than having someone with a big spreadsheet to go through and check that they're all you're not not going to you're not going to make them and go and measure them yeah yeah yeah did these turn out did these turn out the right size so it's almost generating those calculations to say you know this piece is the height minus this bit or whatever and you can sort of generate those and actually generating that information because it's quite structured in and you can see it should end up like this and look across all of these and tell me anything you know because
Because if one component is 10,000 times bigger than all the other ones, a human has to look through and see every number, whereas a model could look and say, "Well, actually, these are all one centimeter to a hundred centimeters. If one of them is 15,000 centimeters, that's probably something that it might be right, but maybe flag that up to kind of have a look at." Yeah, exactly. Yeah. That's not the sort of thing that is very easy to write a search for because it's kind of the same. And I mean, if you have a visual, like, I mean, you have the visual representation. But as you were saying earlier, like knowing if there's going to be overlap and there's a lot of other details that might that are going to be really, really hard.
So I am working on a vertical market and a ton of the stuff that we want to do are exactly kind of the things that that you're wanting to do. And also there's some stuff that you're already doing that I definitely want to be doing. So that's how I know for sure that there's a lot of utility in this for many solutions out there. That's really cool. It's really cool. Yeah, because I think for most systems, I think if you're building a one-off solution for a customer and they tell you, here's what we've got, you have to tailor it to their business logic. And a lot of companies will take an off-the-shelf product that they have and tweak it kind of for them. and i think the requirements for vertical market are kind of so different in that because the because so many organizations work in different ways and you're not going to change every company in the world to work the way your system works yeah you need to make it flexible and the the downside of making it flexible is you then have to have so much business logic in the system as data rather than just in a script or this is what happens when a when an invoice is sent it needs to be chased in 30 days and if it's more than 60 it's late or whatever right that is always a big issue is that onboarding of how you get that client's business logic
into the system or you get it configured to behave the way that they wanted to do and i Now, imagine this is the same across all the vertical market solutions is actually the hard part is always kind of getting people over the line and having that work to get it set up. Because if your data in there isn't right or it doesn't work the way you need it to, then, you know, there's pushback and people go, oh, well, we'll stick with our spreadsheets that we have and we know. Exactly. The devil you know. Yeah, yeah, or we're using monday.com and it doesn't work and, you know, it's 50 million things in there and, yeah, it's kind of like that. But I think that onboarding process is something where, yeah, that's where there should be some real value, not just in the solution itself to do that with the client, but actually as an organization, as an SBA file maker kind of reseller, And then how good an experience we can provide to the customer, how we can onboard them is a really key thing.
And I think for the success of the platform, that's on us to try and make sure that we're making FileMaker look good and making it actually that people, that's a solution people want to use, even if they don't know it's FileMaker, making sure that is smooth and easy for them. That's so kind of key. Yeah. deploying this all with FileMaker client, right? There's no no web direct. Yeah. At the moment, yeah, the system does work in web direct, but we we tend to, we tend to push them towards kind of desktop. A lot of farmer could go so we do iPads and, and iPhones for scanning in the warehouse and other other bits of pieces like that. Right, I think full, the kind of full fat FileMaker is the best, it's the most richest kind of version of it, isn't it?
Yeah, it's kind of... If the server's local, I mean, this would be really rough on a WAN, I'm guessing. Or maybe not. It depends, really. It depends how you architect it. So we do a lot of perform script on server. So of a lot of that stuff that are sort of shown, that's all running on a server. For me, my dev server is Ireland or somewhere, I think it is. It's not super local, but as a result, because a lot of customers, if they're in a warehouse somewhere in the UK, all the industrial states seem to have terrible internet connection, so you have to offload a lot of as much stuff as you can do to happen on the server and be able to kind of come back. Which is where I think a lot of the recent stuff, like a full script on server with callback, That's been great. We've implemented that.
We had some stuff where people had to wait for a big import to happen, whereas now the import can happen, and then if they're on that layout and that import is finished, you update to say here's now your new found set of products that have been . Do you have any ? With the callback thing, I've always wondered what happens if the user leaves, goes to another layout, there's another big script that's running, and what happens to that callback script when it gets called? And I know that there's going to be some solutions to that, but is that something you've encountered? Yeah, you just have to check the context, which is always the way, isn't it? So the way I do it is basically, when the script is triggered, you send some context information about where that was called from, and then when you get that back from the customer, only that you check the context they're not in that context then doesn't matter you don't need to update it but if they are if they're on an order detail page and they've imported a load of products then yeah update update their kind of fan set because we have we have one customer that makes fire doors and we thought oh this great fire doors a door is a bit like a part of a kitchen that every cabinet has a door how hard can it be to make fire doors it turns out
out that every single every single product has 200 options about 220 odd individual things that can be one of a number of values well yeah and if you think about it what an order might be for hospital 1500 doors and each of these have 200 options which all determine what happens and And the acoustic rating, the fire rating, the hygiene rating, what size and location the glass panels are and all that type of stuff. We have a customer who's regularly importing orders of 1,500 doors, each with 200 parameters. That's where having them sit there in FileMaker and wait is a long time. Goes off on the server, comes back, lets them know once it's done. That's one of those use cases for with callback.
And in those instances, we're making, you know, 100,000 records for one particular order, which... Yeah, which server side is fast, right? A minute. It could be faster, but it's definitely faster than doing a client side. Yeah. Night and day. I remember we were talking about the backwards and forwards hopping about when a new record is created, when we spoke last time. It's... Yeah. Yeah, like at one of the conferences, I was asking Clay, like, what is the process that happens? Is it just one call? And it's not. It's like three, four or something like that to create a record. Yeah, to say, here's something you can make. Here's something for you to make a record.
Okay, now I've created that record. Just want to double check what's that record. I'm making sure that, yeah. Right. It's like, okay, now the record is made. Send me the information. You know, so lock, write. Yeah, there's a lot. And on a WAN, if you've got significant latency, that's a long time. Yeah. And if you're making 10,000 records or 100 records, it's a really, really long time. So these are the, you know, this kind of basic operations, I think, are a little bit rough in FileMaker. But on the other hand, if you do a search, right, if you've got, you're on a layout with, I don't know, a million records in it, and you do a search that yields a result of 50, that happens instantaneously, even on a WAN connected.
It's very, very fast. Yeah, yeah. It's kind of knowing through war wounds what's fast and what's slow, isn't it? I've done this before, and it's cosmic issues. That's true. So I don't know, that's one of the things I've always tried to do is find out what things are fast and then use those as much as I can. Don't fight it, but use the things that work really, really well, and then the things that don't, use PSOS. Yeah. Yeah, I think that's one of the amazing things about FileMaker is that if you stay with what it's good at, it is fantastic. You can do lots of stuff. The reason in our system why we do a lot of stuff in WebView is because it's doing things that are not really well-suited to FileMaker, like data tables where you've got lots of columns and then they may be different sizes and then they all might not be there and you can do filter you can do you know sorting and other bits and pieces like that is i found well actually i'm just gonna do an xqsql to filemaker get the whole set of records with all the data in a two-dimensional array so one array per order and then and then inside of there just each element not even adjacent
an object where they're named, but if you just know the first element of the array is this, the second is this, the third is that, then that is really fast from FileMaker. You can get that, you can get the whole, pretty much the whole table very, very fast. And then actually the JavaScript in the web viewer can sort that by five, by 15 criteria and summarize that. Exactly. Absolutely instantaneously. Yeah. Yeah. So JavaScript speed is a whole different beast. different beast yeah and also where it's just like well as i make the window larger i'd like these columns to all grow yeah how lovely would that be in file maker but i know it's not it's not there so we use the web viewer to do that to do to do to do to do that type of stuff and it's it's and people sort of i think will get on the line of oh why don't you make everything in javascript and it's like well have you have you tried doing that it's quite it's there's quite a lot of things you get for free in FileMaker, where you kind of have to work very hard in all the platforms that makes the layout very quick and easy. But other things become very, very, very difficult, don't they?
Cool. This is this is good stuff. I'm gonna I'm gonna want to check in with you again when you get more things done. But thank you so much for coming on and showing all these amazing things. I hope that people found it. Thanks. Thanks for having me on Matt. It's Yeah, it's been it's It's been great to kind of talk to you about it. And, yeah, it's been interesting. Actually, I think I would hold you probably personally responsible for me putting a kind of AI into the system because we had conversations about it back in September, October. In the past, I was sort of aware of it, but I'd sort of discounted it a bit. I was like, well, I'm not quite sure it would work for that.
But actually from that, it goes in the back of your head and then you have a quiet afternoon one time. I wonder if I could just... So one of the things I think about a lot is, like, is AI a solution looking for a problem, right? And that's not what you did, right? You totally had a problem that you couldn't solve any other way, and you used AI to solve it in a really, really nice, useful way that's very meaningful to the customer. So, yeah, that's what I'm really, really hoping to see. I'm hoping to do kind of more of these episodes between the conversations with Chris to talk about some real-world examples of things. All right, Gabriel, thanks for your time.
Brilliant. Great. Great speaking, Matt.
Have something to share?
Join me for a conversation on ClarisTalk AI.