Skip to main content

Best Practices for Building User-Facing AI Systems on Databricks

Summary

  • Multi-integration approach: Choose from Databricks apps for rapid deployment, Genie for natural language queries, chatbots for contextual responses, or batch inference for scalable processing.
  • End-to-end AI governance: Build AI systems with a centralized platform connecting models from development through production, enabling quality monitoring and lifecycle management.
  • Crawl-walk-run maturity: Tailor AI integration to your organization's maturity level, balancing scalability, accuracy, and usability across different business user needs.

Best Practices for Building User-Facing AI Systems on Databricks

Watch: Best Practices for Building User-Facing AI Systems on Databricks
Talk by Arthur Dooner, Senior Specialist Solutions Architect, Databricks ; Jyotsna Bharadwaj, Senior Solutions Architect, Databricks
Integrating AI agents into business systems requires tailored approaches for different maturity levels (crawl-walk-run) that balance scalability, accuracy and usability. this video addresses the critical challenge of making AI agents accessible to business users. We will explore four key integration methods: Databricks apps: The fastest way to build and run applications that leverage your data, with the full security and governance of Databricks Genie: Tool enabling non-technical users to gain data insights on Structured Data through natural language queries Chatbots: Combine real-time data retrieval with generative AI for contextual responses and process automation Batch inference: Scalable, asynchronous processing for large-scale AI tasks, optimizing efficiency and cost We'll compare these approaches, discussing their strengths, challenges and ideal use cases to help businesses select the most suitable integration strategy for their specific needs.
Databricks Named a Leader in the 2025 Gartner® Magic Quadrant™ for Data Science and Machine Learning Platforms: https://www.databricks.com/blog/databricks-named-leader-2025-gartner-magic-quadrant-data-science-and-machine-learning
Build and deploy quality AI agent systems: https://www.databricks.com/product/artificial-intelligence
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements

Chapters

FAQs

What are the four main integration methods for user-facing AI?

Databricks apps for fastest deployment, Genie for non-technical users to query data via natural language, chatbots combining real-time retrieval with generative AI, and batch inference for large-scale tasks.

When should I use Databricks apps versus Genie?

Databricks apps enable building custom applications with full Databricks governance and security, while Genie allows non-technical users to gain insights through natural language without coding.

What has to be in place before non-technical users can successfully ask data questions in natural language?

Before non-technical users can successfully ask data questions in natural language, the underlying data must be clean, well-documented, and properly governed so the AI system can understand and trust it. This video emphasizes that data quality, semantic consistency, and comprehensive metadata are prerequisites for reliable AI systems that business users can confidently rely on. Organizations must also establish clear policies about which data can be accessed, how it should be used, and what results are acceptable.

What are the top AI agents for business users?

Top AI agents for business users are those built on the Databricks Data and AI platform, which combines governed data access with natural language understanding to deliver trustworthy insights. This video explores how agents like AI/BI Genie enable business users to ask complex data questions without SQL knowledge while respecting data governance and access controls. The best systems prioritize accuracy, explainability, and seamless integration with existing business processes and tools.

What is agent orchestration in enterprise AI systems?

Agent orchestration in enterprise AI systems coordinates multiple specialized agents to handle complex workflows and route requests to appropriate services based on user intent. This video demonstrates how orchestration ensures consistency across distributed agents, manages data context, and provides centralized governance and monitoring. Effective orchestration enables enterprises to deploy AI at scale while maintaining security, reliability, and alignment with business objectives.

Full transcript

0:00 Introduction

Uh well, welcome today everyone to the best practices for building userfacing AI systems on data bricks. Uh this is a talk of course, but um if you have questions, your questions come up, we're going to save some time at the end for Q&A. So, please if I if we don't answer your question through our awesome expertise in the time that we're here, step up to one of those mics and uh we'll be able to take your question and obviously it's first comes first serve.
So, if you think of the question and you want to be standing, it's a great place to hang out. So, uh who are we? I'm a specialist solution architect at Data Bricks. What that is is a person who spends all their time doing one specific type of activity. We have folks who do that for data warehousing, data engineering. I'm specifically that for AI, artificial intelligence, Gen AI, MLOps, that sort of space, right? And with me is my colleague Joda.
Hi everyone. I am a senior solutions architect here at data bricks. I work for the manufacturing vertical which means that I help lot of customers in the uh specific vertical helping them out with their data and AI journey. Welcome you all. Awesome. So I I'm when you come to this en environment, when you come to this session, we are somewhat assuming that you already know about some level of AI systems. And assuming that you might not, we have a slide or two on that to help bring you up to speed so we're all speaking the same language when we talk about AI agents, AI systems.

