Skip to main content

Empowering Fundraising With AI: A Journey With Databricks Mosaic AI

Summary

  • AI for humanitarian impact: Doctors Without Borders revolutionized fundraising using Databricks and Mosaic AI to analyze donor behavior, predict giving patterns and personalize outreach at scale.
  • Ethical AI governance: The organization applies Unity Catalog for secure AI governance and ethical AI principles, ensuring that AI-driven fundraising maximizes impact while upholding organizational values.
  • Generative AI storytelling: The solution explores AI-assisted storytelling to deepen donor connections, enabling faster crisis response and more effective resource allocation for life-saving medical aid.

Empowering Fundraising With AI: A Journey With Databricks Mosaic AI

Watch: Empowering Fundraising With AI: A Journey With Databricks Mosaic AI
Talk by Amina Alavi, Director of Data Science, Doctors Without Borders
Artificial Intelligence (AI) is more than a corporate tool; it’s a force for good. At Doctors Without Borders/Médecins Sans Frontières (MSF), we use AI to optimize fundraising, ensuring that every dollar raised directly supports life-saving medical aid worldwide. With Databricks, Mosaic AI and Unity Catalog, we analyze donor behavior, predict giving patterns and personalize outreach, increasing contributions while upholding ethical AI principles. this video will showcase how AI maximizes fundraising impact, enabling faster crisis response and resource allocation. We’ll explore predictive modeling for donor engagement, secure AI governance with Unity Catalog and our vision for generative AI in fundraising, leveraging AI-assisted storytelling to deepen donor connections. AI is not just about efficiency; it’s about saving lives. Join us to see how AI-driven fundraising is transforming humanitarian aid on a global scale.
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

FAQs

How does Doctors Without Borders use AI to improve fundraising?

Using Databricks and Mosaic AI, the organization analyzes donor behavior, predicts giving patterns and personalizes outreach, increasing contributions while maintaining ethical AI principles.

How does Unity Catalog support ethical AI practices?

Unity Catalog provides secure AI governance capabilities, enabling Doctors Without Borders to track data lineage, enforce access controls and ensure ethical AI practices in fundraising applications.

What is AI-assisted storytelling in fundraising?

AI-assisted storytelling uses generative AI to craft compelling narratives that deepen emotional connections with donors, making fundraising communications more personalized and impactful.

How does this technology enable faster crisis response?

By predicting donor giving patterns and optimizing resource allocation through data-driven insights, the organization can respond to crises more quickly and direct limited resources to where they're needed most.

Full transcript

