How to automate KYC and due diligence with AI
Jul 1, 2024
Antoni Rosinol
Co-Founder of Stack AI
KYC is critically important for financial institutions, enabling fraud detection and prevention, compliance with anti-money laundering regulations, customer protection, and more.
However, KYC and customer due diligence can be extremely complex and time-consuming.
Did you know that banks allocate ~10% of their workforce to compliance-related activities, with KYC often being the most costly? Many institutions still rely on manual KYC processes, which are resource-intensive and prone to errors.
This also impacts the customer experience. Customers are contacted multiple times during onboarding and asked to provide numerous documents.
What if you could set up an AI in a secure and fully private environment to handle these back-office processes?
This is not as utopian as it seems. Financial institutions worldwide are already embedding
AI assistants to manage certain KYC processes. Let’s take a look.
Designing a solution in Stack AI
This use case showcases how a US financial institution used Stack AI to automate one of their KYC processes.
The process is as follows: a customer sends an email with their requirements.
An AI system then extracts the relevant information, performs due diligence,
updates the company database if successful, and drafts and sends a response email.

KYC Use Case Architecture
Components:
Receive Information from the Customer:
Input: Information received via email (subject, recipient, body, attachments)
LLM: OpenAI GPT 4o extracts names and relevant information from the documents
Perform Customer Due Diligence:
Google Search: Conducts a web search and scrapes the top 5 links based on the customer's information
Internal Knowledge Base: Retrieves internal procedures for due diligence
External API: Retrieves information from external sources
LLM: OpenAI GPT 4o generates the customer's due diligence report
Output: Due diligence report (in JSON format) is uploaded to the company’s database via API
Email the Customer with the Outcome:
LLM: Drafts an email based on the customer's information and due diligence report
Output: Email sent to the customer
Putting It All Together with Stack AI
You can use our visual builder to create very easily a workflow that automates the entire KYC process. Moreover, you can easily customize this architecture by adding more nodes, such as additional API calls, knowledge bases, or LLMs.

KYC Overview in Stack AI
Let's break it down and see how you can automate each step with Stack AI.
1. Receive Information from the Customer

For every email sent by a customer, an OpenAI LLM (GPT 4o) receives all the information, including attachments, and extracts the full name of the person.
Prompt used (OpenAI 4o):
2. Perform Customer Due Diligence

Given the name of the customer and other parameters, a web search is triggered to retrieve more information about the customer, from internal data bases and external ones.
Once done, another OpenAI model draft the due diligence report and uploads the information into the company's database.
Prompt used (OpenAI GPT 4o):
3. Email the Customer with the Outcome

The due diligence report is used together with the information from the customer's initial email to draft an email with the outcome of the process.
Prompt (Anthropic Clause 3 Sonnet):
You might be asking yourself: once I make this automation live, is there a way to track responses?
Absolutely, our platform includes internal analytics accessible through the Analytics tab. You can review every workflow execution, check for errors, monitor latency, generate reports, and more.
Simplifying KYC
KYC can be a daunting process, but it is essential for financial institutions. AI can reduce KYC costs by 70% while enhancing the customer experience and improving accuracy.
With Stack AI, you can automate business processes in a secure environment. We are SOC 2 Type II, HIPAA, and GDPR compliant, making us the go-to AI builder for Enterprises.
We have a proven track record, partnering with financial institutions worldwide. Leverage our existing templates and easily customize them to your business needs—no coding experience required.
Automate your processes with Stack AI at a fraction of the cost of an in-house development team (~80% less expensive), in a matter of days instead of months, and benefit from high-quality AI systems.
Make your organization smarter with AI.
Deploy custom AI Assistants, Chatbots, and Workflow Automations to make your company 10x more efficient.
Articles