1:20 DataBricks AI Platform

So let's recap. The idea of our platform as an AI platform is three core ideas. If you did not get this before, this is like the three most important things you should take away from Mosaic. So feel free to screenshot that. I'm encouraging it. The idea here is that we are a central place for end-to-end AI governance. You can build your AI systems somewhere else and then you'll be like, "Wow, why does the quality suck?"
It's because the production you don't there is not a strategy or path to production. That's what we help with. We help you connect all of your AI models, AI systems, help you build quality out of AI with your data. And we above all else, data bricks is a centralized platform. So we're here to help you build the entire AI life cycle, right? So we're thinking about progression from the very beginning data engineering or processing steps to the very end of that development life cycle iterating on this AI system and monitoring it in production that development no it is nowhere faster than in data bricks I challenge you to find a faster place.
So as we think about AI system designs, there is this progression kind of like crawl, walk, run, right? And as you maybe data professionals are working with these AI systems and AI tools, you might start, hey, I need to extract a bunch of insights from documents and that's where that batch inference workflow comes through, right? It's a terrible name, but it's really just running AI against your data, extracting a bunch of different fields, summarizing, translating all of these different uh predicting on certain scores, right?

2:51 AI System Designs

It's running AI at scale. Doesn't have to be geni, can just be an ML model. Then as we think about more compound, more complex systems, we think about our AIB genie spaces that allow you to converse with your data in natural language where it will write SQL under the hood and allow your analysts to actually consume that data or use build an agent and attach it to a document store with our vector search or a similar tool.
As you start to chain those together and you start to oh what if I ask questions of genie a uh with with structured data and I ask questions with unstructured data all of a sudden then we've got this more compound AI system right and that's the whole third block there it's how do we integrate all of these different data sources and tools and systems into a compound solution and then that final block is how we say let's take these agents and coordinate well-defined domains.
Keywords, well-defined domains. Please, that's like very, very important to remember that to build these multi- aents. And note how it's a line of progression. You shouldn't just jump to building multi- aents because you want to. The others are a pretext. In much the same way, your AI system, now that you've built it, how do you think about your users experiencing it, consuming it? Is it all caps? Because it sounds like I'm yelling.

4:42 User Experience Strategy

Um, so we think about you're scaling your AI systems, right? You're building more and more compound solutions, right? In much the same way you should be thinking about that for the user interface. Please don't go like, I can't put this in front of my users until it's like really professional. No, you need to get this. You need to get traction. You need to get people invested in what you're building. You need to get feedback to improve the AI system.
So please think about this in the span of first steps. What is the absolute minimum thing I need to do to put this AI system in front of my users such that we can actually they can experience it where maybe I could even just integrate it into something like Teams or Salesforce or Slack. And we'll talk more about that in a minute. We've got a couple slides on that. But like hey my users are already using Salesforce. my users are already in teams, right?
How can I reach them and get the AI system embedded into their workflow? There are very few steps for them to step away from that. So, we have a lot of products that help folks consume AI inside of data bricks, but I don't want you to be like uh you know got your blinders on for just doing that. Think about where are my users and how can I reach them? And as you have this bigger AI solution that might combine a lot of different solutions or solve a lot of different problems, then we think about, okay, now that everyone cares about this AI solution I've made, now I have the investment.
Now I have the time to make a really great front end that meets all of the data that they want to work with and the actions they want to take. Please don't overindex on engineering that side. So built on data bricks solutions that exist inside of the data bricks platform. Let's get started. If you think about I talked about this ear earlier I I've had so many conversations as the AI overlay for manufacturing where people are like I can run over all of my data.

6:39 Platform AI Integration