So, I am the director of analytics and data science at Doctors Without Borders and I'm very excited to talk to you guys about how we are completely revolutionizing the way we are raising funds um at our organization. Um, by the way, for those of you who just read the title and came here thinking that I'm going to talk about fundraising for startups, um, you're in the wrong room. I'm going to talk about Doctors Without Waters completely changing the way we raise funds.
But trust me on this one, if you stick around for the next 20 minutes, you will be able to whip up data bricks agents within like very quickly no matter what your use case. All right. So, what was our vision? Let's start talking about our vision. Our vision was simple, but it was powerful. We we had tons of data and we wanted to convert our data into into dialogues into donor conversations. Donor conversations, donor relationships are sacred for any humanitarian organizations.
So, we wanted to use our data for that. But our biggest challenge was like I think most of you out here we we had really good data but it wasn't being used for its to its fullest potential. Um to complicate things further we have structured data as well as unstructured data. So unstructured data in the form of CSVs, PDFs, uh word documents, you name it and we have that documentation. good documentation, but we have tons and tons of unstructured data.
Um, and don't even get me started on on the file names. I mean, I I don't know why we do this to ourselves. We have so many different kind of file names even even data scientists. Um, do we have any data scientists over here? Okay, a few of you. I mean, how many of you have named your files something something_v7_final use this only? So, yeah. Um sometimes these file names can be confusing but all of this data can be used um within data bricks.
Okay. So what was that was our challenge? What was our goal? Our goal was to take all of that data and to build an AI assistant that would help our fundraisers communicate with their donors the way they've never communicated before. to understand their donors better. Um, an intelligent AI assistant that would that would understand our specific donors based on our proprietary data. Not not the LLM that we use every day for pretty much everything nowadays.
Um, by the way, the other day I asked GPT to tell me a joke and it came back with, "Why did AI cross the playground?" and then it said to get to the other slide. I think we can all agree AI has a long way to go in the humor department. Um so that was our goal. How do we how do we achieve that goal? Now this is the end toend architecture within data bricks. um all the different components that we used to get from point A to point Z and it looks very complicated right now with all the different components but believe me you all of this end to end can be done I would say within two two days I mean definitely an MVP simple version of it but um you can absolutely achieve it yesterday I was in the data Starbucks hackathon and I I was in a team with three other people and we were able to achieve all of this end to end and more within six hours.
So it's totally doable and that's how easy data bricks makes um makes it to build out agents to build out our geni apps. All right. Now this whole architecture that I showed you looks super complicated. So, I'm going to break it down and make it simple so that all of you understand how easy it is. Let's start off with unstructured data. All of you have unstructured data. By unstructured data, I mean PDFs, CSVs, um, word documents, anyone out there who has unstructured data sitting in their in their data bases.
All right, a few hands. So, we have many different kind of un PDF documents. I would say uh mostly PDF documents. So for example uh a fundraiser would go and um meet up with a donor and then they write down notes the conversations they had um what was the outcome and all of that all all of those notes are basically uploaded into PDF documents and we have several PDFs maybe on a single donor multiplied by all the donors that we have.
So we have thousands and thousands of PDF documents on donor meetings. Then we get several communication guidelines from our communications department which also comes through as sometimes a word document, sometimes a PDF. Um training documentation. Whenever uh a new um a new employee is hired in our fundraising team, they're given tons of training document. They go through it. Everything is in PDF. But then I mean how much of the how much of that do they remember six months down the line.
So all of that is in PDF. So the first thing that we did and what any of you want to do if you have unstructured data is to get all of those PDFs into Unity catalog volumes. Super simple. You can upload them. You can use APIs which whichever one you want. But basically you want to start off by putting all your PDFs into Uni Unity catalog volumes. Once they're there in your Unity catalog volumes, you need to take that data, just chunk it up and put it put that into the delta tables.
By delta tables, I mean simply the Unity catalog tables. The reason why we want to chunk them up is because that's how um our agent would understand the data much much more simply. um when we are chunking up the data for data scientists out here I would say just pay attention to how you want to chunk it up um for example if there's a long sentence you don't want to chunk up the data in the middle you want to either chunk it up at the end of the sentence at the end of a paragraph at the end of a section so that the LLM can understand the context so chunking is a little bit important okay so now you have the data in your delta tables there's something else that you need to create you can create it now or you can created at some you know at some other point before this.
Basically it's called the vector endpoint. A vector endpoint is your entry point into your proprietary data. That's how when the fundraisers are asking any questions which is lying in any of your PDF documents, it goes through the vector endpoint and that's how it gets to your data. We all know that machines do not understand um human language. They're not going to understand English, Spanish, none of that. So we have to con convert the chunked up data that we got from our PDFs into um into numbers into vectors.
So we need to what is called embedding. We need to just convert everything into numbers. Now this is I know this looks complicated but literally it's like you know very quickly done. Um once you have everything embedded in numbers the last step is to create um a vector index. All of this is done within the Unity catalog. All of this can be done literally with like you know a very simple Python notebook or if you don't want to use Python you can easily actually use the drag and drop click here click that feature in data bricks to create all of this.
It's very simple. So once you have all of this done now you want to test your vector index. You want to see how well you can search your PDF documents. So within the datab bricks environment you actually see this big button on the top that says query your vector index. So you can just click on it and when you click on it you get this dialogue box. Now this is where you will be able to test out that data. I just want to say one thing this is a fictitious uh PDF document that I created for a donor Albert Einstein. uh completely fictitious and um so I I just tested out my vector endpoint and the way I did it is that all of this code is pre-generated all I needed to put in there under query text Albert Einstein and once I put it there and tested it out I see from thousands of documents out there which had tons and tons of information about different donors it was able to go and pull the data for um for Albert Einstein.
So now we know that our vector index is working. So the most difficult part which is structured data is done. We know that it's working. All right. Now unstructured data is a lot more simpler. Um data is already um in your catalog uh in your Unity catalog tables. So I would say the easiest way is to create a simple SQL function. Um you can use one table, you can use several tables if your data is like all over the place.
In our case um we had input fields of say donor first name, donor last name and the output was all the giving history um that is connected to that specific donor. So you create the function module within the unity catalog and this is the fun part. This is where you get to play in the playground. So within your data bricks environment you have something called a playground. When you click on it the first thing that you want to do is you want to select your um your LLM your large language model.
So in this case I chose claude 3. 7 by tools. Those are the those are the any of the functions that you created or any of the vector indexes that you created. you add that to your um to your LLM. You can even compare different LLMs to make sure that if you want shop around for different LLMs, you can do that. Um for us, Claude 3. 7 was working the best. And in the end, what you need to do when you're happy with that, you click on export and you basically what happens is it it generates, you don't even have to write it out.
It generates the whole notebook for you like a Python notebook and um saves it in your databicks environment. All right. So what is this notebook called the drive? Databicks calls it the driver notebook. So what is this notebook? Completely autogenerated notebook that helps you define and create your agent. So all you need to do is literally like click click click run through it. you don't have to change anything. The second thing is for any LLM u any geni app that you are creating any rag um agent that you are creating you do want to evaluate it and the best part is that database has been amazing in giving us so many tools for evaluation.
So it gives us a very visualized tool to um to evaluate our agents. What is what is um how well it did in many different areas and we can go back and fix our data or fix our vector indexes to make sure all of these pass. And in the end once you're happy with your evaluation what you want to do is you want to simply register and deploy your agent. That's it. Now you're you're done with your agent is created. You're able to access your data through your functions through um the vector index, your PDFs, your your data into tables.
Everything is ready. Um one thing I would say about the driver notebook is that driver notebooks are you know you want to take those notebooks and you want to do what data scientists are best at doing. you want to cut, copy, paste and then enhance it. Um, this is the plain vanilla vanilla version of it, but you can always change up the agent framework. You can add more agents. So, you start off at it and if you want, you can enhance it even further.
No need, but you can. All right. So, that's not the end of the story. So, now you have everything ready. The agent is there. It's working. you can extract your data but you want a very nice um front end for your users. You want to give your users a URL which kind of looks like chatgpt so that they're able to like kind of like a chatbot so that you can you know communicate with this um with this agent that you have created.
Again I have to say data bricks has made this super simple by coming up with this thing which is called the data bricks app. There's if you go into your workspace you'll see a big plus sign right on the top. If you click on it and you will get the option to create a databicks app. Go in there. Now this saved us maybe if not weeks days of work. We didn't have to create the front end at all. This we were able to do in 10 minutes.
We just choose the template. So we chose a temp template chatbot because we had created a chatbot. Um you want to use you know one of the frameworks. Um I like gradio and streamllet. Uh for this purpose we chose gradio and you just with a click you deploy your agent and uh your AI assistant is is ready. All right. So I have five minutes left and I do want to show you the demo. So so this once you deploy the um the data bricks app this is exactly what you get.
But again, you want to do what, like I said, data scientists are best at doing. Um, cut, copy, paste, make it better, enhance it. You want to add your company logo. You want to add, you know, whatever description you want to add. So, here as a fundraiser, um, the fundraiser is going in and saying, I'm going to I'm going to visit donor Albert Einstein. Please provide some talking points. So, a lot of times when the donor when the fundraisers are going to meet uh a donor, they they have to do a lot of research.
They have to figure out exactly how they're going to ask for donation. Um how much they're going to ask for um how much um like the details of the donor. Um so, okay. So, it comes back with okay, these are some of the talking points that you you can you can have. Here are his technical interests. His communication style is be prepared for an intellectually rigorous conversation. He appreciates detailed information. So um so it's going to give you a lot of talking points and this is just one of the questions that I asked but you can a fundraiser can ask any question that they want.
The next thing that a lot of times fundraisers want to do is maybe based on the giving history, based on the conversations, donor meeting notes, they want to know how much donation should they ask for. So in this case it comes back and it says you know maybe you should ask for 750 million 750k to1 million um dollars based on there. So in the back end what's happening is that they are going into the function that we created that has all the giving history and it's also going back to our meeting notes and it's like ah he previously said that he can give us a million.
All right so I'm in no mood to have an intellectually rig rigorous conversation. I'm like okay forget it. Let me just write him an email. So, please draft an email message for him asking him to donate $1 million. Let me just forward it a little bit. And this is what it comes up with. So, this can be your first draft of email. Of course, you don't want to take this email and cut, copy, paste and send it to the donor. No way.
Um, this is just a starting point for everything. This is just a guideline where you start and then the rest of the work kind of like flows through. All right. Yes, this is our fundraiser uh before and after. Very unhappy before, very happy afterwards. The only thing that I'll add over here is that um this work is going to make a fundraiser's job so much more efficient, a lot more easier. But it's no way a replacement of the human connection of the of the bonds that a human can form with a human.
So yeah, definitely it's going to make a fundraiser's job a lot more efficient, but then it frees up their time to do, you know, to connect with the donors, to have meaningful conversations with them. Thank you very much. That's it.

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.