Moody's AI Screening Agent: Automating Compliance Decisions
Summary
- Automation at scale: Moody's AI Screening Agent automates Level 1 compliance screening for Know Your Customer (KYC) due diligence, minimizing false positives and reducing human review time.
- Advanced reasoning: The agent employs a ReAct architecture with intelligent tools for complex compliance decision-making, achieving human-like accuracy and consistency.
- Governance and evaluation: Moody's uses MLflow LLM-as-judge and Unity Catalog to manage agent evaluation, configuration and ensure compliance with evolving client policies.
Moody's AI Screening Agent: Automating Compliance Decisions

Talk by Nishant Gurunath, Assc Dir - Machine Learning, Moody's
The AI Screening Agent automates Level 1 (L1) screening process, essential for Know Your Customer (KYC) and compliance due diligence during customer onboarding. This system aims to minimize false positives, significantly reducing human review time and costs. Beyond typical Retrieval-Augmented Generation (RAG) applications like summarization and chat-with-your-data (CWYD), the AI Screening Agent employs a ReAct architecture with intelligent tools, enabling it to perform complex compliance decision-making with human-like accuracy and greater consistency. In this talk, I will explore the screening agent architecture, demonstrating its ability to meet evolving client policies. I will discuss evaluation and configuration management using MLflow LLM-as-judge and Unity Catalog, and discuss challenges, such as, data fidelity and customization. this video underscores the transformative potential of AI agents in compliance workflows, emphasizing their adaptability, accuracy, and consistency.
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
0:00Introduction1:07Screening workflow overview1:58Screening objectives6:35Scope of the screening agent8:52Screening agent demo11:57Agent reasoning and action13:53Screening agent design17:28Prompting strategies19:52Agent evaluation and tracing23:45Analysis and insights25:14Future developments27:07Challenges and conclusion
FAQs
What is the AI Screening Agent's purpose?
The agent automates Level 1 compliance screening during customer onboarding, minimizing false positives and significantly reducing the time and costs associated with human compliance review.
How does the ReAct architecture enable better decisions?
The ReAct architecture with intelligent tools allows the agent to perform complex compliance decision-making through reasoning and action, achieving accuracy and consistency comparable to human experts.
How does Moody's evaluate the agent?
Moody's leverages MLflow LLM-as-judge and Unity Catalog to evaluate agent performance, manage configurations and ensure the agent adapts to evolving compliance policies and client requirements.
What challenges does the agent address?
The agent tackles key challenges including data fidelity (ensuring accurate compliance data), customization (adapting to different client policies) and the need for human-level accuracy in compliance decisions.
Full transcript
0:00 Introduction
All right. Uh let's get this started. Hey everyone, I'm a data scientist and engineer at Moody's. Um today I'm going to be talking about uh the AI screening agent that we have been building. It's a way to automate the screening and compliance due diligence process uh by making human-like decisions using what we have the AI agents. Uh yeah, please complete your surveys at the end. All right, a little bit about me to begin with.
Uh yeah, as I mentioned, I'm a data scientist and engineer at Moody's graduate from Carnegi Melon. Uh, and for the past couple of years, I've been working with creating or using ML and NLP to create entity risk profiles and using them to make informed screening decisions. Okay. Uh, and I'm a Liverpool FC fan. Any Liverpool fans here? Oh, there's one. Oh, there's a couple of them, right? Good to have you here. All right.
Uh, so yeah, let me begin my talk with covering the topics I'm going to cover. So I'm going to start off with what screening is, why we need screening, then talk about if you want to mimic such a process, uh what kind of objectives a screening agent needs to have. Then we're going to dive into the most interesting part which is going to be the demos of our product. And then I'm going to dive into uh the crux of it which is the screening agent design.
1:07 Screening workflow overview
And then finally talk about how we use how we how we leverage data data bricks toolkit uh to uh evaluate the agentic workflows and how we use their tracing capabilities to use LLM as judge right and if the time we're going to talk about some of the challenges that we face uh during the design of this agent okay so the screening workflow so let's say you own a company and you are onboarding a client the client could be another business that you are doing a contract with or it could be a customer who is signing up on your platform.
1:58 Screening objectives
Um then the job of the compliance risk officer is to decide is this safe to do business with this individual or the company because they can have money laundering cases against them. They could be involved in financial crimes. They could be sanctioned by governments. So the compliance risk officer's job uh is to evaluate whether that entity is safe to do business with and in a lot of jurisdictions it's a mandate to fulfill your compliance due diligence and the screening process to know uh who you are doing business with right so that's why we want to do screening so a simplified view of what screening looks like so if you have uh an individual or an organization and that you submit the inquiry for What we do is our product or our database which is called the grid database has millions and millions of entity risk profiles uh which we have uh built over a period of time.
So it contains all the event information, the address, date of birth, geographic information about individuals and companies. And what we do is we match this inquiry that is submitted to the entity profiles in our database to figure out whether they should be escalated for further review or they can be cleared and easily onboarded. So that's kind of the high level idea about what screening means. Uh let's take a look at a detailed view of what an inquiry means.
Uh what are the different alerts that can be generated and what kind of decisions the humans make uh to get to this uh final output. So as I mentioned earlier uh you have an inquiry that's submitted. Uh inquiry can have a name, address and date of birth uh for simplicity if it's a person and so it will be matched against our grid database as I mentioned. So there's an entity matching process which will generate a candidate set of alerts let's say and the candidate set of alerts will have again name address date of birth and the events uh be money laundering events sanctioned events so on and so forth and so what L1 decisioning here means is it's the first level where a human is involved in the decision-m process so what a human analyst what they would do is they would evaluate the inquiry attributes against the candidate attributes to decide whether this is a true alert uh from our database or this is a false positive.
And the idea here is to eliminate all the false positives uh and catch the true bad guys. And how do the analysts make these decisions? So these decisions are based on a companies or client specific compliance criteria. So each client can have their own risk appetite. So some people are okay with somebody doing a theft or having a DUI but there might be companies who are not okay with some onboarding somebody who has uh even a DUI against them.
So to not give them a loan or something. So these criteria can be divided into two types. One are the objective criterias which you know there is a clear uh indication that the address is exactly match or the date of birth is exact match. So you know it's you have the right person. Uh but there are a lot of times when the address can be let's say people can move. So can be between the address is let's say within 30 miles but the data worth is within a month.
So how do you decide? So these are the decisions that the companies write in their compliance documentation and the analysts learn from those and based on those guidelines they make these decision of whether a inquiry or an alert match is a true alert or a false positive and in the compliance business every match that is escalated goes through a human review. So as much as we can eliminate these false positives uh we can save a lot of review time and we can save a lot of review cost.
So yeah two takeaways from this slide is the decisions are based on client specific compliance criteria and the final decisions is sometimes has to be an intelligent decision based on a subjective criteria and it's not always an objective and easy decision. So that leads me into the objectives for the screening agent. So as I mentioned um these uh decisions are based on certain client configuration and we're going to see some sample uh configuration and rule sets uh what they look like.
6:35 Scope of the screening agent
But since they're based on this configuration, uh the agent or any software that you are going to build who mimics that mimics this decision has to be configurable specific to the client guidelines. Um and a lot of the times you can say you can I can write a bunch of if else code for each client but it's not really scalable because you can't have a different version of a codebase for each client. Uh so you want something that is easily configurable.
Second thing you want with your software is automation. You want to evaluate quickly uh to save time and to save cost and minimize the number of false positives that are generated. And the third thing you want from your software is intelligent because as I mentioned the decisions are somewhat uh not like there's a gray area where you have to make an intelligent decision at the end uh when the uh criteria are not clearly matched.
We're going to see what those criteria could mean. But we need an intelligent uh decision maker at the end. So why we choose AI agents for this is so AI agents can be governed using prompts. So prompt allows for easy configuration. We know that. And AI agents have LLM. So LLMs have natural language understanding. So they have inherent intelligence to help make that decision. So that kind of leads us to why we use AI agents to mimic such a human-based uh decision.
All right. Okay. Um so yeah, what doesn't include in the scope of this talk is I showed you there is a database of entit profiles. So how are those profiles created? That is out of scope of this talk. Uh we are only looking at the decision- making part where we are using the agents once we have those candidate profiles. And also not in the scope of the talk is the candidates that are generated. How are they generated using the entity matching process?
That's also a separate pipeline. Uh that is also not part of the intelligent agent that we are talking about today. Okay. So with that in mind, let me show you this interesting demo. All right. So let me hit play. Yeah, I'm not a fan of live demos because we all know how they go how those go. So it all starts with yeah submitting an inquiry. So you have the first name and last name of the person uh a date of birth and you can put the address.
8:52 Screening agent demo
I mean you can also put a photo ID of the person. You can put a national identifier like a passport number. But for simplicity let's say we only have the name, date of birth uh and country. So in this case I'm searching for a guy called Abramovich who's a Russian oligarch as we know it. So you hit submit. Um and yeah let's see where this leads us. Okay so in the background uh all those steps are happening where we are getting the candidate profiles uh that match to our inquiry and we are running uh running some uh more traditional ML algorithms as well to filter out uh a huge volume so that the AI agent has to do only the relevant work and the hard work actually.
So see so it's little bit in progress I can move forward. Okay so here we are. So this is the match that was generated for our so on the top you can see uh the inquiry details uh the name address and date of birth that we submitted and at the bottom you see so at the bottom here uh you see the two matches that we received. So one of the matches you see has addresses in 20 different countries. So that's why this is not an easy task and those addresses can be anywhere ranging from and we only submitted Russia as our address.
So it's not an easy match to say this is our person but with all these different criteria um and there is in the biography of the uh profile you also see the aliases and the different events. You can see this particular person's profile has sanctioned events in uh multiple different uh countries and sanctioned by government. So seems like a relevant thing that we should be screening against, right? So let's fast forward to see what the agent thought about this match.
Like we got one inquiry and we got one profile, right? Um so I'm going into the match here. Yeah, you see this final agent output, the screening agent output. So, it says it's a confirmed match. Um, and the reason it's giving here is the alias match and the date of birth year matches and the address is in the same country and the name is not that common. So, you can't find Abramovich uh many rooms in Russia who have the same data births.
So, that's why it says a confirmed match uh and it leads to that decision. Okay. Uh, so that's kind of the product we have. And the next thing I want to show you, you might have seen that whole thinking blob there where AI was generating its recommendations. So it's in behind the scenes, it's doing the same work that a human would do, right? So if I submit the same inquiry and we see what's going on uh within that agent's head.
11:57 Agent reasoning and action
So what it's doing is once it gets the inquiry and the entity match it's doing it's following a react pattern which is called as react agent which is combination of reasoning and action. So what does reasoning and action mean uh in this case so it takes it thinks about what's the best next step to take and then it acts on it and it keeps doing that until it has a final answer for the screening decision. So in this case, let's say it's thinking what's the best next step.
So it's going to evaluate one of the criteria. So you have a certain list of criterias that the client has. So it's going to evaluate one of those. So it's evaluating let's say this match decisioning. Not going to go into the details of what individual criterias it's evaluating. But it evaluates this particular uh set of rules and it gets a decision. It get the decision it gets. It's it's a false. The these criterias cannot conclude anything.
So it keeps doing that until it reaches a final decision. Uh so I'm just going to fast forward to the final decision here which is let's say it's making a best judgment at the end. So based on all these different scenarios, it considered and it made a best judgment that okay uh I evaluated so and so criteria for address date of birth name and it eventually came down to that there was an alias match exact year match uh and that's what leading me to make a decision that this is a match and this should be escalated and you should be careful about making uh any business deal with this person.
Okay. So, so that's what's going on uh inside the agent set. And so, how do we create such an agent? There's so many ways uh these days that you could create AI agents. Uh how do you design the prompt, what the prompt should contain, so on and so forth. So, this is like a high level overview of how we design the agent. So, as you can see here, it all starts with a user making an inquiry and agent getting a set of candidate matches.
13:53 Screening agent design
And when it's had those uh candidate matches uh what it does is it takes control. Now it has the control. Now it has to govern okay I have access to these certain criteria. Which criteria should I check first? Uh so this cloud of tools that you see here uh those are the different criteria that agent wants to measure against. So it it's going to pick any of these criteria based on its prompting uh and the understanding and analyze the output of that and based on that pick whether it needs to ask another tool or does it have a final decision right and all of these models that are presented here uh and one more thing I should mention uh so the intelligence here is distributed between the agent and also the tools so it's up to you so it's it's a matter of uh controllability versus uh the configuration so you can divide divide your decision into one prompt or you can divide it into like say multiple prompts so that you get more accuracy and more control.
Um and with uh how the LLMs are uh if you are focusing on accuracy it's generally better to have multiple prompts but as the LLMs get better and you have smaller models you can probably do everything in one prompt but we have decided that we distributing uh the control over these individual tools uh which make the intelligent decision and also one thing to note here is LLMs are not good at mathematical computations so a lot of the times you will the uh if you want to ask what is the distance between New York and Chicago and it's going to be like it's going to give some answer a different answer every time because those are factual things.
So what we do is we have those functions in build uh which provide the details to the agent that this is the distance uh like whatever thousand miles away something like that and then that is the information that the agent use and does the job which is which it is asked to do which is making the right decision. So that's what we are doing here and all the models here are pre-trained models. Uh we would like to explore more fine-tuning but uh so the current LLMs they are not an expert in screening.
So that's why uh we need a lot of prompting. So we want to get away from it uh by training fine-tuning a model that has ability to understand what the screening process looks like and can make better decisions with fewer tokens so on and so forth right um and as you can see here both the agent and the tools here and the decision tools they all get the information from the client policy directly so it's very easily configurable you don't have to worry about writing too much codes for each different client uh so that's kind of the idea Um and the technology that we have used here is lang chain uh which is kind of the standard.
Um now we have lang graph and things have moved on. Uh but this is where we are at. Um this chart again explains uh the chain of thought process of the react agent. Um so yeah it keeps thinking and selecting an action until it has a final answer. So this is something we already went through. So what I want to actually talk about is the prompting part like how do you make the tools take the right decision for you uh given screening is not something uh NLMs have rent ability for.
17:28 Prompting strategies
So we have broken down the prompts into two steps. One is where you define the rule sets like your clients has policies. So define the rule sets for the client. I'm going to show you an example rule set of a fake data uh in the next slide. So you design your rules like the address should be so and so uh rate of birth should match things like that. And the second part of the prompt is where where it gets interesting. So you have to provide it examples because the LLM has never seen uh a screening like scenario.
So you provide it whole bunch of examples and that's what causes a lot of uh prompt tokens which is something we are dealing with at the moment. So that's where I think LLM fine-tuning can help us reduce this number of examples required to make the decision and hone down on that client specific requirements to make a more generalized decision. Okay. Um and but at the moment this few short prompt is necessary to get the high accuracy that we so this is uh a sample data uh which is generated uh for the case of this presentation.
So the rule set is very simple. It's all natural language. You don't have to know any coding or any Python. You just create a sample uh template JSON or or YAML file. If you choose and put provide a rule set simple as like you have a name uh like the criteria name it's name match the definition should be can be like exact character to character match something like that and then uh or the rules can be very subjective like you have a detailed description of the rule uh like there should be a confirmed name match the address should be within 100 miles and if the date of birth is not provided then yeah it's a false positive something like that so you can describe it as well and it will be able to understand because you provide it with the example for a similar scenario where you have the input the match the entity match from the database and then you provide what should be the decision and the explanation.
So it's able to generate an explanation that is very similar to uh a human explanation and based on that it's able to deal with uh the different corner cases and scenarios. All right. Okay. So now coming down to how we use data bricks for agentic evaluation. Now we know we have AI agents for screening. Uh we're able to uh make accurate decisions. But this is where the major challenge comes like how do you scale it? How do you evaluate it?
19:52 Agent evaluation and tracing
Uh and how do you make sure that every client gets an accurate model and accurate system. Yeah, this uh should be a little blown up but I'll try to explain uh what each of these boxes mean. So it all starts the evaluation process starts with when the user is kicks off a job in the datab bricks jobs environment. So the data bricks jobs provides you the compute the environment necessary and the source code for evaluation and we use two types of evaluators with database.
One is a custom evaluator which is all the metrics that you have for let's say traditional classification or aggregation metrics or your client bottom lines um metrics they are interested in and then there is a data bricks agents evaluator which is where which is what the data bricks have uh released uh recently. So data bricks agent provides all these in-built uh LLM as judge metrics for your correctness like is the explanation generated by the agent similar to what a human would have generated uh is the uh explanation grounded in the context.
So given the data it was provided is the explanation actually making sense out of it and then clarity and is it English or in the language that you want so on and so forth and then the metrics are logged into MLflow uh where we store the prompts the traces and the metric and then uh all of our evaluation inference tables are stored in Unity catalog as well as the models and then the models are version in Unity catalog those are used for deployment in a separate cloud environment. ment goes to the application and from the application we collect uh all of the human reviewed data because as I mentioned in the screening business everything is somewhat human reviewed at the end so we collect that data and that becomes our evaluation data set um and all of this is very easy to configure with data bricks terapform so it's all infrastructure as a whole so this allows us uh to give uh get detailed insights into how the agent decision is what are the different explanation and before making the change.
So these are a couple of snippets uh that you can do with a single line of code uh with MLflow data bricks. So if you run MLflow evaluate and provide the model tribe as data bricks agents here you can get all the built-in metrics. So you have the input in this case I've removed any of the PII information so you only see ids but there's a generated output uh and then you have an expected response. Then the LLMS judge within data bricks compares the two responses and gives a decision on whether the response is correct or not.
So in this case it's not correct and then whether it's grounded in the uh in the context. So those are the things it's judging on. So this helps us uh get a better understanding of what this generated output output is in addition to the classification metrics that we deal with. Um and all again uh with a single line of code and if you want you can provide additional metrics uh uh your custom metrics uh with LLMS judge.
So that's that works pretty neat. Um and then as I mentioned uh about the groundedness and context sufficiency. So this is like a context that's provided to the agent. So is the explanation based on this or is the agent hallucinating? So that's also very important because it's actually making a important decision for you. So the explanation has to make sense to for you to know that you can trust the agent. So that's another evaluation criteria we use.
Okay. So what have we uncovered from all this data bricks evaluation and analysis, right? Uh so one interesting thing we found out that humans being humans make human errors. So a lot of times if you give the same guidelines to to different people, they will interpret it differently and make different decisions. So that's something you can get rid of with AI agents because they're going to give you more consistent results and uh so that's kind of the idea and then a lot of the times if you give the same input to two different people or even different times of the day they would might make different decisions.
23:45 Analysis and insights
So we have seen that as well. So with AI you get more consistency. Uh and another thing where there's an actual gap where humans do better than AI agents at the moment for a screening problem is because humans have access to let's say Google web search. So they can go and find additional data. Uh the analyst would search for it. They would find in some PDF document the actual address of the person or the CEO who we are trying to screen and then they would make an informed decision.
So if we can integrate open search intelligence with AI agents and there's a lot of development going on in this field then these AI agents can become an expert decision makers not just summarizers or generators they can actually make good decisions because they are great at identifying patterns uh within this screening context. Okay. All right. So what's next uh with our collaboration with data bricks u so datab bricks has released ml3.
25:14 Future developments
0 auto which has some interesting features. So I talked about how we use the unity catalog to log the models or to register the models. Um they are building a more model ccentric view of everything. So if you use your model for any evaluation run or any production environment, you can log those traces back to that model uh view of uh data bricks and you'll be able to see everything that went through that model and then you can compare uh different versions of the models uh and how the results were different.
And the second thing data bricks is releasing is prompt based registry. At the moment you have to register the whole model. Uh and it's not easy to see the differences between okay my version two and version three models what is the difference between the prompts. So that's going to change and you'll be able to see the versions of your prompts and you can see the differences in the prompts and the metrics that change how you when you update your prompts and rule sets and so on and so forth.
And the third thing is uh MLflow also has now live data tracing. So you can trace every agent decision back into MLflow uh from your production environment directly. So what you can do with that is a lot of the talks that are going on uh in in the summit are regarding how do you generate synthetic data or how do you generate just data for fine-tuning. So this is where it can help. So if you have all of these traces back into the ML flow, you can use that to fine-tune your models.
Now your screening agent is more or agent is more screening aware. So once he's more screening aware, you need fewer uh prompts, fewer examples to get to the right decision. Okay. Um Okay. So the challenges uh that we uh faced when building this uh so we have been working on this for about more than a year now and it all started off when geni models were nothing but just text generators. So it was all unstructured output that you would generate.
27:07 Challenges and conclusion
So how do you get more output data fidelity so that it can be passed properly in your downstream applications and products. So now you have LLM based output parsers where you can ask the LLM to structure the output in the format that you need so that can propagate to downstream applications. So that's like an early challenge that we face. The second one is the one I covered briefly is the one with configurability versus control.
So if you have more configurability, you are making more decisions using the prompt but uh you get less control and less accuracy sometimes. So what you want to do is break that prompt down into multiple LLM calls. So in that case you get more accuracy, more control and you have smaller prompts but it allows for less configurability. But that's the balance you have to hit and maybe this will change over time once the models get better.
Uh and the third problem which is the main problem we are we are facing at the moment is the token usage because with few short prompting you have a lot of token usage just because of the examples. So how do you minimize the number of examples? So that's where all the fine-tuning comes in making the agent a screening expert and then you can have even with one or two examples like one shot or zero shot you can have a good screening agent and also as how I see it is the cost per token is going to go down in the future and the cost of human reviews is going to keep going up.
So I think at this point uh using Genai and LLM is a great decision or even for the screening industry. It's it's a great thing to have uh to adopt this technology early so that it can give a lot of benefits in the future uh without having to depend a lot on the human. And the last challenge is latency. Uh which is with any Gen AI model these days. Um and you have to wait for smaller models, better models which can do it faster.
But fortunately for our use case, uh in the screening business, latency is not as paramount because we can wait a couple of minutes to give our clients the screening decision. We don't have to return uh a realtime result. Um so that's the advantage we have uh with using Genai and LLM for screening compared to some of the other businesses right uh that's all I had for my talk and thank
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.