That's so convenient. Like people don't realize that's like an offering out there. It's literally five lines of code and then all of a sudden or SQL or whatever and you can actually run oh summarize extract these fields as a structure JSON get these key insights out of my data that capability is built into data bricks and you can run it against any genai model that you want uh from the cloud and the llama ones built into data bricks to open aai and gemini that you can connect to the connectivity is already there so please if you just need to process documents extend and your data engineering workflows with this technology AI query.
We'll talk about that more in a sec. You can run that in the SQL editor. It doesn't just have to be you being a data engineer building it. You can consume that and process it through that AI query function interactively. So if I have this ad hoc analysis I need to make in 10 minutes, I'm just going to run it against an LLM and then I'll get the summaries, the results, the feedback. And at the end of the day, right, we can actually deploy these frontends or these systems or these solutions to users both as like API endpoints which Joe Snow will talk about in a minute and to whole baked front-end apps that handle all the authentication and authorization that you would have otherwise had to code yourself.
So although I just showed you the section of the blinders on, think about the rest of the world. It does exist. Data bricks likes to pretend it doesn't. sometimes. But the you already have email. I'm sure you already have some sort of chatbot, right? I'm sure a lot of your business users are using email and chatbot or chat tools. If they aren't, I don't know what to do. So, you're thinking about how can I reach them?

8:16 External AI Serving

Well, maybe I just tie the AI system I made in Date Brooks, AI system I made somewhere else and plug that into Teams or Slack or I could schedule it to run across a lot of prompts of their common questions that they asked me throughout the day, right? That I then automate that I don't have to answer that first pass question. Couple of my managers came to me the other day and like, could you tell me about how all these AI PC's are going across all of our vertical?
And I'm like, that's a lot of work. But you know if I have all that Salesforce data in front of me I can just say okay what's all the notes what did we all say what's the perspective on this account customer that sort of thing we can gather from all that Salesforce data so you can imagine even like a selling life cycle you're serving that back to Salesforce you can say this is our perspective on this customer this how we grow this account this is our strategy this is where things are resonating where things are not and same idea with like service now hey here's similar problems that we've seen other users face.
Same with Tableau and PowerBI like, hey, we've created all this batch process. Let's serve and visualize it in some meaningful way. And if there is already an IT strategy on serving all of these AI insights somewhere, some AI hub, I'm not saying you should ignore that. I really don't think you should ignore that. I should think you should lean on that in the apps that you might your users are already in. There are two rules to what I want to highlight.
Rule one is serve where the users already are. I think I conveyed that like three times. Then the medium is the metaphor. If the insight is something that might be this ad hoc questionnaire, it should fit into a chatbot. If it's something that they're going to ask every day that they want in front of them, it should be an email. It should be async. Right? Those insights should meet the moment of what your users are looking for.
And don't forget, you can stand at the podium for 30 more minutes if you want to wait to ask your question. So what is crafting a user centric AI solution? With that I'm going to hand it. Right. Thank you. So Arthur just spoke about doing integrations within data bricks and outside uh data bricks. But how do you go about doing that? So let's talk about few of our platform capabilities which help you do that. First and foremost what you need is of course access to these AI models and Mosaic AI model serving lets you do that. uh it gives you optionality in choosing the model based on your business needs and whatever works best for you whether it is external models it could be the GPD models from Azure AI bedrock Gemini and even enthropic models with our newer partnership with Enthropic you could also use opensource uh foundation models uh be it llama visl dvrx etc and of course you can use custom models what that means is that either you could fine-tune a model on your own data set and use that but you could also build agents and chains etc to serve that to your users using one single interface which we call as mosaic AI model serving.

10:40 Mosaic AI Model Serving

So in addition to be able to access these models what you also get is complete governance and uh monitoring using unity catalog and what we call as AI gateway. So AI gateway is a unique feature of our model serving which helps you do usage tracking, rate limiting, credential management, putting in guard rails, uh coming up with fallback support, etc. So it's an integral part of our model serving and besides that you can query any of these models using one unified interface either using user user interface or using APIs or SDK.
So that's the first step. Now when it comes to deployment paradigms, we support any one of them. You could use these models served through our model serving in batch mode or streaming or in case you have low latency requirements and want faster turnar around time you can always use our real time board. So it all depends upon your latency requirements. So this was uh so I just spoke about uh batch inference and in the recent couple of few months we have done massive improvements to our batch inference in terms of scalability and the way it works is our batch inference it gives you these built-in SQL functions which are really easy to use and you can use them to either pass your data, extract information, generate new content, translate, summarize, you name it and we have a AI function to support that particular use case.

12:42 Batch Inference and SQL

So this is an example of how you could use batch inference. So in the example as you can see I have a corpus of data. It is unstructured data. So let's say it is an unhappy customer who is using a product with the name as K cups and what I want in the end of it is be able to generate a nice email and send it to my customer. So how do I go about doing that? I use that unstructured text, use my AI function AI extract to extract out which product, what is the sentiment, so on and so forth, and then use another AI function AI gen to be able to generate a nice email and send it across to my customer.
And I can do this exercise not on one row, not on two row, but a large corpus of data, which could be millions or trillions of records. Right? So this is how powerful the batch inference is. Next up um in the true spirit of bringing data intelligence for everyone we have what we call as Genie our conversational analyst using this of business users who do not have too much of knowledge of let's say SQL or any of the coding language for that matter and they are not data engineers or data scientists and they still want to extract insights from your structured data they can do that using natural language So it takes AI, it builds in AI, it uses the data intelligence and makes it available for everyone.

14:31 Genie Conversational AI

So that's Genie. But if you want to integrate Genie with any of the external applications or even within data bricks if you want to integrate it, we have what we call as Genie APIs. These are simple rest based APIs which you can easily integrate in any application of your choice. So you get API to start conversation to get conversation message fetch query result and so on and so forth. So all of these capabilities which I just spoke about these are the ones which actually help you integrate all of these capabilities into applications of your choice.
So next up do you want to talk a little bit more about uh serving these insights outside of data bricks? Absolutely. So when we talk about I know I alluded to this but I want to make this extremely clear. I am seeing ultra creative ways people are actually consuming these data asynchronously. I I've gone to so many meetings with different customers and they're like man we want to build a chatbot. What is the chatbot?

15:46 Serving Insights Externally

It's like send this report to this person every day. It's like well that's that's not a chatbot. But there are LLM components of that right? There are summaries it might generate. There might be insights. It might it could be a compound AI system that you've built that calls all these tools, but there's no reason for it to be this like interactive user interface. It's going to help folks understand the data that's happening every day.
A really good example, I was working with this rental car company. They had this NPS like net promoter score for every single one of their sites and they wanted to actually like understand what was the NPS per site and give these reports in a very aggregate way like how clean are the their cars, how satisfied are people with the cars that they're getting, right? What is the experience with the customer service attendance at the at the actual site that general managers could consume and be like, "Oh, the cars were a little dirty this week. the cars were a little bit um the cars were everyone loved renting a Infiniti QX60 or something you know like scenarios like that nuance that's going to be lost in all of these aggregate stories you can not just summarize that and build reports that lead to better understanding and interaction with your data but you could actually build it in a consumable way like a video or a podcast some multimodal thing that specific team they wanted to actually pull and say like oh what if we like had them listen to that podcast as they're like starting their day at work that made a lot of sense because they were going to be their hands were going to be busy but they could listen to something right so you got to think about the multimodal ways that you can reach your end users and then as I as I talked about earlier right the CRM life cycle customer relationship management all that in Salesforce dynamics right please that is a treasure trove of data that people sleep on because it is so unstructured And a lot of times you infer unstructured equals unusable.
But that's only because there hasn't been an easy way to parse out those insights before, right? There hasn't been a standard. Oh, tell me about these specific features. Tell me about which customers are doing well. Tell me about what PC's are are going well or what what messages are working, right? That's all actually usable information now in the era of LLMs. And similarly with like service now zenesk all those data are a little bit more structured but you can even have narratives across all of them like these are the common patterns we're seeing emerging how can we automate how can we solve so it not only becomes this like batch analysis but becomes this triaging tool and then process optimization long term and I've I've beaten this one um over and over again in my talk so far but the idea of the corporate communication apps right please lean on these people are already there.

18:47 Multimodal Applications

They're already relying on this business intelligence. I actually am a little bit iffier on BI pieces. It's on the slide. I think it's important, but a lot of the ways that people might ask questions can be very misleading. So, I put some asterisks there in my talk here because I think it's important, but it can be very easily misleading if they're like looking at one thing and ask some a question about something else interpreted differently.
So, be careful there, but it's still helpful. And then again, it infer is making these platforms for your teams for a reason. to centralize all AI efforts and federate and delegate to that. Align with those or maybe start talking about starting that at your organization. Again, only when there is AI momentum in the first place though. Don't just do it in a vacuum. Make get people bought in. Make this important to your business.
And finally, look at us taking all of our blinders off. There are other AI platforms out there. I want to be very cognizant of that. Um, one of the big announcements that Microsoft build the other day is that AI foundry will have integrations to the data bricks genie rooms, right? So, I want you to recognize there are integrations with Unity catalog functions, right? All that we're going to demo in a little bit that show, oh, I could go pick that up in AI foundry instead or I could consume something I've made in data bricks, an agent I made in data bricks in the foundry. the integrations there are birectional so they happen into and out of data bricks and they work with uh these all these different providers you just might have some additional off or config to set up so again I'm going to tell you it's all easier in data works because it is but there are realities that we might not be able to work around from your organization's policies your IT strategy whatever that we're flexible with and we can work work with and same with a lot of folks building SAS solutions and like lang flow very low code sort of AI system building.

19:46 External AI Platform Integrations

We're seeing that a lot more and then plugging AI systems that you've made in data bricks or genie tools or whatever to those systems are helping a lot of our customers reach their data that's in data bricks without having to re-engineer or build these custom capabilities. So as we think about building these custom frontends, we think about data bricks apps and I'm going to hand that. Yeah, thank you. So a quick raise of hands.

21:10 DataBricks Apps

How many of you are actually visual learners? I like it. Yeah, that's a large percentage. Actually, statistically speaking, almost 65 to 70% of humans are visual learners. And due to that, it makes it really a compelling idea to present your data and AI insights to your users in a visual manners. And what better way to do that than use datab bricks app on the data intelligence platform. So what are data bricks apps? Databicks apps actually let you create custom visualization in a very simple, secure and governed manner.
You do not have to stitch multiple applications to create something fancy or a visual. You can easily do it using uh data bricks app. We have greatly simplified the developer experience. What that means is that now developers can use open-source UI frameworks of their choice whether it is Gradio or Streamlate or Dash or any of these JavaScript based frameworks without having to relearn these UI frameworks and the best part it uses the cloudnative serverless architecture for deployment and publishing these apps.
So what the end result is that you get these batteries included environment in which along with ease of development what you also get is the inherent security and governance inside the databicks platform right from the infra layer to identity management and also governance of your data and AI assets using uh unity catalog. So the end result is faster time to value. Some apps which were probably taking something like weeks or maybe months to create they can now easily be done in days and maybe even in hours.
That's what we have actually seen. So as it turns out today our customers are using datab bricks apps for a number of use cases whether it is to uh create interactive data apps or even to operationalize their machine learning algorithms maybe for predictive analytics or for forecasting giving it a visual appeal helps a lot and then of course to create these new way genai application like chat bots etc datab bricks apps help in all these use cases.

23:19 App Use Cases

So, so far we spoke about all these different kinds of integrations and different approaches to do that. Now, let's see and compare where each one of these approaches score and try and compare the strengths and key considerations. So, one thing to keep in mind is that it's never one or the other. Especially when you are building these compound AI systems, you are actually talking about exposing them to different personas, different kinds of users and you would always use a combination of each one of these approaches.

23:49 Approach Comparison

So starting off with data bricks apps we just spoke about they help you create these visualizations and all you need is some basic knowledge of UI framework so that you can use our in-built templates and create these fancy user interfaces. Next is Genie the conversational analyst. So in case you want to want to have or you want to truly democratize your data access and you want your business users not conversent with coding to be able to interact with your structured data then genie is the best choice and it is a multi- aent kind of uh functionality.
So just like any other geni application, something to keep in mind is that you should always keep benchmarking and evaluation of this in mind and always uh uh configurate accordingly. Next up is batch inference. Uh batch inference really do well. They excel as cost effective way of scaling uh and batch uh applying genai on large corpus of data. So if latency is not a limitation for you instead of looking at real time inference look at batch inference.
And then finally we have external integrations. External integrations are all about bringing in AI closer to the to your users without them having to change the way they work. to take AI, integrate it with solutions so that your users can experience it and continue to work the way they currently work. And again to reiterate, it's always going to be a combination of these. So next is demo time. So we spoke about all these different approaches.
Um so for the sake of demo, what we will assume is that we are transport and logistics. You got it right and jot logistics come. So we deliver all sorts of goods whether it is perishable goods, equipments, vehicles, raw materials etc. through our nationwide network. And the key challenge in front of us is trying to reduce the churn be able to give realtime updates on shipments to our customers and overall improve the customer experience. and our CEO he has wisely chosen data bricks as a choice for this uh entire uh uh data and AI revolution that he's trying to create in the cloud.

26:12 Logistics Scenario

So the first use case that we are going to talk about is meet. So Adrina is a customer service representative and let's say she gets a call from group uh asking about a delayed shipment. So in today's world uh what would she do? Uh she would probably navigate through number of applications maybe even call the driver just to get that this information while the customer is still on the call. But with the new age solution based on data bricks she can ask the same question to Jinnie and get the answer instantaneously. on the other hand who is uh colleague she prefers to work through teams because teams is their preferred way of communication within the organization.

27:03 Customer Service Demo

So she can still use the capabilities of generic all integrated using the APIs in a team's bot and get similar kind of answers. The second persona that we are going to talk about is of. So John is a sales lead and the challenge in front of him is that sales have been down week over week uh through the customer calls he can figure out that customers are complaining about pricing issues and so on and so forth. So how do we help him?

28:02 Teams Integration Demo

We help him by creating a AI agent and this AI agent will have tools in the form of Genie to get customer calls data. uh we will also have vector search to help do similarity search on all those conversations and we will also give him give the agent a number of Python or SQLbased tools to be able to help out with this particular use case. So the end result is that using this agent uh will be able to address the biggest question in his mind which is by what percentage he should reduce his prices to stop churn and make his customers happy.
So with that I think let's go to the demo. And last comment on this this slide here like I do want to make it clear like why even came to the AI agent in the first place was because the data sci science team made this nightly analysis that emailed oh hey this might be why we're losing some sales and it makes him follow up and intrigue. So you're like, man, how do I get traction for all of my AI systems that I'm building?

29:04 Sales Agent Demo

That's not trivial. Getting getting buy in. There's a lot of things you can build once you have an audience, right? So please think about like how do I reach the teams that I'm working with and make them even want to approach the AI systems that we might have be might be serving and the AI agents we're building. Absolutely. Yep. All right. So now what you see over here is datab bricks workspace and I have genie opened up.
So the first question uh she is with a customer on the call and she needs to get the details of delayed shipment. So all she does is she goes to Genie and she asks this question. The way Genie has been configured is if you see over here it has access to all this data from my shipments trucks uh call logs etc. And that is what helps Genie come up with these answers. So if you can see over here uh looking at this she knows that uh the shipment is going from Phoenix to Boston and she can also see that there is a expected arrival date but it is already passed.
So it is a delayed shipment. So now next what she wants to know is of course what are the reasons for the delayed shipment. So that is what she again asked and hopefully should be able to help her out using all the data which she's had. So excellent. So Jeie tells us that the truck broke down. It's in New York waiting for it to be fixed and there should be a delay of probably another additional five hours. Excellent.
So as you can see this was almost instantaneous response. She didn't have to write any SQL whatsoever. Now next let's go to. So Emily as I said she prefers to work through um teams. So what we did for her is that we integrated Genie with the teams um uh teams app and as you can see she has already been uh interacting with Genie and the next question in her mind because she's talking to someone from shoppers smart is when the shipment from San Antonio will be received uh by shoppers smart.

31:09 Detailed Genie Demo

So let's ask this. As you can see, she has already interacted in the past for our other customers like freshs when she got all these details even for eme she's able to uh understand the data using these simple English kind of uh syntax. So here you go. She gets the answer. Uh the shipment should be there with shoppers smart by June 11th and accordingly she can keep interacting uh using this team's app. And JD just how would you how long did you think that we took building that app?
This app um this is didn't take too long. Yeah. Yeah. I think it was like a couple hours. Couple of hours. Once we had the permissions it wasn't that hard. So like there you might think like why aren't and sharing all the resources that they use to build all this? Well, it's actually really simple. The approach to this is meant to like not overindex on development. Genie has that tech built in. There's a data bricks AI bridge package that you can connect to and then all of a sudden you can you call that inside the teams.
Yeah. All right. So next up is the sales lead. So how do we help out? So what you see over here this is data bricks app and what we did was datab bricks app is now using under the hood our model serving and we have created a agent to help him out. So the question in his mind is of course um by what percentage so based on the call logs how much should we lower our price? So let's do it price in the next week. So let's see how the agent can help him.

32:45 Actionable AI Demo

And as you can see, he has already been interacting with this agent trying to figure out how many shipments are delayed, uh, which locations his trucks are at and so on and so forth. And in addition to this chatbot, we have also given him fleet pulse. So what this fleet pulse is uh this is actually a datab bricks AI vi dashboard which we have embedded inside this data bricks apps and over here very easily and visually he can see the where his shipments stand how many are delivered delayed in transit etc.
He can also on the map see where his trucks are. He can also see that what are the major reasons uh of customer uh cause of issues reported by customers. So as you can see pricing clearly is uh being reported by most of the customers. So let's go back and see if u uh if the agent was able to help him out. So this is where it gets really really uh intriguing. So if you can see here the agent not only sifted through all the data and uh it it has actually critically analyzed it and if you see it is actually talking about saying that based on specific competitive benchmarks and the reported pricing issues probably something like 6 to 7% is what the pricing should be reduced.

34:17 Pricing Adjustment Demo

So now what can do is he can use the same agent to actually update the pricing and let's say reduce it by 6% for next week. So let's see it might take a little while uh for it to uh execute this but as you can see how powerful it can get right so it was the same data set same shipments and shame same tracking and same call logs data but we have used it in the form of through our genie spaces integrated it to a team's bot used it as an agent and we have also created a datab bricks apps with that so that's how power powerful it can get and as you can see it successfully updated the pricing so hopefully now customers should be happy about it.
Yeah. So that was the demo. Um Arthur. Yeah. Uh so I mean when it comes back to all this what I I really want to highlight is this AI system that we built that again this one probably took us like four or five hours to put all the pieces together get all like especially because we were doing it the first time. The idea that I really want to make very clear, thank you. Is that this, you saw that AI agent that just demoed?

35:50 Trust and Actionable AI

Note how it took actions after it already gave all the information. It was validated by a user. You talk about how do you get to an AI system that you can trust. I don't see a lot of teams going and building their whole AI solution to be on autopilot on its own. I see a lot of teams building all the foundational tools and then they're running that in front of a leader or a user who has the authority to make those changes and then in that same agent uh that user is able to say okay because I'm me because I have the person permissions to do this I trust the reasoning the AI system took so I'm going to actually tell it change it by this much right and it only takes the action when validated by the user so how do you build up to AI system trust that's a really good example give all the information to the stakeholder, share the sources, return those results, and then then let them make the decision still in the context of that agent.
We call that actionable AI. So big takeaways, please don't please don't overengineer this. I've seen so many teams, I could I cannot count how many that have gone and built very compound frontends, very compound AI systems for an audience of no one. And I was helping support that. So I felt bad. Um but the end of the day when you're building these compound systems when you have an audience it can make a lot of sense to do that in data ricks apps when you have these very varying different types of interactions.

37:04 Q&A Session

Make sure to stand up at the podium for questions if you have any um or the microphones I should say. Not all AI apps need to be real time. I think I think most of the conversations the first conversations I have with teams they talk about chat bots what they want want is some asynchronous tool to build insights. So doesn't have to always be synchronous. The tools might be synchronous but they can be called asynchronously to build these advanced dashboards and crawl run.
It's not about what are you going what what's the end state. It's like what's the next best thing I can do for my business that I can actually solve, deliver, and then move on to the next solution. I appreciate everyone's time. Feel free to stick around for questions. Uh hope you enjoyed the session. Tell your friends we're doing it again tomorrow. Yeah. Thank you everyone. I think you were first. Yep. I was wondering if you could talk just a little bit about how you did the um orchestration for the right back at the tail end of the conversation demo. uh the orchestration for the uh the call to the SQL database that updates to call back to update the pricing.
Yeah. Yeah. That can always get into some nuance networking especially if you're using an external system but it was truly just like a SQL alchemy sort of tool that okay update this database in this case after doing an initial permission check of is this the right user who has access to update these rates. Does that make sense? Yeah. Awesome. Great question. Thank you. Or next. Can you talk about uh how you're integrating like say a rag model into teams?
So for context I have data bricks app that uses streamllet and that is a rag model that has my company's um code like in their knowledge base right and right now it's just a you know a web page but ideally I'd like to have it in teams. Do you have like any resources for how to like directly integrate that as like a teams channel or something? Um no. Uh but the the way that I would say this is uh I I would I would try to build something that like shares the result and like what the rag summarizes and that I would focus on building that piece as your like MVP in teams and then I would layer in oh how could I visualize and link to context how can I oh if you want to learn more about this the knowledge piece but there aren't a ton of teams templates out there which feels like a huge miss by the industry I really think we probably should all be doing that more because it's like an enterprise hub.
Yeah, good question. And also to build this teams app and in case you want to integrate a rack, so you create the rack and expose it using our model serving endpoint and what that does is that it will give you all these restbased APIs which you can then easily integrate to the team spot. Okay. So it's just like a REST API. Yeah, exactly. Yeah, good question. Thanks. Um I have two questions. One is around hallucination.
If uh my genie doesn't have access to certain schemas but I ask about it, how does it handle halation? Second uh I'll just ask him. Yeah, go ahead. Second question is around uh like can I use a scrubber to hide sensitive information when a genie is responding? I don't want it to spit out like PII PHI information. Uh amazing question. And I've actually I've worked with a lot of teams that do this specifically like how they they kind of center their universe on Genie and I love Genie.
But the problem with Genie is that it is for a specific data domain. And sure in Genie to answer your first question, you can put guard rails and instructions that say do not answer anything outside of the walls of this this data domain this question, right? or push back reject those and you all the uh configurations that you do inside Unity Catalog for example RLS CLS all of that is respected in Genie as well and then as we were talking through in the slides also uh it's very important when you set up Genie for you to go through a full cycle of evaluation and benchmarking it and then use that to be able to give it additional instructions or maybe example queries so etc. so that you you ensure that it's performing the way you want it to.
So we give you all that tooling inside Genie to establish uh these controls. To answer your second question though like how do I put PII and such on it um or like blockers and masters that is where you turn Genie into a tool or a capability of a broader AI system. You plug it in as a tool and you say, "Hey, you're going to get these questions and answers. You're gonna pass through to Genie because it do that really well."
And then you're going to check to make sure it's not going to share anything. It shouldn't. The permission model should be set up in a way that only the people who have access to it can see it. But maybe you can layer in that additional layer as part of an agentic or AI system. Does that make sense? Uh, so does it mean that after the genie gives a response, I'll add a second layer to fix Right. Exactly. Yep. Hello. Hi.
I actually had a very similar question to him, but I would say uh the group example was uh where I wanted to focus my question was let's say there were two groups. So there was a group and the group and the group is not supposed to have access to the group. How does Genie is there a way there's something under the hood for Genie to bypass giving access to the group? Um so can you embed Genie credentials? I don't think you can.
Yeah. No. The way the Genie works is it will create a query against the data set that it has been delegated to work on. Then it's going to take that user's credential and it's going to pass that through to the SQL executor that runs it. So there is physically if I ask a question for data that only can see, there's no way for me to see like it might run the query but it's gonna be like oh Ar can't see that. Yeah. Yeah.
So it's almost like on behalf of user authentication process. Perfect. Thank you. Awesome. Hi, I have two questions. So the first is today the data bricks apps are not available in the marketplace. So in near future can we expect that? Uh has a lot in the marketplace for what the data bricks apps to deploy on the marketplace. Is that possible? Oh data bricks apps on marketplace. I think that's coming. That's coming. That's coming but I don't think you can do that at the moment.
Go the keynote. Second question is uh uh I think you mentioned that Genie only works with the structured data. So is that the limitation today ones? I have seen teams use Genie in a way that um allows it to call out to like a vector search. Additionally, a colleague of mine, he made this um if you Google on YouTube Zack Jacobson uh Genie demo. Uh he he goes into like all the advanced features of Genie, it's really amazing demo, but I also tell teams like please be careful.
Don't um what's the way what's the word? Don't overindex on building everything in Genie. It can make sense to take it out of Genie and build companion tools components. Right. And also you can actually with the newer features you can actually use a Excel or a CSV upload that in Genie and then ask questions around it as well. So th those features are there as well. Okay. Thank you so much.

Learn more about the Databricks Data and AI platform.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.